appinsights

package
v6.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyticsItem

type AnalyticsItem struct {
	pulumi.CustomResourceState

	// The ID of the Application Insights component on which the Analytics Item exists. Changing this forces a new resource to be created.
	ApplicationInsightsId pulumi.StringOutput `pulumi:"applicationInsightsId"`
	// The content for the Analytics Item, for example the query text if `type` is `query`.
	Content pulumi.StringOutput `pulumi:"content"`
	// The alias to use for the function. Required when `type` is `function`.
	FunctionAlias pulumi.StringPtrOutput `pulumi:"functionAlias"`
	// Specifies the name of the Application Insights Analytics Item. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The scope for the Analytics Item. Can be `shared` or `user`. Changing this forces a new resource to be created. Must be `shared` for functions.
	Scope pulumi.StringOutput `pulumi:"scope"`
	// A string containing the time the Analytics Item was created.
	TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
	// A string containing the time the Analytics Item was last modified.
	TimeModified pulumi.StringOutput `pulumi:"timeModified"`
	// The type of Analytics Item to create. Can be one of `query`, `function`, `folder`, `recent`. Changing this forces a new resource to be created.
	Type pulumi.StringOutput `pulumi:"type"`
	// A string indicating the version of the query format
	Version pulumi.StringOutput `pulumi:"version"`
}

Manages an Application Insights Analytics Item component.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("tf-test"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
			Name:              pulumi.String("tf-test-appinsights"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			ApplicationType:   pulumi.String("web"),
		})
		if err != nil {
			return err
		}
		_, err = appinsights.NewAnalyticsItem(ctx, "example", &appinsights.AnalyticsItemArgs{
			Name:                  pulumi.String("testquery"),
			ApplicationInsightsId: exampleInsights.ID(),
			Content:               pulumi.String("requests //simple example query"),
			Scope:                 pulumi.String("shared"),
			Type:                  pulumi.String("query"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Application Insights Analytics Items can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:appinsights/analyticsItem:AnalyticsItem example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Insights/components/mycomponent1/analyticsItems/11111111-1111-1111-1111-111111111111 ```

To find the Analytics Item ID you can query the REST API using the [`az rest` CLI command](https://docs.microsoft.com/cli/azure/reference-index?view=azure-cli-latest#az-rest), e.g.

az rest --method GET --uri "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/microsoft.insights/components/appinsightstest/analyticsItems?api-version=2015-05-01"

func GetAnalyticsItem

func GetAnalyticsItem(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AnalyticsItemState, opts ...pulumi.ResourceOption) (*AnalyticsItem, error)

GetAnalyticsItem gets an existing AnalyticsItem resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAnalyticsItem

func NewAnalyticsItem(ctx *pulumi.Context,
	name string, args *AnalyticsItemArgs, opts ...pulumi.ResourceOption) (*AnalyticsItem, error)

NewAnalyticsItem registers a new resource with the given unique name, arguments, and options.

func (*AnalyticsItem) ElementType

func (*AnalyticsItem) ElementType() reflect.Type

func (*AnalyticsItem) ToAnalyticsItemOutput

func (i *AnalyticsItem) ToAnalyticsItemOutput() AnalyticsItemOutput

func (*AnalyticsItem) ToAnalyticsItemOutputWithContext

func (i *AnalyticsItem) ToAnalyticsItemOutputWithContext(ctx context.Context) AnalyticsItemOutput

type AnalyticsItemArgs

type AnalyticsItemArgs struct {
	// The ID of the Application Insights component on which the Analytics Item exists. Changing this forces a new resource to be created.
	ApplicationInsightsId pulumi.StringInput
	// The content for the Analytics Item, for example the query text if `type` is `query`.
	Content pulumi.StringInput
	// The alias to use for the function. Required when `type` is `function`.
	FunctionAlias pulumi.StringPtrInput
	// Specifies the name of the Application Insights Analytics Item. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The scope for the Analytics Item. Can be `shared` or `user`. Changing this forces a new resource to be created. Must be `shared` for functions.
	Scope pulumi.StringInput
	// The type of Analytics Item to create. Can be one of `query`, `function`, `folder`, `recent`. Changing this forces a new resource to be created.
	Type pulumi.StringInput
}

The set of arguments for constructing a AnalyticsItem resource.

func (AnalyticsItemArgs) ElementType

func (AnalyticsItemArgs) ElementType() reflect.Type

type AnalyticsItemArray

type AnalyticsItemArray []AnalyticsItemInput

func (AnalyticsItemArray) ElementType

func (AnalyticsItemArray) ElementType() reflect.Type

func (AnalyticsItemArray) ToAnalyticsItemArrayOutput

func (i AnalyticsItemArray) ToAnalyticsItemArrayOutput() AnalyticsItemArrayOutput

func (AnalyticsItemArray) ToAnalyticsItemArrayOutputWithContext

func (i AnalyticsItemArray) ToAnalyticsItemArrayOutputWithContext(ctx context.Context) AnalyticsItemArrayOutput

type AnalyticsItemArrayInput

type AnalyticsItemArrayInput interface {
	pulumi.Input

	ToAnalyticsItemArrayOutput() AnalyticsItemArrayOutput
	ToAnalyticsItemArrayOutputWithContext(context.Context) AnalyticsItemArrayOutput
}

AnalyticsItemArrayInput is an input type that accepts AnalyticsItemArray and AnalyticsItemArrayOutput values. You can construct a concrete instance of `AnalyticsItemArrayInput` via:

AnalyticsItemArray{ AnalyticsItemArgs{...} }

type AnalyticsItemArrayOutput

type AnalyticsItemArrayOutput struct{ *pulumi.OutputState }

func (AnalyticsItemArrayOutput) ElementType

func (AnalyticsItemArrayOutput) ElementType() reflect.Type

func (AnalyticsItemArrayOutput) Index

func (AnalyticsItemArrayOutput) ToAnalyticsItemArrayOutput

func (o AnalyticsItemArrayOutput) ToAnalyticsItemArrayOutput() AnalyticsItemArrayOutput

func (AnalyticsItemArrayOutput) ToAnalyticsItemArrayOutputWithContext

func (o AnalyticsItemArrayOutput) ToAnalyticsItemArrayOutputWithContext(ctx context.Context) AnalyticsItemArrayOutput

type AnalyticsItemInput

type AnalyticsItemInput interface {
	pulumi.Input

	ToAnalyticsItemOutput() AnalyticsItemOutput
	ToAnalyticsItemOutputWithContext(ctx context.Context) AnalyticsItemOutput
}

type AnalyticsItemMap

type AnalyticsItemMap map[string]AnalyticsItemInput

func (AnalyticsItemMap) ElementType

func (AnalyticsItemMap) ElementType() reflect.Type

func (AnalyticsItemMap) ToAnalyticsItemMapOutput

func (i AnalyticsItemMap) ToAnalyticsItemMapOutput() AnalyticsItemMapOutput

func (AnalyticsItemMap) ToAnalyticsItemMapOutputWithContext

func (i AnalyticsItemMap) ToAnalyticsItemMapOutputWithContext(ctx context.Context) AnalyticsItemMapOutput

type AnalyticsItemMapInput

type AnalyticsItemMapInput interface {
	pulumi.Input

	ToAnalyticsItemMapOutput() AnalyticsItemMapOutput
	ToAnalyticsItemMapOutputWithContext(context.Context) AnalyticsItemMapOutput
}

AnalyticsItemMapInput is an input type that accepts AnalyticsItemMap and AnalyticsItemMapOutput values. You can construct a concrete instance of `AnalyticsItemMapInput` via:

AnalyticsItemMap{ "key": AnalyticsItemArgs{...} }

type AnalyticsItemMapOutput

type AnalyticsItemMapOutput struct{ *pulumi.OutputState }

func (AnalyticsItemMapOutput) ElementType

func (AnalyticsItemMapOutput) ElementType() reflect.Type

func (AnalyticsItemMapOutput) MapIndex

func (AnalyticsItemMapOutput) ToAnalyticsItemMapOutput

func (o AnalyticsItemMapOutput) ToAnalyticsItemMapOutput() AnalyticsItemMapOutput

func (AnalyticsItemMapOutput) ToAnalyticsItemMapOutputWithContext

func (o AnalyticsItemMapOutput) ToAnalyticsItemMapOutputWithContext(ctx context.Context) AnalyticsItemMapOutput

type AnalyticsItemOutput

type AnalyticsItemOutput struct{ *pulumi.OutputState }

func (AnalyticsItemOutput) ApplicationInsightsId

func (o AnalyticsItemOutput) ApplicationInsightsId() pulumi.StringOutput

The ID of the Application Insights component on which the Analytics Item exists. Changing this forces a new resource to be created.

func (AnalyticsItemOutput) Content

The content for the Analytics Item, for example the query text if `type` is `query`.

func (AnalyticsItemOutput) ElementType

func (AnalyticsItemOutput) ElementType() reflect.Type

func (AnalyticsItemOutput) FunctionAlias

func (o AnalyticsItemOutput) FunctionAlias() pulumi.StringPtrOutput

The alias to use for the function. Required when `type` is `function`.

func (AnalyticsItemOutput) Name

Specifies the name of the Application Insights Analytics Item. Changing this forces a new resource to be created.

func (AnalyticsItemOutput) Scope

The scope for the Analytics Item. Can be `shared` or `user`. Changing this forces a new resource to be created. Must be `shared` for functions.

func (AnalyticsItemOutput) TimeCreated

func (o AnalyticsItemOutput) TimeCreated() pulumi.StringOutput

A string containing the time the Analytics Item was created.

func (AnalyticsItemOutput) TimeModified

func (o AnalyticsItemOutput) TimeModified() pulumi.StringOutput

A string containing the time the Analytics Item was last modified.

func (AnalyticsItemOutput) ToAnalyticsItemOutput

func (o AnalyticsItemOutput) ToAnalyticsItemOutput() AnalyticsItemOutput

func (AnalyticsItemOutput) ToAnalyticsItemOutputWithContext

func (o AnalyticsItemOutput) ToAnalyticsItemOutputWithContext(ctx context.Context) AnalyticsItemOutput

func (AnalyticsItemOutput) Type

The type of Analytics Item to create. Can be one of `query`, `function`, `folder`, `recent`. Changing this forces a new resource to be created.

func (AnalyticsItemOutput) Version

A string indicating the version of the query format

type AnalyticsItemState

type AnalyticsItemState struct {
	// The ID of the Application Insights component on which the Analytics Item exists. Changing this forces a new resource to be created.
	ApplicationInsightsId pulumi.StringPtrInput
	// The content for the Analytics Item, for example the query text if `type` is `query`.
	Content pulumi.StringPtrInput
	// The alias to use for the function. Required when `type` is `function`.
	FunctionAlias pulumi.StringPtrInput
	// Specifies the name of the Application Insights Analytics Item. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The scope for the Analytics Item. Can be `shared` or `user`. Changing this forces a new resource to be created. Must be `shared` for functions.
	Scope pulumi.StringPtrInput
	// A string containing the time the Analytics Item was created.
	TimeCreated pulumi.StringPtrInput
	// A string containing the time the Analytics Item was last modified.
	TimeModified pulumi.StringPtrInput
	// The type of Analytics Item to create. Can be one of `query`, `function`, `folder`, `recent`. Changing this forces a new resource to be created.
	Type pulumi.StringPtrInput
	// A string indicating the version of the query format
	Version pulumi.StringPtrInput
}

func (AnalyticsItemState) ElementType

func (AnalyticsItemState) ElementType() reflect.Type

type ApiKey

type ApiKey struct {
	pulumi.CustomResourceState

	// The API Key secret (Sensitive).
	ApiKey pulumi.StringOutput `pulumi:"apiKey"`
	// The ID of the Application Insights component on which the API key operates. Changing this forces a new resource to be created.
	ApplicationInsightsId pulumi.StringOutput `pulumi:"applicationInsightsId"`
	// Specifies the name of the Application Insights API key. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the list of read permissions granted to the API key. Valid values are `agentconfig`, `aggregate`, `api`, `draft`, `extendqueries`, `search`. Please note these values are case sensitive. Changing this forces a new resource to be created.
	ReadPermissions pulumi.StringArrayOutput `pulumi:"readPermissions"`
	// Specifies the list of write permissions granted to the API key. Valid values are `annotations`. Please note these values are case sensitive. Changing this forces a new resource to be created.
	//
	// > **Note:** At least one read or write permission must be defined.
	WritePermissions pulumi.StringArrayOutput `pulumi:"writePermissions"`
}

Manages an Application Insights API key.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("tf-test"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
			Name:              pulumi.String("tf-test-appinsights"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			ApplicationType:   pulumi.String("web"),
		})
		if err != nil {
			return err
		}
		readTelemetry, err := appinsights.NewApiKey(ctx, "read_telemetry", &appinsights.ApiKeyArgs{
			Name:                  pulumi.String("tf-test-appinsights-read-telemetry-api-key"),
			ApplicationInsightsId: exampleInsights.ID(),
			ReadPermissions: pulumi.StringArray{
				pulumi.String("aggregate"),
				pulumi.String("api"),
				pulumi.String("draft"),
				pulumi.String("extendqueries"),
				pulumi.String("search"),
			},
		})
		if err != nil {
			return err
		}
		writeAnnotations, err := appinsights.NewApiKey(ctx, "write_annotations", &appinsights.ApiKeyArgs{
			Name:                  pulumi.String("tf-test-appinsights-write-annotations-api-key"),
			ApplicationInsightsId: exampleInsights.ID(),
			WritePermissions: pulumi.StringArray{
				pulumi.String("annotations"),
			},
		})
		if err != nil {
			return err
		}
		authenticateSdkControlChannel, err := appinsights.NewApiKey(ctx, "authenticate_sdk_control_channel", &appinsights.ApiKeyArgs{
			Name:                  pulumi.String("tf-test-appinsights-authenticate-sdk-control-channel-api-key"),
			ApplicationInsightsId: exampleInsights.ID(),
			ReadPermissions: pulumi.StringArray{
				pulumi.String("agentconfig"),
			},
		})
		if err != nil {
			return err
		}
		fullPermissions, err := appinsights.NewApiKey(ctx, "full_permissions", &appinsights.ApiKeyArgs{
			Name:                  pulumi.String("tf-test-appinsights-full-permissions-api-key"),
			ApplicationInsightsId: exampleInsights.ID(),
			ReadPermissions: pulumi.StringArray{
				pulumi.String("agentconfig"),
				pulumi.String("aggregate"),
				pulumi.String("api"),
				pulumi.String("draft"),
				pulumi.String("extendqueries"),
				pulumi.String("search"),
			},
			WritePermissions: pulumi.StringArray{
				pulumi.String("annotations"),
			},
		})
		if err != nil {
			return err
		}
		ctx.Export("readTelemetryApiKey", readTelemetry.ApiKey)
		ctx.Export("writeAnnotationsApiKey", writeAnnotations.ApiKey)
		ctx.Export("authenticateSdkControlChannel", authenticateSdkControlChannel.ApiKey)
		ctx.Export("fullPermissionsApiKey", fullPermissions.ApiKey)
		return nil
	})
}

```

## Import

Application Insights API keys can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:appinsights/apiKey:ApiKey my_key /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Insights/components/instance1/apiKeys/00000000-0000-0000-0000-000000000000 ```

func GetApiKey

func GetApiKey(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ApiKeyState, opts ...pulumi.ResourceOption) (*ApiKey, error)

GetApiKey gets an existing ApiKey resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewApiKey

func NewApiKey(ctx *pulumi.Context,
	name string, args *ApiKeyArgs, opts ...pulumi.ResourceOption) (*ApiKey, error)

NewApiKey registers a new resource with the given unique name, arguments, and options.

func (*ApiKey) ElementType

func (*ApiKey) ElementType() reflect.Type

func (*ApiKey) ToApiKeyOutput

func (i *ApiKey) ToApiKeyOutput() ApiKeyOutput

func (*ApiKey) ToApiKeyOutputWithContext

func (i *ApiKey) ToApiKeyOutputWithContext(ctx context.Context) ApiKeyOutput

type ApiKeyArgs

type ApiKeyArgs struct {
	// The ID of the Application Insights component on which the API key operates. Changing this forces a new resource to be created.
	ApplicationInsightsId pulumi.StringInput
	// Specifies the name of the Application Insights API key. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Specifies the list of read permissions granted to the API key. Valid values are `agentconfig`, `aggregate`, `api`, `draft`, `extendqueries`, `search`. Please note these values are case sensitive. Changing this forces a new resource to be created.
	ReadPermissions pulumi.StringArrayInput
	// Specifies the list of write permissions granted to the API key. Valid values are `annotations`. Please note these values are case sensitive. Changing this forces a new resource to be created.
	//
	// > **Note:** At least one read or write permission must be defined.
	WritePermissions pulumi.StringArrayInput
}

The set of arguments for constructing a ApiKey resource.

func (ApiKeyArgs) ElementType

func (ApiKeyArgs) ElementType() reflect.Type

type ApiKeyArray

type ApiKeyArray []ApiKeyInput

func (ApiKeyArray) ElementType

func (ApiKeyArray) ElementType() reflect.Type

func (ApiKeyArray) ToApiKeyArrayOutput

func (i ApiKeyArray) ToApiKeyArrayOutput() ApiKeyArrayOutput

func (ApiKeyArray) ToApiKeyArrayOutputWithContext

func (i ApiKeyArray) ToApiKeyArrayOutputWithContext(ctx context.Context) ApiKeyArrayOutput

type ApiKeyArrayInput

type ApiKeyArrayInput interface {
	pulumi.Input

	ToApiKeyArrayOutput() ApiKeyArrayOutput
	ToApiKeyArrayOutputWithContext(context.Context) ApiKeyArrayOutput
}

ApiKeyArrayInput is an input type that accepts ApiKeyArray and ApiKeyArrayOutput values. You can construct a concrete instance of `ApiKeyArrayInput` via:

ApiKeyArray{ ApiKeyArgs{...} }

type ApiKeyArrayOutput

type ApiKeyArrayOutput struct{ *pulumi.OutputState }

func (ApiKeyArrayOutput) ElementType

func (ApiKeyArrayOutput) ElementType() reflect.Type

func (ApiKeyArrayOutput) Index

func (ApiKeyArrayOutput) ToApiKeyArrayOutput

func (o ApiKeyArrayOutput) ToApiKeyArrayOutput() ApiKeyArrayOutput

func (ApiKeyArrayOutput) ToApiKeyArrayOutputWithContext

func (o ApiKeyArrayOutput) ToApiKeyArrayOutputWithContext(ctx context.Context) ApiKeyArrayOutput

type ApiKeyInput

type ApiKeyInput interface {
	pulumi.Input

	ToApiKeyOutput() ApiKeyOutput
	ToApiKeyOutputWithContext(ctx context.Context) ApiKeyOutput
}

type ApiKeyMap

type ApiKeyMap map[string]ApiKeyInput

func (ApiKeyMap) ElementType

func (ApiKeyMap) ElementType() reflect.Type

func (ApiKeyMap) ToApiKeyMapOutput

func (i ApiKeyMap) ToApiKeyMapOutput() ApiKeyMapOutput

func (ApiKeyMap) ToApiKeyMapOutputWithContext

func (i ApiKeyMap) ToApiKeyMapOutputWithContext(ctx context.Context) ApiKeyMapOutput

type ApiKeyMapInput

type ApiKeyMapInput interface {
	pulumi.Input

	ToApiKeyMapOutput() ApiKeyMapOutput
	ToApiKeyMapOutputWithContext(context.Context) ApiKeyMapOutput
}

ApiKeyMapInput is an input type that accepts ApiKeyMap and ApiKeyMapOutput values. You can construct a concrete instance of `ApiKeyMapInput` via:

ApiKeyMap{ "key": ApiKeyArgs{...} }

type ApiKeyMapOutput

type ApiKeyMapOutput struct{ *pulumi.OutputState }

func (ApiKeyMapOutput) ElementType

func (ApiKeyMapOutput) ElementType() reflect.Type

func (ApiKeyMapOutput) MapIndex

func (ApiKeyMapOutput) ToApiKeyMapOutput

func (o ApiKeyMapOutput) ToApiKeyMapOutput() ApiKeyMapOutput

func (ApiKeyMapOutput) ToApiKeyMapOutputWithContext

func (o ApiKeyMapOutput) ToApiKeyMapOutputWithContext(ctx context.Context) ApiKeyMapOutput

type ApiKeyOutput

type ApiKeyOutput struct{ *pulumi.OutputState }

func (ApiKeyOutput) ApiKey

func (o ApiKeyOutput) ApiKey() pulumi.StringOutput

The API Key secret (Sensitive).

func (ApiKeyOutput) ApplicationInsightsId

func (o ApiKeyOutput) ApplicationInsightsId() pulumi.StringOutput

The ID of the Application Insights component on which the API key operates. Changing this forces a new resource to be created.

func (ApiKeyOutput) ElementType

func (ApiKeyOutput) ElementType() reflect.Type

func (ApiKeyOutput) Name

func (o ApiKeyOutput) Name() pulumi.StringOutput

Specifies the name of the Application Insights API key. Changing this forces a new resource to be created.

func (ApiKeyOutput) ReadPermissions

func (o ApiKeyOutput) ReadPermissions() pulumi.StringArrayOutput

Specifies the list of read permissions granted to the API key. Valid values are `agentconfig`, `aggregate`, `api`, `draft`, `extendqueries`, `search`. Please note these values are case sensitive. Changing this forces a new resource to be created.

func (ApiKeyOutput) ToApiKeyOutput

func (o ApiKeyOutput) ToApiKeyOutput() ApiKeyOutput

func (ApiKeyOutput) ToApiKeyOutputWithContext

func (o ApiKeyOutput) ToApiKeyOutputWithContext(ctx context.Context) ApiKeyOutput

func (ApiKeyOutput) WritePermissions

func (o ApiKeyOutput) WritePermissions() pulumi.StringArrayOutput

Specifies the list of write permissions granted to the API key. Valid values are `annotations`. Please note these values are case sensitive. Changing this forces a new resource to be created.

> **Note:** At least one read or write permission must be defined.

type ApiKeyState

type ApiKeyState struct {
	// The API Key secret (Sensitive).
	ApiKey pulumi.StringPtrInput
	// The ID of the Application Insights component on which the API key operates. Changing this forces a new resource to be created.
	ApplicationInsightsId pulumi.StringPtrInput
	// Specifies the name of the Application Insights API key. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Specifies the list of read permissions granted to the API key. Valid values are `agentconfig`, `aggregate`, `api`, `draft`, `extendqueries`, `search`. Please note these values are case sensitive. Changing this forces a new resource to be created.
	ReadPermissions pulumi.StringArrayInput
	// Specifies the list of write permissions granted to the API key. Valid values are `annotations`. Please note these values are case sensitive. Changing this forces a new resource to be created.
	//
	// > **Note:** At least one read or write permission must be defined.
	WritePermissions pulumi.StringArrayInput
}

func (ApiKeyState) ElementType

func (ApiKeyState) ElementType() reflect.Type

type Insights

type Insights struct {
	pulumi.CustomResourceState

	// The App ID associated with this Application Insights component.
	AppId pulumi.StringOutput `pulumi:"appId"`
	// Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created.
	ApplicationType pulumi.StringOutput `pulumi:"applicationType"`
	// The Connection String for this Application Insights component. (Sensitive)
	ConnectionString pulumi.StringOutput `pulumi:"connectionString"`
	// Specifies the Application Insights component daily data volume cap in GB. Defaults to `100`.
	DailyDataCapInGb pulumi.Float64PtrOutput `pulumi:"dailyDataCapInGb"`
	// Specifies if a notification email will be sent when the daily data volume cap is met. Defaults to `false`.
	DailyDataCapNotificationsDisabled pulumi.BoolPtrOutput `pulumi:"dailyDataCapNotificationsDisabled"`
	// By default the real client IP is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client IP. Defaults to `false`.
	DisableIpMasking pulumi.BoolPtrOutput `pulumi:"disableIpMasking"`
	// Should the Application Insights component force users to create their own storage account for profiling? Defaults to `false`.
	ForceCustomerStorageForProfiler pulumi.BoolPtrOutput `pulumi:"forceCustomerStorageForProfiler"`
	// The Instrumentation Key for this Application Insights component. (Sensitive)
	InstrumentationKey pulumi.StringOutput `pulumi:"instrumentationKey"`
	// Should the Application Insights component support ingestion over the Public Internet? Defaults to `true`.
	InternetIngestionEnabled pulumi.BoolPtrOutput `pulumi:"internetIngestionEnabled"`
	// Should the Application Insights component support querying over the Public Internet? Defaults to `true`.
	InternetQueryEnabled pulumi.BoolPtrOutput `pulumi:"internetQueryEnabled"`
	// Disable Non-Azure AD based Auth. Defaults to `false`.
	LocalAuthenticationDisabled pulumi.BoolPtrOutput `pulumi:"localAuthenticationDisabled"`
	// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// Specifies the name of the Application Insights component. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the resource group in which to create the Application Insights component. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`.
	RetentionInDays pulumi.IntPtrOutput `pulumi:"retentionInDays"`
	// Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. Defaults to `100`.
	SamplingPercentage pulumi.Float64PtrOutput `pulumi:"samplingPercentage"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Specifies the id of a log analytics workspace resource.
	//
	// > **NOTE:** `workspaceId` cannot be removed after set. More details can be found at [Migrate to workspace-based Application Insights resources](https://docs.microsoft.com/azure/azure-monitor/app/convert-classic-resource#migration-process). If `workspaceId` is not specified but you encounter a diff, this might indicate a Microsoft initiated automatic migration from classic resources to workspace-based resources. If this is the case, please update `workspaceId` in the config file to the new value.
	WorkspaceId pulumi.StringPtrOutput `pulumi:"workspaceId"`
}

Manages an Application Insights component.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("tf-test"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
			Name:              pulumi.String("tf-test-appinsights"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			ApplicationType:   pulumi.String("web"),
		})
		if err != nil {
			return err
		}
		ctx.Export("instrumentationKey", exampleInsights.InstrumentationKey)
		ctx.Export("appId", exampleInsights.AppId)
		return nil
	})
}

```

### Workspace Mode

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("tf-test"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
			Name:              pulumi.String("workspace-test"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Sku:               pulumi.String("PerGB2018"),
			RetentionInDays:   pulumi.Int(30),
		})
		if err != nil {
			return err
		}
		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
			Name:              pulumi.String("tf-test-appinsights"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			WorkspaceId:       exampleAnalyticsWorkspace.ID(),
			ApplicationType:   pulumi.String("web"),
		})
		if err != nil {
			return err
		}
		ctx.Export("instrumentationKey", exampleInsights.InstrumentationKey)
		ctx.Export("appId", exampleInsights.AppId)
		return nil
	})
}

```

## Import

Application Insights instances can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:appinsights/insights:Insights instance1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Insights/components/instance1 ```

func GetInsights

func GetInsights(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InsightsState, opts ...pulumi.ResourceOption) (*Insights, error)

GetInsights gets an existing Insights resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewInsights

func NewInsights(ctx *pulumi.Context,
	name string, args *InsightsArgs, opts ...pulumi.ResourceOption) (*Insights, error)

NewInsights registers a new resource with the given unique name, arguments, and options.

func (*Insights) ElementType

func (*Insights) ElementType() reflect.Type

func (*Insights) ToInsightsOutput

func (i *Insights) ToInsightsOutput() InsightsOutput

func (*Insights) ToInsightsOutputWithContext

func (i *Insights) ToInsightsOutputWithContext(ctx context.Context) InsightsOutput

type InsightsArgs

type InsightsArgs struct {
	// Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created.
	ApplicationType pulumi.StringInput
	// Specifies the Application Insights component daily data volume cap in GB. Defaults to `100`.
	DailyDataCapInGb pulumi.Float64PtrInput
	// Specifies if a notification email will be sent when the daily data volume cap is met. Defaults to `false`.
	DailyDataCapNotificationsDisabled pulumi.BoolPtrInput
	// By default the real client IP is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client IP. Defaults to `false`.
	DisableIpMasking pulumi.BoolPtrInput
	// Should the Application Insights component force users to create their own storage account for profiling? Defaults to `false`.
	ForceCustomerStorageForProfiler pulumi.BoolPtrInput
	// Should the Application Insights component support ingestion over the Public Internet? Defaults to `true`.
	InternetIngestionEnabled pulumi.BoolPtrInput
	// Should the Application Insights component support querying over the Public Internet? Defaults to `true`.
	InternetQueryEnabled pulumi.BoolPtrInput
	// Disable Non-Azure AD based Auth. Defaults to `false`.
	LocalAuthenticationDisabled pulumi.BoolPtrInput
	// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// Specifies the name of the Application Insights component. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which to create the Application Insights component. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringInput
	// Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`.
	RetentionInDays pulumi.IntPtrInput
	// Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. Defaults to `100`.
	SamplingPercentage pulumi.Float64PtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Specifies the id of a log analytics workspace resource.
	//
	// > **NOTE:** `workspaceId` cannot be removed after set. More details can be found at [Migrate to workspace-based Application Insights resources](https://docs.microsoft.com/azure/azure-monitor/app/convert-classic-resource#migration-process). If `workspaceId` is not specified but you encounter a diff, this might indicate a Microsoft initiated automatic migration from classic resources to workspace-based resources. If this is the case, please update `workspaceId` in the config file to the new value.
	WorkspaceId pulumi.StringPtrInput
}

The set of arguments for constructing a Insights resource.

func (InsightsArgs) ElementType

func (InsightsArgs) ElementType() reflect.Type

type InsightsArray

type InsightsArray []InsightsInput

func (InsightsArray) ElementType

func (InsightsArray) ElementType() reflect.Type

func (InsightsArray) ToInsightsArrayOutput

func (i InsightsArray) ToInsightsArrayOutput() InsightsArrayOutput

func (InsightsArray) ToInsightsArrayOutputWithContext

func (i InsightsArray) ToInsightsArrayOutputWithContext(ctx context.Context) InsightsArrayOutput

type InsightsArrayInput

type InsightsArrayInput interface {
	pulumi.Input

	ToInsightsArrayOutput() InsightsArrayOutput
	ToInsightsArrayOutputWithContext(context.Context) InsightsArrayOutput
}

InsightsArrayInput is an input type that accepts InsightsArray and InsightsArrayOutput values. You can construct a concrete instance of `InsightsArrayInput` via:

InsightsArray{ InsightsArgs{...} }

type InsightsArrayOutput

type InsightsArrayOutput struct{ *pulumi.OutputState }

func (InsightsArrayOutput) ElementType

func (InsightsArrayOutput) ElementType() reflect.Type

func (InsightsArrayOutput) Index

func (InsightsArrayOutput) ToInsightsArrayOutput

func (o InsightsArrayOutput) ToInsightsArrayOutput() InsightsArrayOutput

func (InsightsArrayOutput) ToInsightsArrayOutputWithContext

func (o InsightsArrayOutput) ToInsightsArrayOutputWithContext(ctx context.Context) InsightsArrayOutput

type InsightsInput

type InsightsInput interface {
	pulumi.Input

	ToInsightsOutput() InsightsOutput
	ToInsightsOutputWithContext(ctx context.Context) InsightsOutput
}

type InsightsMap

type InsightsMap map[string]InsightsInput

func (InsightsMap) ElementType

func (InsightsMap) ElementType() reflect.Type

func (InsightsMap) ToInsightsMapOutput

func (i InsightsMap) ToInsightsMapOutput() InsightsMapOutput

func (InsightsMap) ToInsightsMapOutputWithContext

func (i InsightsMap) ToInsightsMapOutputWithContext(ctx context.Context) InsightsMapOutput

type InsightsMapInput

type InsightsMapInput interface {
	pulumi.Input

	ToInsightsMapOutput() InsightsMapOutput
	ToInsightsMapOutputWithContext(context.Context) InsightsMapOutput
}

InsightsMapInput is an input type that accepts InsightsMap and InsightsMapOutput values. You can construct a concrete instance of `InsightsMapInput` via:

InsightsMap{ "key": InsightsArgs{...} }

type InsightsMapOutput

type InsightsMapOutput struct{ *pulumi.OutputState }

func (InsightsMapOutput) ElementType

func (InsightsMapOutput) ElementType() reflect.Type

func (InsightsMapOutput) MapIndex

func (InsightsMapOutput) ToInsightsMapOutput

func (o InsightsMapOutput) ToInsightsMapOutput() InsightsMapOutput

func (InsightsMapOutput) ToInsightsMapOutputWithContext

func (o InsightsMapOutput) ToInsightsMapOutputWithContext(ctx context.Context) InsightsMapOutput

type InsightsOutput

type InsightsOutput struct{ *pulumi.OutputState }

func (InsightsOutput) AppId

The App ID associated with this Application Insights component.

func (InsightsOutput) ApplicationType

func (o InsightsOutput) ApplicationType() pulumi.StringOutput

Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created.

func (InsightsOutput) ConnectionString

func (o InsightsOutput) ConnectionString() pulumi.StringOutput

The Connection String for this Application Insights component. (Sensitive)

func (InsightsOutput) DailyDataCapInGb

func (o InsightsOutput) DailyDataCapInGb() pulumi.Float64PtrOutput

Specifies the Application Insights component daily data volume cap in GB. Defaults to `100`.

func (InsightsOutput) DailyDataCapNotificationsDisabled

func (o InsightsOutput) DailyDataCapNotificationsDisabled() pulumi.BoolPtrOutput

Specifies if a notification email will be sent when the daily data volume cap is met. Defaults to `false`.

func (InsightsOutput) DisableIpMasking

func (o InsightsOutput) DisableIpMasking() pulumi.BoolPtrOutput

By default the real client IP is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client IP. Defaults to `false`.

func (InsightsOutput) ElementType

func (InsightsOutput) ElementType() reflect.Type

func (InsightsOutput) ForceCustomerStorageForProfiler

func (o InsightsOutput) ForceCustomerStorageForProfiler() pulumi.BoolPtrOutput

Should the Application Insights component force users to create their own storage account for profiling? Defaults to `false`.

func (InsightsOutput) InstrumentationKey

func (o InsightsOutput) InstrumentationKey() pulumi.StringOutput

The Instrumentation Key for this Application Insights component. (Sensitive)

func (InsightsOutput) InternetIngestionEnabled

func (o InsightsOutput) InternetIngestionEnabled() pulumi.BoolPtrOutput

Should the Application Insights component support ingestion over the Public Internet? Defaults to `true`.

func (InsightsOutput) InternetQueryEnabled

func (o InsightsOutput) InternetQueryEnabled() pulumi.BoolPtrOutput

Should the Application Insights component support querying over the Public Internet? Defaults to `true`.

func (InsightsOutput) LocalAuthenticationDisabled

func (o InsightsOutput) LocalAuthenticationDisabled() pulumi.BoolPtrOutput

Disable Non-Azure AD based Auth. Defaults to `false`.

func (InsightsOutput) Location

func (o InsightsOutput) Location() pulumi.StringOutput

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

func (InsightsOutput) Name

Specifies the name of the Application Insights component. Changing this forces a new resource to be created.

func (InsightsOutput) ResourceGroupName

func (o InsightsOutput) ResourceGroupName() pulumi.StringOutput

The name of the resource group in which to create the Application Insights component. Changing this forces a new resource to be created.

func (InsightsOutput) RetentionInDays

func (o InsightsOutput) RetentionInDays() pulumi.IntPtrOutput

Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`.

func (InsightsOutput) SamplingPercentage

func (o InsightsOutput) SamplingPercentage() pulumi.Float64PtrOutput

Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. Defaults to `100`.

func (InsightsOutput) Tags

A mapping of tags to assign to the resource.

func (InsightsOutput) ToInsightsOutput

func (o InsightsOutput) ToInsightsOutput() InsightsOutput

func (InsightsOutput) ToInsightsOutputWithContext

func (o InsightsOutput) ToInsightsOutputWithContext(ctx context.Context) InsightsOutput

func (InsightsOutput) WorkspaceId

func (o InsightsOutput) WorkspaceId() pulumi.StringPtrOutput

Specifies the id of a log analytics workspace resource.

> **NOTE:** `workspaceId` cannot be removed after set. More details can be found at [Migrate to workspace-based Application Insights resources](https://docs.microsoft.com/azure/azure-monitor/app/convert-classic-resource#migration-process). If `workspaceId` is not specified but you encounter a diff, this might indicate a Microsoft initiated automatic migration from classic resources to workspace-based resources. If this is the case, please update `workspaceId` in the config file to the new value.

type InsightsState

type InsightsState struct {
	// The App ID associated with this Application Insights component.
	AppId pulumi.StringPtrInput
	// Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created.
	ApplicationType pulumi.StringPtrInput
	// The Connection String for this Application Insights component. (Sensitive)
	ConnectionString pulumi.StringPtrInput
	// Specifies the Application Insights component daily data volume cap in GB. Defaults to `100`.
	DailyDataCapInGb pulumi.Float64PtrInput
	// Specifies if a notification email will be sent when the daily data volume cap is met. Defaults to `false`.
	DailyDataCapNotificationsDisabled pulumi.BoolPtrInput
	// By default the real client IP is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client IP. Defaults to `false`.
	DisableIpMasking pulumi.BoolPtrInput
	// Should the Application Insights component force users to create their own storage account for profiling? Defaults to `false`.
	ForceCustomerStorageForProfiler pulumi.BoolPtrInput
	// The Instrumentation Key for this Application Insights component. (Sensitive)
	InstrumentationKey pulumi.StringPtrInput
	// Should the Application Insights component support ingestion over the Public Internet? Defaults to `true`.
	InternetIngestionEnabled pulumi.BoolPtrInput
	// Should the Application Insights component support querying over the Public Internet? Defaults to `true`.
	InternetQueryEnabled pulumi.BoolPtrInput
	// Disable Non-Azure AD based Auth. Defaults to `false`.
	LocalAuthenticationDisabled pulumi.BoolPtrInput
	// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
	Location pulumi.StringPtrInput
	// Specifies the name of the Application Insights component. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which to create the Application Insights component. Changing this forces a new resource to be created.
	ResourceGroupName pulumi.StringPtrInput
	// Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`.
	RetentionInDays pulumi.IntPtrInput
	// Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. Defaults to `100`.
	SamplingPercentage pulumi.Float64PtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Specifies the id of a log analytics workspace resource.
	//
	// > **NOTE:** `workspaceId` cannot be removed after set. More details can be found at [Migrate to workspace-based Application Insights resources](https://docs.microsoft.com/azure/azure-monitor/app/convert-classic-resource#migration-process). If `workspaceId` is not specified but you encounter a diff, this might indicate a Microsoft initiated automatic migration from classic resources to workspace-based resources. If this is the case, please update `workspaceId` in the config file to the new value.
	WorkspaceId pulumi.StringPtrInput
}

func (InsightsState) ElementType

func (InsightsState) ElementType() reflect.Type

type LookupInsightsArgs

type LookupInsightsArgs struct {
	// Specifies the name of the Application Insights component.
	Name string `pulumi:"name"`
	// Specifies the name of the resource group the Application Insights component is located in.
	ResourceGroupName string `pulumi:"resourceGroupName"`
}

A collection of arguments for invoking getInsights.

type LookupInsightsOutputArgs

type LookupInsightsOutputArgs struct {
	// Specifies the name of the Application Insights component.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies the name of the resource group the Application Insights component is located in.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
}

A collection of arguments for invoking getInsights.

func (LookupInsightsOutputArgs) ElementType

func (LookupInsightsOutputArgs) ElementType() reflect.Type

type LookupInsightsResult

type LookupInsightsResult struct {
	// The App ID associated with this Application Insights component.
	AppId string `pulumi:"appId"`
	// The type of the component.
	ApplicationType string `pulumi:"applicationType"`
	// The connection string of the Application Insights component. (Sensitive)
	ConnectionString string `pulumi:"connectionString"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The instrumentation key of the Application Insights component.
	InstrumentationKey string `pulumi:"instrumentationKey"`
	// The Azure location where the component exists.
	Location          string `pulumi:"location"`
	Name              string `pulumi:"name"`
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// The retention period in days.
	RetentionInDays int `pulumi:"retentionInDays"`
	// Tags applied to the component.
	Tags map[string]string `pulumi:"tags"`
	// The id of the associated Log Analytics workspace
	WorkspaceId string `pulumi:"workspaceId"`
}

A collection of values returned by getInsights.

func LookupInsights

func LookupInsights(ctx *pulumi.Context, args *LookupInsightsArgs, opts ...pulumi.InvokeOption) (*LookupInsightsResult, error)

Use this data source to access information about an existing Application Insights component.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := appinsights.LookupInsights(ctx, &appinsights.LookupInsightsArgs{
			Name:              "production",
			ResourceGroupName: "networking",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("applicationInsightsInstrumentationKey", example.InstrumentationKey)
		return nil
	})
}

```

type LookupInsightsResultOutput

type LookupInsightsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInsights.

func (LookupInsightsResultOutput) AppId

The App ID associated with this Application Insights component.

func (LookupInsightsResultOutput) ApplicationType

func (o LookupInsightsResultOutput) ApplicationType() pulumi.StringOutput

The type of the component.

func (LookupInsightsResultOutput) ConnectionString

func (o LookupInsightsResultOutput) ConnectionString() pulumi.StringOutput

The connection string of the Application Insights component. (Sensitive)

func (LookupInsightsResultOutput) ElementType

func (LookupInsightsResultOutput) ElementType() reflect.Type

func (LookupInsightsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupInsightsResultOutput) InstrumentationKey

func (o LookupInsightsResultOutput) InstrumentationKey() pulumi.StringOutput

The instrumentation key of the Application Insights component.

func (LookupInsightsResultOutput) Location

The Azure location where the component exists.

func (LookupInsightsResultOutput) Name

func (LookupInsightsResultOutput) ResourceGroupName

func (o LookupInsightsResultOutput) ResourceGroupName() pulumi.StringOutput

func (LookupInsightsResultOutput) RetentionInDays

func (o LookupInsightsResultOutput) RetentionInDays() pulumi.IntOutput

The retention period in days.

func (LookupInsightsResultOutput) Tags

Tags applied to the component.

func (LookupInsightsResultOutput) ToLookupInsightsResultOutput

func (o LookupInsightsResultOutput) ToLookupInsightsResultOutput() LookupInsightsResultOutput

func (LookupInsightsResultOutput) ToLookupInsightsResultOutputWithContext

func (o LookupInsightsResultOutput) ToLookupInsightsResultOutputWithContext(ctx context.Context) LookupInsightsResultOutput

func (LookupInsightsResultOutput) WorkspaceId

The id of the associated Log Analytics workspace

type SmartDetectionRule

type SmartDetectionRule struct {
	pulumi.CustomResourceState

	// Specifies a list of additional recipients that will be sent emails on this Application Insights Smart Detection Rule.
	//
	// > **Note:** At least one read or write permission must be defined.
	AdditionalEmailRecipients pulumi.StringArrayOutput `pulumi:"additionalEmailRecipients"`
	// The ID of the Application Insights component on which the Smart Detection Rule operates. Changing this forces a new resource to be created.
	ApplicationInsightsId pulumi.StringOutput `pulumi:"applicationInsightsId"`
	// Is the Application Insights Smart Detection Rule enabled? Defaults to `true`.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// Specifies the name of the Application Insights Smart Detection Rule. Valid values include `Slow page load time`, `Slow server response time`, `Potential memory leak detected`, `Potential security issue detected`, `Long dependency duration`, `Degradation in server response time`, `Degradation in dependency duration`, `Degradation in trace severity ratio`, `Abnormal rise in exception volume`, `Abnormal rise in daily data volume`. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Do emails get sent to subscription owners? Defaults to `true`.
	SendEmailsToSubscriptionOwners pulumi.BoolPtrOutput `pulumi:"sendEmailsToSubscriptionOwners"`
}

Manages an Application Insights Smart Detection Rule.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("tf-test"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
			Name:              pulumi.String("tf-test-appinsights"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			ApplicationType:   pulumi.String("web"),
		})
		if err != nil {
			return err
		}
		_, err = appinsights.NewSmartDetectionRule(ctx, "example", &appinsights.SmartDetectionRuleArgs{
			Name:                  pulumi.String("Slow server response time"),
			ApplicationInsightsId: exampleInsights.ID(),
			Enabled:               pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Application Insights Smart Detection Rules can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:appinsights/smartDetectionRule:SmartDetectionRule rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Insights/components/mycomponent1/proactiveDetectionConfigs/myrule1 ```

func GetSmartDetectionRule

func GetSmartDetectionRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SmartDetectionRuleState, opts ...pulumi.ResourceOption) (*SmartDetectionRule, error)

GetSmartDetectionRule gets an existing SmartDetectionRule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSmartDetectionRule

func NewSmartDetectionRule(ctx *pulumi.Context,
	name string, args *SmartDetectionRuleArgs, opts ...pulumi.ResourceOption) (*SmartDetectionRule, error)

NewSmartDetectionRule registers a new resource with the given unique name, arguments, and options.

func (*SmartDetectionRule) ElementType

func (*SmartDetectionRule) ElementType() reflect.Type

func (*SmartDetectionRule) ToSmartDetectionRuleOutput

func (i *SmartDetectionRule) ToSmartDetectionRuleOutput() SmartDetectionRuleOutput

func (*SmartDetectionRule) ToSmartDetectionRuleOutputWithContext

func (i *SmartDetectionRule) ToSmartDetectionRuleOutputWithContext(ctx context.Context) SmartDetectionRuleOutput

type SmartDetectionRuleArgs

type SmartDetectionRuleArgs struct {
	// Specifies a list of additional recipients that will be sent emails on this Application Insights Smart Detection Rule.
	//
	// > **Note:** At least one read or write permission must be defined.
	AdditionalEmailRecipients pulumi.StringArrayInput
	// The ID of the Application Insights component on which the Smart Detection Rule operates. Changing this forces a new resource to be created.
	ApplicationInsightsId pulumi.StringInput
	// Is the Application Insights Smart Detection Rule enabled? Defaults to `true`.
	Enabled pulumi.BoolPtrInput
	// Specifies the name of the Application Insights Smart Detection Rule. Valid values include `Slow page load time`, `Slow server response time`, `Potential memory leak detected`, `Potential security issue detected`, `Long dependency duration`, `Degradation in server response time`, `Degradation in dependency duration`, `Degradation in trace severity ratio`, `Abnormal rise in exception volume`, `Abnormal rise in daily data volume`. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Do emails get sent to subscription owners? Defaults to `true`.
	SendEmailsToSubscriptionOwners pulumi.BoolPtrInput
}

The set of arguments for constructing a SmartDetectionRule resource.

func (SmartDetectionRuleArgs) ElementType

func (SmartDetectionRuleArgs) ElementType() reflect.Type

type SmartDetectionRuleArray

type SmartDetectionRuleArray []SmartDetectionRuleInput

func (SmartDetectionRuleArray) ElementType

func (SmartDetectionRuleArray) ElementType() reflect.Type

func (SmartDetectionRuleArray) ToSmartDetectionRuleArrayOutput

func (i SmartDetectionRuleArray) ToSmartDetectionRuleArrayOutput() SmartDetectionRuleArrayOutput

func (SmartDetectionRuleArray) ToSmartDetectionRuleArrayOutputWithContext

func (i SmartDetectionRuleArray) ToSmartDetectionRuleArrayOutputWithContext(ctx context.Context) SmartDetectionRuleArrayOutput

type SmartDetectionRuleArrayInput

type SmartDetectionRuleArrayInput interface {
	pulumi.Input

	ToSmartDetectionRuleArrayOutput() SmartDetectionRuleArrayOutput
	ToSmartDetectionRuleArrayOutputWithContext(context.Context) SmartDetectionRuleArrayOutput
}

SmartDetectionRuleArrayInput is an input type that accepts SmartDetectionRuleArray and SmartDetectionRuleArrayOutput values. You can construct a concrete instance of `SmartDetectionRuleArrayInput` via:

SmartDetectionRuleArray{ SmartDetectionRuleArgs{...} }

type SmartDetectionRuleArrayOutput

type SmartDetectionRuleArrayOutput struct{ *pulumi.OutputState }

func (SmartDetectionRuleArrayOutput) ElementType

func (SmartDetectionRuleArrayOutput) Index

func (SmartDetectionRuleArrayOutput) ToSmartDetectionRuleArrayOutput

func (o SmartDetectionRuleArrayOutput) ToSmartDetectionRuleArrayOutput() SmartDetectionRuleArrayOutput

func (SmartDetectionRuleArrayOutput) ToSmartDetectionRuleArrayOutputWithContext

func (o SmartDetectionRuleArrayOutput) ToSmartDetectionRuleArrayOutputWithContext(ctx context.Context) SmartDetectionRuleArrayOutput

type SmartDetectionRuleInput

type SmartDetectionRuleInput interface {
	pulumi.Input

	ToSmartDetectionRuleOutput() SmartDetectionRuleOutput
	ToSmartDetectionRuleOutputWithContext(ctx context.Context) SmartDetectionRuleOutput
}

type SmartDetectionRuleMap

type SmartDetectionRuleMap map[string]SmartDetectionRuleInput

func (SmartDetectionRuleMap) ElementType

func (SmartDetectionRuleMap) ElementType() reflect.Type

func (SmartDetectionRuleMap) ToSmartDetectionRuleMapOutput

func (i SmartDetectionRuleMap) ToSmartDetectionRuleMapOutput() SmartDetectionRuleMapOutput

func (SmartDetectionRuleMap) ToSmartDetectionRuleMapOutputWithContext

func (i SmartDetectionRuleMap) ToSmartDetectionRuleMapOutputWithContext(ctx context.Context) SmartDetectionRuleMapOutput

type SmartDetectionRuleMapInput

type SmartDetectionRuleMapInput interface {
	pulumi.Input

	ToSmartDetectionRuleMapOutput() SmartDetectionRuleMapOutput
	ToSmartDetectionRuleMapOutputWithContext(context.Context) SmartDetectionRuleMapOutput
}

SmartDetectionRuleMapInput is an input type that accepts SmartDetectionRuleMap and SmartDetectionRuleMapOutput values. You can construct a concrete instance of `SmartDetectionRuleMapInput` via:

SmartDetectionRuleMap{ "key": SmartDetectionRuleArgs{...} }

type SmartDetectionRuleMapOutput

type SmartDetectionRuleMapOutput struct{ *pulumi.OutputState }

func (SmartDetectionRuleMapOutput) ElementType

func (SmartDetectionRuleMapOutput) MapIndex

func (SmartDetectionRuleMapOutput) ToSmartDetectionRuleMapOutput

func (o SmartDetectionRuleMapOutput) ToSmartDetectionRuleMapOutput() SmartDetectionRuleMapOutput

func (SmartDetectionRuleMapOutput) ToSmartDetectionRuleMapOutputWithContext

func (o SmartDetectionRuleMapOutput) ToSmartDetectionRuleMapOutputWithContext(ctx context.Context) SmartDetectionRuleMapOutput

type SmartDetectionRuleOutput

type SmartDetectionRuleOutput struct{ *pulumi.OutputState }

func (SmartDetectionRuleOutput) AdditionalEmailRecipients

func (o SmartDetectionRuleOutput) AdditionalEmailRecipients() pulumi.StringArrayOutput

Specifies a list of additional recipients that will be sent emails on this Application Insights Smart Detection Rule.

> **Note:** At least one read or write permission must be defined.

func (SmartDetectionRuleOutput) ApplicationInsightsId

func (o SmartDetectionRuleOutput) ApplicationInsightsId() pulumi.StringOutput

The ID of the Application Insights component on which the Smart Detection Rule operates. Changing this forces a new resource to be created.

func (SmartDetectionRuleOutput) ElementType

func (SmartDetectionRuleOutput) ElementType() reflect.Type

func (SmartDetectionRuleOutput) Enabled

Is the Application Insights Smart Detection Rule enabled? Defaults to `true`.

func (SmartDetectionRuleOutput) Name

Specifies the name of the Application Insights Smart Detection Rule. Valid values include `Slow page load time`, `Slow server response time`, `Potential memory leak detected`, `Potential security issue detected`, `Long dependency duration`, `Degradation in server response time`, `Degradation in dependency duration`, `Degradation in trace severity ratio`, `Abnormal rise in exception volume`, `Abnormal rise in daily data volume`. Changing this forces a new resource to be created.

func (SmartDetectionRuleOutput) SendEmailsToSubscriptionOwners

func (o SmartDetectionRuleOutput) SendEmailsToSubscriptionOwners() pulumi.BoolPtrOutput

Do emails get sent to subscription owners? Defaults to `true`.

func (SmartDetectionRuleOutput) ToSmartDetectionRuleOutput

func (o SmartDetectionRuleOutput) ToSmartDetectionRuleOutput() SmartDetectionRuleOutput

func (SmartDetectionRuleOutput) ToSmartDetectionRuleOutputWithContext

func (o SmartDetectionRuleOutput) ToSmartDetectionRuleOutputWithContext(ctx context.Context) SmartDetectionRuleOutput

type SmartDetectionRuleState

type SmartDetectionRuleState struct {
	// Specifies a list of additional recipients that will be sent emails on this Application Insights Smart Detection Rule.
	//
	// > **Note:** At least one read or write permission must be defined.
	AdditionalEmailRecipients pulumi.StringArrayInput
	// The ID of the Application Insights component on which the Smart Detection Rule operates. Changing this forces a new resource to be created.
	ApplicationInsightsId pulumi.StringPtrInput
	// Is the Application Insights Smart Detection Rule enabled? Defaults to `true`.
	Enabled pulumi.BoolPtrInput
	// Specifies the name of the Application Insights Smart Detection Rule. Valid values include `Slow page load time`, `Slow server response time`, `Potential memory leak detected`, `Potential security issue detected`, `Long dependency duration`, `Degradation in server response time`, `Degradation in dependency duration`, `Degradation in trace severity ratio`, `Abnormal rise in exception volume`, `Abnormal rise in daily data volume`. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// Do emails get sent to subscription owners? Defaults to `true`.
	SendEmailsToSubscriptionOwners pulumi.BoolPtrInput
}

func (SmartDetectionRuleState) ElementType

func (SmartDetectionRuleState) ElementType() reflect.Type

type StandardWebTest

type StandardWebTest struct {
	pulumi.CustomResourceState

	// The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.
	ApplicationInsightsId pulumi.StringOutput `pulumi:"applicationInsightsId"`
	// Purpose/user defined descriptive test for this WebTest.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Should the WebTest be enabled?
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`.
	Frequency pulumi.IntPtrOutput `pulumi:"frequency"`
	// Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application.
	//
	// > **Note:** [Valid options for geo locations are described here](https://docs.microsoft.com/azure/azure-monitor/app/monitor-web-app-availability#location-population-tags)
	GeoLocations pulumi.StringArrayOutput `pulumi:"geoLocations"`
	// The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)
	Location pulumi.StringOutput `pulumi:"location"`
	// The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// A `request` block as defined below.
	Request StandardWebTestRequestOutput `pulumi:"request"`
	// The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// Should the retry on WebTest failure be enabled?
	RetryEnabled pulumi.BoolPtrOutput `pulumi:"retryEnabled"`
	// Unique ID of this WebTest. This is typically the same value as the Name field.
	SyntheticMonitorId pulumi.StringOutput `pulumi:"syntheticMonitorId"`
	// A mapping of tags which should be assigned to the Application Insights Standard WebTest.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Seconds until this WebTest will timeout and fail. Default is `30`.
	Timeout pulumi.IntPtrOutput `pulumi:"timeout"`
	// A `validationRules` block as defined below.
	ValidationRules StandardWebTestValidationRulesPtrOutput `pulumi:"validationRules"`
}

Manages a Application Insights Standard WebTest.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("rg-example"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
			Name:              pulumi.String("example"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			ApplicationType:   pulumi.String("web"),
		})
		if err != nil {
			return err
		}
		_, err = appinsights.NewStandardWebTest(ctx, "example", &appinsights.StandardWebTestArgs{
			Name:                  pulumi.String("example-test"),
			ResourceGroupName:     example.Name,
			Location:              pulumi.String("West Europe"),
			ApplicationInsightsId: exampleInsights.ID(),
			GeoLocations: pulumi.StringArray{
				pulumi.String("example"),
			},
			Request: &appinsights.StandardWebTestRequestArgs{
				Url: pulumi.String("http://www.example.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Application Insights Standard WebTests can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:appinsights/standardWebTest:StandardWebTest example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Insights/webTests/appinsightswebtest ```

func GetStandardWebTest

func GetStandardWebTest(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StandardWebTestState, opts ...pulumi.ResourceOption) (*StandardWebTest, error)

GetStandardWebTest gets an existing StandardWebTest resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStandardWebTest

func NewStandardWebTest(ctx *pulumi.Context,
	name string, args *StandardWebTestArgs, opts ...pulumi.ResourceOption) (*StandardWebTest, error)

NewStandardWebTest registers a new resource with the given unique name, arguments, and options.

func (*StandardWebTest) ElementType

func (*StandardWebTest) ElementType() reflect.Type

func (*StandardWebTest) ToStandardWebTestOutput

func (i *StandardWebTest) ToStandardWebTestOutput() StandardWebTestOutput

func (*StandardWebTest) ToStandardWebTestOutputWithContext

func (i *StandardWebTest) ToStandardWebTestOutputWithContext(ctx context.Context) StandardWebTestOutput

type StandardWebTestArgs

type StandardWebTestArgs struct {
	// The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.
	ApplicationInsightsId pulumi.StringInput
	// Purpose/user defined descriptive test for this WebTest.
	Description pulumi.StringPtrInput
	// Should the WebTest be enabled?
	Enabled pulumi.BoolPtrInput
	// Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`.
	Frequency pulumi.IntPtrInput
	// Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application.
	//
	// > **Note:** [Valid options for geo locations are described here](https://docs.microsoft.com/azure/azure-monitor/app/monitor-web-app-availability#location-population-tags)
	GeoLocations pulumi.StringArrayInput
	// The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)
	Location pulumi.StringPtrInput
	// The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.
	Name pulumi.StringPtrInput
	// A `request` block as defined below.
	Request StandardWebTestRequestInput
	// The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.
	ResourceGroupName pulumi.StringInput
	// Should the retry on WebTest failure be enabled?
	RetryEnabled pulumi.BoolPtrInput
	// A mapping of tags which should be assigned to the Application Insights Standard WebTest.
	Tags pulumi.StringMapInput
	// Seconds until this WebTest will timeout and fail. Default is `30`.
	Timeout pulumi.IntPtrInput
	// A `validationRules` block as defined below.
	ValidationRules StandardWebTestValidationRulesPtrInput
}

The set of arguments for constructing a StandardWebTest resource.

func (StandardWebTestArgs) ElementType

func (StandardWebTestArgs) ElementType() reflect.Type

type StandardWebTestArray

type StandardWebTestArray []StandardWebTestInput

func (StandardWebTestArray) ElementType

func (StandardWebTestArray) ElementType() reflect.Type

func (StandardWebTestArray) ToStandardWebTestArrayOutput

func (i StandardWebTestArray) ToStandardWebTestArrayOutput() StandardWebTestArrayOutput

func (StandardWebTestArray) ToStandardWebTestArrayOutputWithContext

func (i StandardWebTestArray) ToStandardWebTestArrayOutputWithContext(ctx context.Context) StandardWebTestArrayOutput

type StandardWebTestArrayInput

type StandardWebTestArrayInput interface {
	pulumi.Input

	ToStandardWebTestArrayOutput() StandardWebTestArrayOutput
	ToStandardWebTestArrayOutputWithContext(context.Context) StandardWebTestArrayOutput
}

StandardWebTestArrayInput is an input type that accepts StandardWebTestArray and StandardWebTestArrayOutput values. You can construct a concrete instance of `StandardWebTestArrayInput` via:

StandardWebTestArray{ StandardWebTestArgs{...} }

type StandardWebTestArrayOutput

type StandardWebTestArrayOutput struct{ *pulumi.OutputState }

func (StandardWebTestArrayOutput) ElementType

func (StandardWebTestArrayOutput) ElementType() reflect.Type

func (StandardWebTestArrayOutput) Index

func (StandardWebTestArrayOutput) ToStandardWebTestArrayOutput

func (o StandardWebTestArrayOutput) ToStandardWebTestArrayOutput() StandardWebTestArrayOutput

func (StandardWebTestArrayOutput) ToStandardWebTestArrayOutputWithContext

func (o StandardWebTestArrayOutput) ToStandardWebTestArrayOutputWithContext(ctx context.Context) StandardWebTestArrayOutput

type StandardWebTestInput

type StandardWebTestInput interface {
	pulumi.Input

	ToStandardWebTestOutput() StandardWebTestOutput
	ToStandardWebTestOutputWithContext(ctx context.Context) StandardWebTestOutput
}

type StandardWebTestMap

type StandardWebTestMap map[string]StandardWebTestInput

func (StandardWebTestMap) ElementType

func (StandardWebTestMap) ElementType() reflect.Type

func (StandardWebTestMap) ToStandardWebTestMapOutput

func (i StandardWebTestMap) ToStandardWebTestMapOutput() StandardWebTestMapOutput

func (StandardWebTestMap) ToStandardWebTestMapOutputWithContext

func (i StandardWebTestMap) ToStandardWebTestMapOutputWithContext(ctx context.Context) StandardWebTestMapOutput

type StandardWebTestMapInput

type StandardWebTestMapInput interface {
	pulumi.Input

	ToStandardWebTestMapOutput() StandardWebTestMapOutput
	ToStandardWebTestMapOutputWithContext(context.Context) StandardWebTestMapOutput
}

StandardWebTestMapInput is an input type that accepts StandardWebTestMap and StandardWebTestMapOutput values. You can construct a concrete instance of `StandardWebTestMapInput` via:

StandardWebTestMap{ "key": StandardWebTestArgs{...} }

type StandardWebTestMapOutput

type StandardWebTestMapOutput struct{ *pulumi.OutputState }

func (StandardWebTestMapOutput) ElementType

func (StandardWebTestMapOutput) ElementType() reflect.Type

func (StandardWebTestMapOutput) MapIndex

func (StandardWebTestMapOutput) ToStandardWebTestMapOutput

func (o StandardWebTestMapOutput) ToStandardWebTestMapOutput() StandardWebTestMapOutput

func (StandardWebTestMapOutput) ToStandardWebTestMapOutputWithContext

func (o StandardWebTestMapOutput) ToStandardWebTestMapOutputWithContext(ctx context.Context) StandardWebTestMapOutput

type StandardWebTestOutput

type StandardWebTestOutput struct{ *pulumi.OutputState }

func (StandardWebTestOutput) ApplicationInsightsId

func (o StandardWebTestOutput) ApplicationInsightsId() pulumi.StringOutput

The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.

func (StandardWebTestOutput) Description

Purpose/user defined descriptive test for this WebTest.

func (StandardWebTestOutput) ElementType

func (StandardWebTestOutput) ElementType() reflect.Type

func (StandardWebTestOutput) Enabled

Should the WebTest be enabled?

func (StandardWebTestOutput) Frequency

Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`.

func (StandardWebTestOutput) GeoLocations

Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application.

> **Note:** [Valid options for geo locations are described here](https://docs.microsoft.com/azure/azure-monitor/app/monitor-web-app-availability#location-population-tags)

func (StandardWebTestOutput) Location

The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)

func (StandardWebTestOutput) Name

The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.

func (StandardWebTestOutput) Request

A `request` block as defined below.

func (StandardWebTestOutput) ResourceGroupName

func (o StandardWebTestOutput) ResourceGroupName() pulumi.StringOutput

The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.

func (StandardWebTestOutput) RetryEnabled

func (o StandardWebTestOutput) RetryEnabled() pulumi.BoolPtrOutput

Should the retry on WebTest failure be enabled?

func (StandardWebTestOutput) SyntheticMonitorId

func (o StandardWebTestOutput) SyntheticMonitorId() pulumi.StringOutput

Unique ID of this WebTest. This is typically the same value as the Name field.

func (StandardWebTestOutput) Tags

A mapping of tags which should be assigned to the Application Insights Standard WebTest.

func (StandardWebTestOutput) Timeout

Seconds until this WebTest will timeout and fail. Default is `30`.

func (StandardWebTestOutput) ToStandardWebTestOutput

func (o StandardWebTestOutput) ToStandardWebTestOutput() StandardWebTestOutput

func (StandardWebTestOutput) ToStandardWebTestOutputWithContext

func (o StandardWebTestOutput) ToStandardWebTestOutputWithContext(ctx context.Context) StandardWebTestOutput

func (StandardWebTestOutput) ValidationRules

A `validationRules` block as defined below.

type StandardWebTestRequest

type StandardWebTestRequest struct {
	// The WebTest request body.
	Body *string `pulumi:"body"`
	// Should the following of redirects be enabled? Defaults to `true`.
	FollowRedirectsEnabled *bool `pulumi:"followRedirectsEnabled"`
	// One or more `header` blocks as defined above.
	Headers []StandardWebTestRequestHeader `pulumi:"headers"`
	// Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to `GET`.
	HttpVerb *string `pulumi:"httpVerb"`
	// Should the parsing of dependend requests be enabled? Defaults to `true`.
	ParseDependentRequestsEnabled *bool `pulumi:"parseDependentRequestsEnabled"`
	// The WebTest request URL.
	Url string `pulumi:"url"`
}

type StandardWebTestRequestArgs

type StandardWebTestRequestArgs struct {
	// The WebTest request body.
	Body pulumi.StringPtrInput `pulumi:"body"`
	// Should the following of redirects be enabled? Defaults to `true`.
	FollowRedirectsEnabled pulumi.BoolPtrInput `pulumi:"followRedirectsEnabled"`
	// One or more `header` blocks as defined above.
	Headers StandardWebTestRequestHeaderArrayInput `pulumi:"headers"`
	// Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to `GET`.
	HttpVerb pulumi.StringPtrInput `pulumi:"httpVerb"`
	// Should the parsing of dependend requests be enabled? Defaults to `true`.
	ParseDependentRequestsEnabled pulumi.BoolPtrInput `pulumi:"parseDependentRequestsEnabled"`
	// The WebTest request URL.
	Url pulumi.StringInput `pulumi:"url"`
}

func (StandardWebTestRequestArgs) ElementType

func (StandardWebTestRequestArgs) ElementType() reflect.Type

func (StandardWebTestRequestArgs) ToStandardWebTestRequestOutput

func (i StandardWebTestRequestArgs) ToStandardWebTestRequestOutput() StandardWebTestRequestOutput

func (StandardWebTestRequestArgs) ToStandardWebTestRequestOutputWithContext

func (i StandardWebTestRequestArgs) ToStandardWebTestRequestOutputWithContext(ctx context.Context) StandardWebTestRequestOutput

func (StandardWebTestRequestArgs) ToStandardWebTestRequestPtrOutput

func (i StandardWebTestRequestArgs) ToStandardWebTestRequestPtrOutput() StandardWebTestRequestPtrOutput

func (StandardWebTestRequestArgs) ToStandardWebTestRequestPtrOutputWithContext

func (i StandardWebTestRequestArgs) ToStandardWebTestRequestPtrOutputWithContext(ctx context.Context) StandardWebTestRequestPtrOutput

type StandardWebTestRequestHeader

type StandardWebTestRequestHeader struct {
	// The name which should be used for a header in the request.
	Name string `pulumi:"name"`
	// The value which should be used for a header in the request.
	Value string `pulumi:"value"`
}

type StandardWebTestRequestHeaderArgs

type StandardWebTestRequestHeaderArgs struct {
	// The name which should be used for a header in the request.
	Name pulumi.StringInput `pulumi:"name"`
	// The value which should be used for a header in the request.
	Value pulumi.StringInput `pulumi:"value"`
}

func (StandardWebTestRequestHeaderArgs) ElementType

func (StandardWebTestRequestHeaderArgs) ToStandardWebTestRequestHeaderOutput

func (i StandardWebTestRequestHeaderArgs) ToStandardWebTestRequestHeaderOutput() StandardWebTestRequestHeaderOutput

func (StandardWebTestRequestHeaderArgs) ToStandardWebTestRequestHeaderOutputWithContext

func (i StandardWebTestRequestHeaderArgs) ToStandardWebTestRequestHeaderOutputWithContext(ctx context.Context) StandardWebTestRequestHeaderOutput

type StandardWebTestRequestHeaderArray

type StandardWebTestRequestHeaderArray []StandardWebTestRequestHeaderInput

func (StandardWebTestRequestHeaderArray) ElementType

func (StandardWebTestRequestHeaderArray) ToStandardWebTestRequestHeaderArrayOutput

func (i StandardWebTestRequestHeaderArray) ToStandardWebTestRequestHeaderArrayOutput() StandardWebTestRequestHeaderArrayOutput

func (StandardWebTestRequestHeaderArray) ToStandardWebTestRequestHeaderArrayOutputWithContext

func (i StandardWebTestRequestHeaderArray) ToStandardWebTestRequestHeaderArrayOutputWithContext(ctx context.Context) StandardWebTestRequestHeaderArrayOutput

type StandardWebTestRequestHeaderArrayInput

type StandardWebTestRequestHeaderArrayInput interface {
	pulumi.Input

	ToStandardWebTestRequestHeaderArrayOutput() StandardWebTestRequestHeaderArrayOutput
	ToStandardWebTestRequestHeaderArrayOutputWithContext(context.Context) StandardWebTestRequestHeaderArrayOutput
}

StandardWebTestRequestHeaderArrayInput is an input type that accepts StandardWebTestRequestHeaderArray and StandardWebTestRequestHeaderArrayOutput values. You can construct a concrete instance of `StandardWebTestRequestHeaderArrayInput` via:

StandardWebTestRequestHeaderArray{ StandardWebTestRequestHeaderArgs{...} }

type StandardWebTestRequestHeaderArrayOutput

type StandardWebTestRequestHeaderArrayOutput struct{ *pulumi.OutputState }

func (StandardWebTestRequestHeaderArrayOutput) ElementType

func (StandardWebTestRequestHeaderArrayOutput) Index

func (StandardWebTestRequestHeaderArrayOutput) ToStandardWebTestRequestHeaderArrayOutput

func (o StandardWebTestRequestHeaderArrayOutput) ToStandardWebTestRequestHeaderArrayOutput() StandardWebTestRequestHeaderArrayOutput

func (StandardWebTestRequestHeaderArrayOutput) ToStandardWebTestRequestHeaderArrayOutputWithContext

func (o StandardWebTestRequestHeaderArrayOutput) ToStandardWebTestRequestHeaderArrayOutputWithContext(ctx context.Context) StandardWebTestRequestHeaderArrayOutput

type StandardWebTestRequestHeaderInput

type StandardWebTestRequestHeaderInput interface {
	pulumi.Input

	ToStandardWebTestRequestHeaderOutput() StandardWebTestRequestHeaderOutput
	ToStandardWebTestRequestHeaderOutputWithContext(context.Context) StandardWebTestRequestHeaderOutput
}

StandardWebTestRequestHeaderInput is an input type that accepts StandardWebTestRequestHeaderArgs and StandardWebTestRequestHeaderOutput values. You can construct a concrete instance of `StandardWebTestRequestHeaderInput` via:

StandardWebTestRequestHeaderArgs{...}

type StandardWebTestRequestHeaderOutput

type StandardWebTestRequestHeaderOutput struct{ *pulumi.OutputState }

func (StandardWebTestRequestHeaderOutput) ElementType

func (StandardWebTestRequestHeaderOutput) Name

The name which should be used for a header in the request.

func (StandardWebTestRequestHeaderOutput) ToStandardWebTestRequestHeaderOutput

func (o StandardWebTestRequestHeaderOutput) ToStandardWebTestRequestHeaderOutput() StandardWebTestRequestHeaderOutput

func (StandardWebTestRequestHeaderOutput) ToStandardWebTestRequestHeaderOutputWithContext

func (o StandardWebTestRequestHeaderOutput) ToStandardWebTestRequestHeaderOutputWithContext(ctx context.Context) StandardWebTestRequestHeaderOutput

func (StandardWebTestRequestHeaderOutput) Value

The value which should be used for a header in the request.

type StandardWebTestRequestInput

type StandardWebTestRequestInput interface {
	pulumi.Input

	ToStandardWebTestRequestOutput() StandardWebTestRequestOutput
	ToStandardWebTestRequestOutputWithContext(context.Context) StandardWebTestRequestOutput
}

StandardWebTestRequestInput is an input type that accepts StandardWebTestRequestArgs and StandardWebTestRequestOutput values. You can construct a concrete instance of `StandardWebTestRequestInput` via:

StandardWebTestRequestArgs{...}

type StandardWebTestRequestOutput

type StandardWebTestRequestOutput struct{ *pulumi.OutputState }

func (StandardWebTestRequestOutput) Body

The WebTest request body.

func (StandardWebTestRequestOutput) ElementType

func (StandardWebTestRequestOutput) FollowRedirectsEnabled

func (o StandardWebTestRequestOutput) FollowRedirectsEnabled() pulumi.BoolPtrOutput

Should the following of redirects be enabled? Defaults to `true`.

func (StandardWebTestRequestOutput) Headers

One or more `header` blocks as defined above.

func (StandardWebTestRequestOutput) HttpVerb

Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to `GET`.

func (StandardWebTestRequestOutput) ParseDependentRequestsEnabled

func (o StandardWebTestRequestOutput) ParseDependentRequestsEnabled() pulumi.BoolPtrOutput

Should the parsing of dependend requests be enabled? Defaults to `true`.

func (StandardWebTestRequestOutput) ToStandardWebTestRequestOutput

func (o StandardWebTestRequestOutput) ToStandardWebTestRequestOutput() StandardWebTestRequestOutput

func (StandardWebTestRequestOutput) ToStandardWebTestRequestOutputWithContext

func (o StandardWebTestRequestOutput) ToStandardWebTestRequestOutputWithContext(ctx context.Context) StandardWebTestRequestOutput

func (StandardWebTestRequestOutput) ToStandardWebTestRequestPtrOutput

func (o StandardWebTestRequestOutput) ToStandardWebTestRequestPtrOutput() StandardWebTestRequestPtrOutput

func (StandardWebTestRequestOutput) ToStandardWebTestRequestPtrOutputWithContext

func (o StandardWebTestRequestOutput) ToStandardWebTestRequestPtrOutputWithContext(ctx context.Context) StandardWebTestRequestPtrOutput

func (StandardWebTestRequestOutput) Url

The WebTest request URL.

type StandardWebTestRequestPtrInput

type StandardWebTestRequestPtrInput interface {
	pulumi.Input

	ToStandardWebTestRequestPtrOutput() StandardWebTestRequestPtrOutput
	ToStandardWebTestRequestPtrOutputWithContext(context.Context) StandardWebTestRequestPtrOutput
}

StandardWebTestRequestPtrInput is an input type that accepts StandardWebTestRequestArgs, StandardWebTestRequestPtr and StandardWebTestRequestPtrOutput values. You can construct a concrete instance of `StandardWebTestRequestPtrInput` via:

        StandardWebTestRequestArgs{...}

or:

        nil

type StandardWebTestRequestPtrOutput

type StandardWebTestRequestPtrOutput struct{ *pulumi.OutputState }

func (StandardWebTestRequestPtrOutput) Body

The WebTest request body.

func (StandardWebTestRequestPtrOutput) Elem

func (StandardWebTestRequestPtrOutput) ElementType

func (StandardWebTestRequestPtrOutput) FollowRedirectsEnabled

func (o StandardWebTestRequestPtrOutput) FollowRedirectsEnabled() pulumi.BoolPtrOutput

Should the following of redirects be enabled? Defaults to `true`.

func (StandardWebTestRequestPtrOutput) Headers

One or more `header` blocks as defined above.

func (StandardWebTestRequestPtrOutput) HttpVerb

Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to `GET`.

func (StandardWebTestRequestPtrOutput) ParseDependentRequestsEnabled

func (o StandardWebTestRequestPtrOutput) ParseDependentRequestsEnabled() pulumi.BoolPtrOutput

Should the parsing of dependend requests be enabled? Defaults to `true`.

func (StandardWebTestRequestPtrOutput) ToStandardWebTestRequestPtrOutput

func (o StandardWebTestRequestPtrOutput) ToStandardWebTestRequestPtrOutput() StandardWebTestRequestPtrOutput

func (StandardWebTestRequestPtrOutput) ToStandardWebTestRequestPtrOutputWithContext

func (o StandardWebTestRequestPtrOutput) ToStandardWebTestRequestPtrOutputWithContext(ctx context.Context) StandardWebTestRequestPtrOutput

func (StandardWebTestRequestPtrOutput) Url

The WebTest request URL.

type StandardWebTestState

type StandardWebTestState struct {
	// The ID of the Application Insights instance on which the WebTest operates. Changing this forces a new Application Insights Standard WebTest to be created.
	ApplicationInsightsId pulumi.StringPtrInput
	// Purpose/user defined descriptive test for this WebTest.
	Description pulumi.StringPtrInput
	// Should the WebTest be enabled?
	Enabled pulumi.BoolPtrInput
	// Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`.
	Frequency pulumi.IntPtrInput
	// Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application.
	//
	// > **Note:** [Valid options for geo locations are described here](https://docs.microsoft.com/azure/azure-monitor/app/monitor-web-app-availability#location-population-tags)
	GeoLocations pulumi.StringArrayInput
	// The Azure Region where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created. It needs to correlate with location of the parent resource (azurerm_application_insights)
	Location pulumi.StringPtrInput
	// The name which should be used for this Application Insights Standard WebTest. Changing this forces a new Application Insights Standard WebTest to be created.
	Name pulumi.StringPtrInput
	// A `request` block as defined below.
	Request StandardWebTestRequestPtrInput
	// The name of the Resource Group where the Application Insights Standard WebTest should exist. Changing this forces a new Application Insights Standard WebTest to be created.
	ResourceGroupName pulumi.StringPtrInput
	// Should the retry on WebTest failure be enabled?
	RetryEnabled pulumi.BoolPtrInput
	// Unique ID of this WebTest. This is typically the same value as the Name field.
	SyntheticMonitorId pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Application Insights Standard WebTest.
	Tags pulumi.StringMapInput
	// Seconds until this WebTest will timeout and fail. Default is `30`.
	Timeout pulumi.IntPtrInput
	// A `validationRules` block as defined below.
	ValidationRules StandardWebTestValidationRulesPtrInput
}

func (StandardWebTestState) ElementType

func (StandardWebTestState) ElementType() reflect.Type

type StandardWebTestValidationRules

type StandardWebTestValidationRules struct {
	// A `content` block as defined above.
	Content *StandardWebTestValidationRulesContent `pulumi:"content"`
	// The expected status code of the response. Default is '200', '0' means 'response code < 400'
	ExpectedStatusCode *int `pulumi:"expectedStatusCode"`
	// The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.
	SslCertRemainingLifetime *int `pulumi:"sslCertRemainingLifetime"`
	// Should the SSL check be enabled?
	SslCheckEnabled *bool `pulumi:"sslCheckEnabled"`
}

type StandardWebTestValidationRulesArgs

type StandardWebTestValidationRulesArgs struct {
	// A `content` block as defined above.
	Content StandardWebTestValidationRulesContentPtrInput `pulumi:"content"`
	// The expected status code of the response. Default is '200', '0' means 'response code < 400'
	ExpectedStatusCode pulumi.IntPtrInput `pulumi:"expectedStatusCode"`
	// The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.
	SslCertRemainingLifetime pulumi.IntPtrInput `pulumi:"sslCertRemainingLifetime"`
	// Should the SSL check be enabled?
	SslCheckEnabled pulumi.BoolPtrInput `pulumi:"sslCheckEnabled"`
}

func (StandardWebTestValidationRulesArgs) ElementType

func (StandardWebTestValidationRulesArgs) ToStandardWebTestValidationRulesOutput

func (i StandardWebTestValidationRulesArgs) ToStandardWebTestValidationRulesOutput() StandardWebTestValidationRulesOutput

func (StandardWebTestValidationRulesArgs) ToStandardWebTestValidationRulesOutputWithContext

func (i StandardWebTestValidationRulesArgs) ToStandardWebTestValidationRulesOutputWithContext(ctx context.Context) StandardWebTestValidationRulesOutput

func (StandardWebTestValidationRulesArgs) ToStandardWebTestValidationRulesPtrOutput

func (i StandardWebTestValidationRulesArgs) ToStandardWebTestValidationRulesPtrOutput() StandardWebTestValidationRulesPtrOutput

func (StandardWebTestValidationRulesArgs) ToStandardWebTestValidationRulesPtrOutputWithContext

func (i StandardWebTestValidationRulesArgs) ToStandardWebTestValidationRulesPtrOutputWithContext(ctx context.Context) StandardWebTestValidationRulesPtrOutput

type StandardWebTestValidationRulesContent

type StandardWebTestValidationRulesContent struct {
	// A string value containing the content to match on.
	ContentMatch string `pulumi:"contentMatch"`
	// Ignore the casing in the `contentMatch` value.
	IgnoreCase *bool `pulumi:"ignoreCase"`
	// If the content of `contentMatch` is found, pass the test. If set to `false`, the WebTest is failing if the content of `contentMatch` is found.
	PassIfTextFound *bool `pulumi:"passIfTextFound"`
}

type StandardWebTestValidationRulesContentArgs

type StandardWebTestValidationRulesContentArgs struct {
	// A string value containing the content to match on.
	ContentMatch pulumi.StringInput `pulumi:"contentMatch"`
	// Ignore the casing in the `contentMatch` value.
	IgnoreCase pulumi.BoolPtrInput `pulumi:"ignoreCase"`
	// If the content of `contentMatch` is found, pass the test. If set to `false`, the WebTest is failing if the content of `contentMatch` is found.
	PassIfTextFound pulumi.BoolPtrInput `pulumi:"passIfTextFound"`
}

func (StandardWebTestValidationRulesContentArgs) ElementType

func (StandardWebTestValidationRulesContentArgs) ToStandardWebTestValidationRulesContentOutput

func (i StandardWebTestValidationRulesContentArgs) ToStandardWebTestValidationRulesContentOutput() StandardWebTestValidationRulesContentOutput

func (StandardWebTestValidationRulesContentArgs) ToStandardWebTestValidationRulesContentOutputWithContext

func (i StandardWebTestValidationRulesContentArgs) ToStandardWebTestValidationRulesContentOutputWithContext(ctx context.Context) StandardWebTestValidationRulesContentOutput

func (StandardWebTestValidationRulesContentArgs) ToStandardWebTestValidationRulesContentPtrOutput

func (i StandardWebTestValidationRulesContentArgs) ToStandardWebTestValidationRulesContentPtrOutput() StandardWebTestValidationRulesContentPtrOutput

func (StandardWebTestValidationRulesContentArgs) ToStandardWebTestValidationRulesContentPtrOutputWithContext

func (i StandardWebTestValidationRulesContentArgs) ToStandardWebTestValidationRulesContentPtrOutputWithContext(ctx context.Context) StandardWebTestValidationRulesContentPtrOutput

type StandardWebTestValidationRulesContentInput

type StandardWebTestValidationRulesContentInput interface {
	pulumi.Input

	ToStandardWebTestValidationRulesContentOutput() StandardWebTestValidationRulesContentOutput
	ToStandardWebTestValidationRulesContentOutputWithContext(context.Context) StandardWebTestValidationRulesContentOutput
}

StandardWebTestValidationRulesContentInput is an input type that accepts StandardWebTestValidationRulesContentArgs and StandardWebTestValidationRulesContentOutput values. You can construct a concrete instance of `StandardWebTestValidationRulesContentInput` via:

StandardWebTestValidationRulesContentArgs{...}

type StandardWebTestValidationRulesContentOutput

type StandardWebTestValidationRulesContentOutput struct{ *pulumi.OutputState }

func (StandardWebTestValidationRulesContentOutput) ContentMatch

A string value containing the content to match on.

func (StandardWebTestValidationRulesContentOutput) ElementType

func (StandardWebTestValidationRulesContentOutput) IgnoreCase

Ignore the casing in the `contentMatch` value.

func (StandardWebTestValidationRulesContentOutput) PassIfTextFound

If the content of `contentMatch` is found, pass the test. If set to `false`, the WebTest is failing if the content of `contentMatch` is found.

func (StandardWebTestValidationRulesContentOutput) ToStandardWebTestValidationRulesContentOutput

func (o StandardWebTestValidationRulesContentOutput) ToStandardWebTestValidationRulesContentOutput() StandardWebTestValidationRulesContentOutput

func (StandardWebTestValidationRulesContentOutput) ToStandardWebTestValidationRulesContentOutputWithContext

func (o StandardWebTestValidationRulesContentOutput) ToStandardWebTestValidationRulesContentOutputWithContext(ctx context.Context) StandardWebTestValidationRulesContentOutput

func (StandardWebTestValidationRulesContentOutput) ToStandardWebTestValidationRulesContentPtrOutput

func (o StandardWebTestValidationRulesContentOutput) ToStandardWebTestValidationRulesContentPtrOutput() StandardWebTestValidationRulesContentPtrOutput

func (StandardWebTestValidationRulesContentOutput) ToStandardWebTestValidationRulesContentPtrOutputWithContext

func (o StandardWebTestValidationRulesContentOutput) ToStandardWebTestValidationRulesContentPtrOutputWithContext(ctx context.Context) StandardWebTestValidationRulesContentPtrOutput

type StandardWebTestValidationRulesContentPtrInput

type StandardWebTestValidationRulesContentPtrInput interface {
	pulumi.Input

	ToStandardWebTestValidationRulesContentPtrOutput() StandardWebTestValidationRulesContentPtrOutput
	ToStandardWebTestValidationRulesContentPtrOutputWithContext(context.Context) StandardWebTestValidationRulesContentPtrOutput
}

StandardWebTestValidationRulesContentPtrInput is an input type that accepts StandardWebTestValidationRulesContentArgs, StandardWebTestValidationRulesContentPtr and StandardWebTestValidationRulesContentPtrOutput values. You can construct a concrete instance of `StandardWebTestValidationRulesContentPtrInput` via:

        StandardWebTestValidationRulesContentArgs{...}

or:

        nil

type StandardWebTestValidationRulesContentPtrOutput

type StandardWebTestValidationRulesContentPtrOutput struct{ *pulumi.OutputState }

func (StandardWebTestValidationRulesContentPtrOutput) ContentMatch

A string value containing the content to match on.

func (StandardWebTestValidationRulesContentPtrOutput) Elem

func (StandardWebTestValidationRulesContentPtrOutput) ElementType

func (StandardWebTestValidationRulesContentPtrOutput) IgnoreCase

Ignore the casing in the `contentMatch` value.

func (StandardWebTestValidationRulesContentPtrOutput) PassIfTextFound

If the content of `contentMatch` is found, pass the test. If set to `false`, the WebTest is failing if the content of `contentMatch` is found.

func (StandardWebTestValidationRulesContentPtrOutput) ToStandardWebTestValidationRulesContentPtrOutput

func (o StandardWebTestValidationRulesContentPtrOutput) ToStandardWebTestValidationRulesContentPtrOutput() StandardWebTestValidationRulesContentPtrOutput

func (StandardWebTestValidationRulesContentPtrOutput) ToStandardWebTestValidationRulesContentPtrOutputWithContext

func (o StandardWebTestValidationRulesContentPtrOutput) ToStandardWebTestValidationRulesContentPtrOutputWithContext(ctx context.Context) StandardWebTestValidationRulesContentPtrOutput

type StandardWebTestValidationRulesInput

type StandardWebTestValidationRulesInput interface {
	pulumi.Input

	ToStandardWebTestValidationRulesOutput() StandardWebTestValidationRulesOutput
	ToStandardWebTestValidationRulesOutputWithContext(context.Context) StandardWebTestValidationRulesOutput
}

StandardWebTestValidationRulesInput is an input type that accepts StandardWebTestValidationRulesArgs and StandardWebTestValidationRulesOutput values. You can construct a concrete instance of `StandardWebTestValidationRulesInput` via:

StandardWebTestValidationRulesArgs{...}

type StandardWebTestValidationRulesOutput

type StandardWebTestValidationRulesOutput struct{ *pulumi.OutputState }

func (StandardWebTestValidationRulesOutput) Content

A `content` block as defined above.

func (StandardWebTestValidationRulesOutput) ElementType

func (StandardWebTestValidationRulesOutput) ExpectedStatusCode

The expected status code of the response. Default is '200', '0' means 'response code < 400'

func (StandardWebTestValidationRulesOutput) SslCertRemainingLifetime

func (o StandardWebTestValidationRulesOutput) SslCertRemainingLifetime() pulumi.IntPtrOutput

The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.

func (StandardWebTestValidationRulesOutput) SslCheckEnabled

Should the SSL check be enabled?

func (StandardWebTestValidationRulesOutput) ToStandardWebTestValidationRulesOutput

func (o StandardWebTestValidationRulesOutput) ToStandardWebTestValidationRulesOutput() StandardWebTestValidationRulesOutput

func (StandardWebTestValidationRulesOutput) ToStandardWebTestValidationRulesOutputWithContext

func (o StandardWebTestValidationRulesOutput) ToStandardWebTestValidationRulesOutputWithContext(ctx context.Context) StandardWebTestValidationRulesOutput

func (StandardWebTestValidationRulesOutput) ToStandardWebTestValidationRulesPtrOutput

func (o StandardWebTestValidationRulesOutput) ToStandardWebTestValidationRulesPtrOutput() StandardWebTestValidationRulesPtrOutput

func (StandardWebTestValidationRulesOutput) ToStandardWebTestValidationRulesPtrOutputWithContext

func (o StandardWebTestValidationRulesOutput) ToStandardWebTestValidationRulesPtrOutputWithContext(ctx context.Context) StandardWebTestValidationRulesPtrOutput

type StandardWebTestValidationRulesPtrInput

type StandardWebTestValidationRulesPtrInput interface {
	pulumi.Input

	ToStandardWebTestValidationRulesPtrOutput() StandardWebTestValidationRulesPtrOutput
	ToStandardWebTestValidationRulesPtrOutputWithContext(context.Context) StandardWebTestValidationRulesPtrOutput
}

StandardWebTestValidationRulesPtrInput is an input type that accepts StandardWebTestValidationRulesArgs, StandardWebTestValidationRulesPtr and StandardWebTestValidationRulesPtrOutput values. You can construct a concrete instance of `StandardWebTestValidationRulesPtrInput` via:

        StandardWebTestValidationRulesArgs{...}

or:

        nil

type StandardWebTestValidationRulesPtrOutput

type StandardWebTestValidationRulesPtrOutput struct{ *pulumi.OutputState }

func (StandardWebTestValidationRulesPtrOutput) Content

A `content` block as defined above.

func (StandardWebTestValidationRulesPtrOutput) Elem

func (StandardWebTestValidationRulesPtrOutput) ElementType

func (StandardWebTestValidationRulesPtrOutput) ExpectedStatusCode

The expected status code of the response. Default is '200', '0' means 'response code < 400'

func (StandardWebTestValidationRulesPtrOutput) SslCertRemainingLifetime

func (o StandardWebTestValidationRulesPtrOutput) SslCertRemainingLifetime() pulumi.IntPtrOutput

The number of days of SSL certificate validity remaining for the checked endpoint. If the certificate has a shorter remaining lifetime left, the test will fail. This number should be between 1 and 365.

func (StandardWebTestValidationRulesPtrOutput) SslCheckEnabled

Should the SSL check be enabled?

func (StandardWebTestValidationRulesPtrOutput) ToStandardWebTestValidationRulesPtrOutput

func (o StandardWebTestValidationRulesPtrOutput) ToStandardWebTestValidationRulesPtrOutput() StandardWebTestValidationRulesPtrOutput

func (StandardWebTestValidationRulesPtrOutput) ToStandardWebTestValidationRulesPtrOutputWithContext

func (o StandardWebTestValidationRulesPtrOutput) ToStandardWebTestValidationRulesPtrOutputWithContext(ctx context.Context) StandardWebTestValidationRulesPtrOutput

type WebTest

type WebTest struct {
	pulumi.CustomResourceState

	// The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
	ApplicationInsightsId pulumi.StringOutput `pulumi:"applicationInsightsId"`
	// An XML configuration specification for a WebTest ([see here for more information](https://docs.microsoft.com/rest/api/application-insights/webtests/createorupdate/)).
	Configuration pulumi.StringOutput `pulumi:"configuration"`
	// Purpose/user defined descriptive test for this WebTest.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Is the test actively being monitored.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`.
	Frequency pulumi.IntPtrOutput `pulumi:"frequency"`
	// A list of where to physically run the tests from to give global coverage for accessibility of your application.
	//
	// > **Note:** [Valid options for geo locations are described here](https://docs.microsoft.com/azure/azure-monitor/app/monitor-web-app-availability#location-population-tags)
	GeoLocations pulumi.StringArrayOutput `pulumi:"geoLocations"`
	// The kind of web test that this web test watches. Choices are `ping` and `multistep`. Changing this forces a new resource to be created.
	Kind pulumi.StringOutput `pulumi:"kind"`
	// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
	Location pulumi.StringOutput `pulumi:"location"`
	// Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// Allow for retries should this WebTest fail.
	RetryEnabled       pulumi.BoolPtrOutput `pulumi:"retryEnabled"`
	SyntheticMonitorId pulumi.StringOutput  `pulumi:"syntheticMonitorId"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Seconds until this WebTest will timeout and fail. Default is `30`.
	Timeout pulumi.IntPtrOutput `pulumi:"timeout"`
}

Manages an Application Insights WebTest.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("tf-test"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
			Name:              pulumi.String("tf-test-appinsights"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			ApplicationType:   pulumi.String("web"),
		})
		if err != nil {
			return err
		}
		exampleWebTest, err := appinsights.NewWebTest(ctx, "example", &appinsights.WebTestArgs{
			Name:                  pulumi.String("tf-test-appinsights-webtest"),
			Location:              exampleInsights.Location,
			ResourceGroupName:     example.Name,
			ApplicationInsightsId: exampleInsights.ID(),
			Kind:                  pulumi.String("ping"),
			Frequency:             pulumi.Int(300),
			Timeout:               pulumi.Int(60),
			Enabled:               pulumi.Bool(true),
			GeoLocations: pulumi.StringArray{
				pulumi.String("us-tx-sn1-azr"),
				pulumi.String("us-il-ch1-azr"),
			},
			Configuration: pulumi.String(`<WebTest Name="WebTest1" Id="ABD48585-0831-40CB-9069-682EA6BB3583" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="" ResultsLocale="">
  <Items>
    <Request Method="GET" Guid="a5f10126-e4cd-570d-961c-cea43999a200" Version="1.1" Url="http://microsoft.com" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="200" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
  </Items>

</WebTest> `),

		})
		if err != nil {
			return err
		}
		ctx.Export("webtestId", exampleWebTest.ID())
		ctx.Export("webtestsSyntheticId", exampleWebTest.SyntheticMonitorId)
		return nil
	})
}

```

## Import

Application Insights Web Tests can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:appinsights/webTest:WebTest my_test /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Insights/webTests/my_test ```

func GetWebTest

func GetWebTest(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WebTestState, opts ...pulumi.ResourceOption) (*WebTest, error)

GetWebTest gets an existing WebTest resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWebTest

func NewWebTest(ctx *pulumi.Context,
	name string, args *WebTestArgs, opts ...pulumi.ResourceOption) (*WebTest, error)

NewWebTest registers a new resource with the given unique name, arguments, and options.

func (*WebTest) ElementType

func (*WebTest) ElementType() reflect.Type

func (*WebTest) ToWebTestOutput

func (i *WebTest) ToWebTestOutput() WebTestOutput

func (*WebTest) ToWebTestOutputWithContext

func (i *WebTest) ToWebTestOutputWithContext(ctx context.Context) WebTestOutput

type WebTestArgs

type WebTestArgs struct {
	// The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
	ApplicationInsightsId pulumi.StringInput
	// An XML configuration specification for a WebTest ([see here for more information](https://docs.microsoft.com/rest/api/application-insights/webtests/createorupdate/)).
	Configuration pulumi.StringInput
	// Purpose/user defined descriptive test for this WebTest.
	Description pulumi.StringPtrInput
	// Is the test actively being monitored.
	Enabled pulumi.BoolPtrInput
	// Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`.
	Frequency pulumi.IntPtrInput
	// A list of where to physically run the tests from to give global coverage for accessibility of your application.
	//
	// > **Note:** [Valid options for geo locations are described here](https://docs.microsoft.com/azure/azure-monitor/app/monitor-web-app-availability#location-population-tags)
	GeoLocations pulumi.StringArrayInput
	// The kind of web test that this web test watches. Choices are `ping` and `multistep`. Changing this forces a new resource to be created.
	Kind pulumi.StringInput
	// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
	Location pulumi.StringPtrInput
	// Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
	ResourceGroupName pulumi.StringInput
	// Allow for retries should this WebTest fail.
	RetryEnabled pulumi.BoolPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Seconds until this WebTest will timeout and fail. Default is `30`.
	Timeout pulumi.IntPtrInput
}

The set of arguments for constructing a WebTest resource.

func (WebTestArgs) ElementType

func (WebTestArgs) ElementType() reflect.Type

type WebTestArray

type WebTestArray []WebTestInput

func (WebTestArray) ElementType

func (WebTestArray) ElementType() reflect.Type

func (WebTestArray) ToWebTestArrayOutput

func (i WebTestArray) ToWebTestArrayOutput() WebTestArrayOutput

func (WebTestArray) ToWebTestArrayOutputWithContext

func (i WebTestArray) ToWebTestArrayOutputWithContext(ctx context.Context) WebTestArrayOutput

type WebTestArrayInput

type WebTestArrayInput interface {
	pulumi.Input

	ToWebTestArrayOutput() WebTestArrayOutput
	ToWebTestArrayOutputWithContext(context.Context) WebTestArrayOutput
}

WebTestArrayInput is an input type that accepts WebTestArray and WebTestArrayOutput values. You can construct a concrete instance of `WebTestArrayInput` via:

WebTestArray{ WebTestArgs{...} }

type WebTestArrayOutput

type WebTestArrayOutput struct{ *pulumi.OutputState }

func (WebTestArrayOutput) ElementType

func (WebTestArrayOutput) ElementType() reflect.Type

func (WebTestArrayOutput) Index

func (WebTestArrayOutput) ToWebTestArrayOutput

func (o WebTestArrayOutput) ToWebTestArrayOutput() WebTestArrayOutput

func (WebTestArrayOutput) ToWebTestArrayOutputWithContext

func (o WebTestArrayOutput) ToWebTestArrayOutputWithContext(ctx context.Context) WebTestArrayOutput

type WebTestInput

type WebTestInput interface {
	pulumi.Input

	ToWebTestOutput() WebTestOutput
	ToWebTestOutputWithContext(ctx context.Context) WebTestOutput
}

type WebTestMap

type WebTestMap map[string]WebTestInput

func (WebTestMap) ElementType

func (WebTestMap) ElementType() reflect.Type

func (WebTestMap) ToWebTestMapOutput

func (i WebTestMap) ToWebTestMapOutput() WebTestMapOutput

func (WebTestMap) ToWebTestMapOutputWithContext

func (i WebTestMap) ToWebTestMapOutputWithContext(ctx context.Context) WebTestMapOutput

type WebTestMapInput

type WebTestMapInput interface {
	pulumi.Input

	ToWebTestMapOutput() WebTestMapOutput
	ToWebTestMapOutputWithContext(context.Context) WebTestMapOutput
}

WebTestMapInput is an input type that accepts WebTestMap and WebTestMapOutput values. You can construct a concrete instance of `WebTestMapInput` via:

WebTestMap{ "key": WebTestArgs{...} }

type WebTestMapOutput

type WebTestMapOutput struct{ *pulumi.OutputState }

func (WebTestMapOutput) ElementType

func (WebTestMapOutput) ElementType() reflect.Type

func (WebTestMapOutput) MapIndex

func (WebTestMapOutput) ToWebTestMapOutput

func (o WebTestMapOutput) ToWebTestMapOutput() WebTestMapOutput

func (WebTestMapOutput) ToWebTestMapOutputWithContext

func (o WebTestMapOutput) ToWebTestMapOutputWithContext(ctx context.Context) WebTestMapOutput

type WebTestOutput

type WebTestOutput struct{ *pulumi.OutputState }

func (WebTestOutput) ApplicationInsightsId

func (o WebTestOutput) ApplicationInsightsId() pulumi.StringOutput

The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.

func (WebTestOutput) Configuration

func (o WebTestOutput) Configuration() pulumi.StringOutput

An XML configuration specification for a WebTest ([see here for more information](https://docs.microsoft.com/rest/api/application-insights/webtests/createorupdate/)).

func (WebTestOutput) Description

func (o WebTestOutput) Description() pulumi.StringPtrOutput

Purpose/user defined descriptive test for this WebTest.

func (WebTestOutput) ElementType

func (WebTestOutput) ElementType() reflect.Type

func (WebTestOutput) Enabled

func (o WebTestOutput) Enabled() pulumi.BoolPtrOutput

Is the test actively being monitored.

func (WebTestOutput) Frequency

func (o WebTestOutput) Frequency() pulumi.IntPtrOutput

Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`.

func (WebTestOutput) GeoLocations

func (o WebTestOutput) GeoLocations() pulumi.StringArrayOutput

A list of where to physically run the tests from to give global coverage for accessibility of your application.

> **Note:** [Valid options for geo locations are described here](https://docs.microsoft.com/azure/azure-monitor/app/monitor-web-app-availability#location-population-tags)

func (WebTestOutput) Kind

The kind of web test that this web test watches. Choices are `ping` and `multistep`. Changing this forces a new resource to be created.

func (WebTestOutput) Location

func (o WebTestOutput) Location() pulumi.StringOutput

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).

func (WebTestOutput) Name

Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.

func (WebTestOutput) ResourceGroupName

func (o WebTestOutput) ResourceGroupName() pulumi.StringOutput

The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource

func (WebTestOutput) RetryEnabled

func (o WebTestOutput) RetryEnabled() pulumi.BoolPtrOutput

Allow for retries should this WebTest fail.

func (WebTestOutput) SyntheticMonitorId

func (o WebTestOutput) SyntheticMonitorId() pulumi.StringOutput

func (WebTestOutput) Tags

A mapping of tags to assign to the resource.

func (WebTestOutput) Timeout

func (o WebTestOutput) Timeout() pulumi.IntPtrOutput

Seconds until this WebTest will timeout and fail. Default is `30`.

func (WebTestOutput) ToWebTestOutput

func (o WebTestOutput) ToWebTestOutput() WebTestOutput

func (WebTestOutput) ToWebTestOutputWithContext

func (o WebTestOutput) ToWebTestOutputWithContext(ctx context.Context) WebTestOutput

type WebTestState

type WebTestState struct {
	// The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
	ApplicationInsightsId pulumi.StringPtrInput
	// An XML configuration specification for a WebTest ([see here for more information](https://docs.microsoft.com/rest/api/application-insights/webtests/createorupdate/)).
	Configuration pulumi.StringPtrInput
	// Purpose/user defined descriptive test for this WebTest.
	Description pulumi.StringPtrInput
	// Is the test actively being monitored.
	Enabled pulumi.BoolPtrInput
	// Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`.
	Frequency pulumi.IntPtrInput
	// A list of where to physically run the tests from to give global coverage for accessibility of your application.
	//
	// > **Note:** [Valid options for geo locations are described here](https://docs.microsoft.com/azure/azure-monitor/app/monitor-web-app-availability#location-population-tags)
	GeoLocations pulumi.StringArrayInput
	// The kind of web test that this web test watches. Choices are `ping` and `multistep`. Changing this forces a new resource to be created.
	Kind pulumi.StringPtrInput
	// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
	Location pulumi.StringPtrInput
	// Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
	Name pulumi.StringPtrInput
	// The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
	ResourceGroupName pulumi.StringPtrInput
	// Allow for retries should this WebTest fail.
	RetryEnabled       pulumi.BoolPtrInput
	SyntheticMonitorId pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Seconds until this WebTest will timeout and fail. Default is `30`.
	Timeout pulumi.IntPtrInput
}

func (WebTestState) ElementType

func (WebTestState) ElementType() reflect.Type

type Workbook

type Workbook struct {
	pulumi.CustomResourceState

	// Workbook category, as defined by the user at creation time. There may be additional category types beyond the following: `workbook`, `sentinel`. Defaults to `workbook`.
	Category pulumi.StringPtrOutput `pulumi:"category"`
	// Configuration of this particular workbook. Configuration data is a string containing valid JSON.
	DataJson pulumi.StringOutput `pulumi:"dataJson"`
	// Specifies the description of the workbook.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Specifies the user-defined name (display name) of the workbook.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// An `identity` block as defined below. Changing this forces a new Workbook to be created.
	Identity WorkbookIdentityPtrOutput `pulumi:"identity"`
	// Specifies the Azure Region where the Workbook should exist. Changing this forces a new Workbook to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// Specifies the name of this Workbook as a UUID/GUID. It should not contain any uppercase letters. Changing this forces a new Workbook to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the name of the Resource Group where the Workbook should exist. Changing this forces a new Workbook to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// Resource ID for a source resource. It should not contain any uppercase letters. Defaults to `azure monitor`.
	SourceId pulumi.StringPtrOutput `pulumi:"sourceId"`
	// Specifies the Resource Manager ID of the Storage Container when bring your own storage is used. Changing this forces a new Workbook to be created.
	//
	// > **Note:** This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the `storage.Container` Data Source/Resource as `resourceManagerId`.
	StorageContainerId pulumi.StringPtrOutput `pulumi:"storageContainerId"`
	// A mapping of tags which should be assigned to the Workbook.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Manages an Azure Workbook.

## Example Usage

```go package main

import (

"encoding/json"

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"version": "Notebook/1.0",
			"items": []map[string]interface{}{
				map[string]interface{}{
					"type": 1,
					"content": map[string]interface{}{
						"json": "Test2022",
					},
					"name": "text - 0",
				},
			},
			"isLocked": false,
			"fallbackResourceIds": []string{
				"Azure Monitor",
			},
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		_, err = appinsights.NewWorkbook(ctx, "example", &appinsights.WorkbookArgs{
			Name:              pulumi.String("85b3e8bb-fc93-40be-83f2-98f6bec18ba0"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
			DisplayName:       pulumi.String("workbook1"),
			DataJson:          pulumi.String(json0),
			Tags: pulumi.StringMap{
				"ENV": pulumi.String("Test"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Workbooks can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:appinsights/workbook:Workbook example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Insights/workbooks/resource1 ```

func GetWorkbook

func GetWorkbook(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WorkbookState, opts ...pulumi.ResourceOption) (*Workbook, error)

GetWorkbook gets an existing Workbook resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWorkbook

func NewWorkbook(ctx *pulumi.Context,
	name string, args *WorkbookArgs, opts ...pulumi.ResourceOption) (*Workbook, error)

NewWorkbook registers a new resource with the given unique name, arguments, and options.

func (*Workbook) ElementType

func (*Workbook) ElementType() reflect.Type

func (*Workbook) ToWorkbookOutput

func (i *Workbook) ToWorkbookOutput() WorkbookOutput

func (*Workbook) ToWorkbookOutputWithContext

func (i *Workbook) ToWorkbookOutputWithContext(ctx context.Context) WorkbookOutput

type WorkbookArgs

type WorkbookArgs struct {
	// Workbook category, as defined by the user at creation time. There may be additional category types beyond the following: `workbook`, `sentinel`. Defaults to `workbook`.
	Category pulumi.StringPtrInput
	// Configuration of this particular workbook. Configuration data is a string containing valid JSON.
	DataJson pulumi.StringInput
	// Specifies the description of the workbook.
	Description pulumi.StringPtrInput
	// Specifies the user-defined name (display name) of the workbook.
	DisplayName pulumi.StringInput
	// An `identity` block as defined below. Changing this forces a new Workbook to be created.
	Identity WorkbookIdentityPtrInput
	// Specifies the Azure Region where the Workbook should exist. Changing this forces a new Workbook to be created.
	Location pulumi.StringPtrInput
	// Specifies the name of this Workbook as a UUID/GUID. It should not contain any uppercase letters. Changing this forces a new Workbook to be created.
	Name pulumi.StringPtrInput
	// Specifies the name of the Resource Group where the Workbook should exist. Changing this forces a new Workbook to be created.
	ResourceGroupName pulumi.StringInput
	// Resource ID for a source resource. It should not contain any uppercase letters. Defaults to `azure monitor`.
	SourceId pulumi.StringPtrInput
	// Specifies the Resource Manager ID of the Storage Container when bring your own storage is used. Changing this forces a new Workbook to be created.
	//
	// > **Note:** This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the `storage.Container` Data Source/Resource as `resourceManagerId`.
	StorageContainerId pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Workbook.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Workbook resource.

func (WorkbookArgs) ElementType

func (WorkbookArgs) ElementType() reflect.Type

type WorkbookArray

type WorkbookArray []WorkbookInput

func (WorkbookArray) ElementType

func (WorkbookArray) ElementType() reflect.Type

func (WorkbookArray) ToWorkbookArrayOutput

func (i WorkbookArray) ToWorkbookArrayOutput() WorkbookArrayOutput

func (WorkbookArray) ToWorkbookArrayOutputWithContext

func (i WorkbookArray) ToWorkbookArrayOutputWithContext(ctx context.Context) WorkbookArrayOutput

type WorkbookArrayInput

type WorkbookArrayInput interface {
	pulumi.Input

	ToWorkbookArrayOutput() WorkbookArrayOutput
	ToWorkbookArrayOutputWithContext(context.Context) WorkbookArrayOutput
}

WorkbookArrayInput is an input type that accepts WorkbookArray and WorkbookArrayOutput values. You can construct a concrete instance of `WorkbookArrayInput` via:

WorkbookArray{ WorkbookArgs{...} }

type WorkbookArrayOutput

type WorkbookArrayOutput struct{ *pulumi.OutputState }

func (WorkbookArrayOutput) ElementType

func (WorkbookArrayOutput) ElementType() reflect.Type

func (WorkbookArrayOutput) Index

func (WorkbookArrayOutput) ToWorkbookArrayOutput

func (o WorkbookArrayOutput) ToWorkbookArrayOutput() WorkbookArrayOutput

func (WorkbookArrayOutput) ToWorkbookArrayOutputWithContext

func (o WorkbookArrayOutput) ToWorkbookArrayOutputWithContext(ctx context.Context) WorkbookArrayOutput

type WorkbookIdentity

type WorkbookIdentity struct {
	// The list of User Assigned Managed Identity IDs assigned to this Workbook. Changing this forces a new resource to be created.
	IdentityIds []string `pulumi:"identityIds"`
	// The Principal ID of the System Assigned Managed Service Identity that is configured on this Workbook.
	PrincipalId *string `pulumi:"principalId"`
	// The Tenant ID of the System Assigned Managed Service Identity that is configured on this Workbook.
	TenantId *string `pulumi:"tenantId"`
	// The type of Managed Service Identity that is configured on this Workbook. Possible values are `UserAssigned`, `SystemAssigned` and `SystemAssigned, UserAssigned`. Changing this forces a new resource to be created.
	Type string `pulumi:"type"`
}

type WorkbookIdentityArgs

type WorkbookIdentityArgs struct {
	// The list of User Assigned Managed Identity IDs assigned to this Workbook. Changing this forces a new resource to be created.
	IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"`
	// The Principal ID of the System Assigned Managed Service Identity that is configured on this Workbook.
	PrincipalId pulumi.StringPtrInput `pulumi:"principalId"`
	// The Tenant ID of the System Assigned Managed Service Identity that is configured on this Workbook.
	TenantId pulumi.StringPtrInput `pulumi:"tenantId"`
	// The type of Managed Service Identity that is configured on this Workbook. Possible values are `UserAssigned`, `SystemAssigned` and `SystemAssigned, UserAssigned`. Changing this forces a new resource to be created.
	Type pulumi.StringInput `pulumi:"type"`
}

func (WorkbookIdentityArgs) ElementType

func (WorkbookIdentityArgs) ElementType() reflect.Type

func (WorkbookIdentityArgs) ToWorkbookIdentityOutput

func (i WorkbookIdentityArgs) ToWorkbookIdentityOutput() WorkbookIdentityOutput

func (WorkbookIdentityArgs) ToWorkbookIdentityOutputWithContext

func (i WorkbookIdentityArgs) ToWorkbookIdentityOutputWithContext(ctx context.Context) WorkbookIdentityOutput

func (WorkbookIdentityArgs) ToWorkbookIdentityPtrOutput

func (i WorkbookIdentityArgs) ToWorkbookIdentityPtrOutput() WorkbookIdentityPtrOutput

func (WorkbookIdentityArgs) ToWorkbookIdentityPtrOutputWithContext

func (i WorkbookIdentityArgs) ToWorkbookIdentityPtrOutputWithContext(ctx context.Context) WorkbookIdentityPtrOutput

type WorkbookIdentityInput

type WorkbookIdentityInput interface {
	pulumi.Input

	ToWorkbookIdentityOutput() WorkbookIdentityOutput
	ToWorkbookIdentityOutputWithContext(context.Context) WorkbookIdentityOutput
}

WorkbookIdentityInput is an input type that accepts WorkbookIdentityArgs and WorkbookIdentityOutput values. You can construct a concrete instance of `WorkbookIdentityInput` via:

WorkbookIdentityArgs{...}

type WorkbookIdentityOutput

type WorkbookIdentityOutput struct{ *pulumi.OutputState }

func (WorkbookIdentityOutput) ElementType

func (WorkbookIdentityOutput) ElementType() reflect.Type

func (WorkbookIdentityOutput) IdentityIds

The list of User Assigned Managed Identity IDs assigned to this Workbook. Changing this forces a new resource to be created.

func (WorkbookIdentityOutput) PrincipalId

The Principal ID of the System Assigned Managed Service Identity that is configured on this Workbook.

func (WorkbookIdentityOutput) TenantId

The Tenant ID of the System Assigned Managed Service Identity that is configured on this Workbook.

func (WorkbookIdentityOutput) ToWorkbookIdentityOutput

func (o WorkbookIdentityOutput) ToWorkbookIdentityOutput() WorkbookIdentityOutput

func (WorkbookIdentityOutput) ToWorkbookIdentityOutputWithContext

func (o WorkbookIdentityOutput) ToWorkbookIdentityOutputWithContext(ctx context.Context) WorkbookIdentityOutput

func (WorkbookIdentityOutput) ToWorkbookIdentityPtrOutput

func (o WorkbookIdentityOutput) ToWorkbookIdentityPtrOutput() WorkbookIdentityPtrOutput

func (WorkbookIdentityOutput) ToWorkbookIdentityPtrOutputWithContext

func (o WorkbookIdentityOutput) ToWorkbookIdentityPtrOutputWithContext(ctx context.Context) WorkbookIdentityPtrOutput

func (WorkbookIdentityOutput) Type

The type of Managed Service Identity that is configured on this Workbook. Possible values are `UserAssigned`, `SystemAssigned` and `SystemAssigned, UserAssigned`. Changing this forces a new resource to be created.

type WorkbookIdentityPtrInput

type WorkbookIdentityPtrInput interface {
	pulumi.Input

	ToWorkbookIdentityPtrOutput() WorkbookIdentityPtrOutput
	ToWorkbookIdentityPtrOutputWithContext(context.Context) WorkbookIdentityPtrOutput
}

WorkbookIdentityPtrInput is an input type that accepts WorkbookIdentityArgs, WorkbookIdentityPtr and WorkbookIdentityPtrOutput values. You can construct a concrete instance of `WorkbookIdentityPtrInput` via:

        WorkbookIdentityArgs{...}

or:

        nil

type WorkbookIdentityPtrOutput

type WorkbookIdentityPtrOutput struct{ *pulumi.OutputState }

func (WorkbookIdentityPtrOutput) Elem

func (WorkbookIdentityPtrOutput) ElementType

func (WorkbookIdentityPtrOutput) ElementType() reflect.Type

func (WorkbookIdentityPtrOutput) IdentityIds

The list of User Assigned Managed Identity IDs assigned to this Workbook. Changing this forces a new resource to be created.

func (WorkbookIdentityPtrOutput) PrincipalId

The Principal ID of the System Assigned Managed Service Identity that is configured on this Workbook.

func (WorkbookIdentityPtrOutput) TenantId

The Tenant ID of the System Assigned Managed Service Identity that is configured on this Workbook.

func (WorkbookIdentityPtrOutput) ToWorkbookIdentityPtrOutput

func (o WorkbookIdentityPtrOutput) ToWorkbookIdentityPtrOutput() WorkbookIdentityPtrOutput

func (WorkbookIdentityPtrOutput) ToWorkbookIdentityPtrOutputWithContext

func (o WorkbookIdentityPtrOutput) ToWorkbookIdentityPtrOutputWithContext(ctx context.Context) WorkbookIdentityPtrOutput

func (WorkbookIdentityPtrOutput) Type

The type of Managed Service Identity that is configured on this Workbook. Possible values are `UserAssigned`, `SystemAssigned` and `SystemAssigned, UserAssigned`. Changing this forces a new resource to be created.

type WorkbookInput

type WorkbookInput interface {
	pulumi.Input

	ToWorkbookOutput() WorkbookOutput
	ToWorkbookOutputWithContext(ctx context.Context) WorkbookOutput
}

type WorkbookMap

type WorkbookMap map[string]WorkbookInput

func (WorkbookMap) ElementType

func (WorkbookMap) ElementType() reflect.Type

func (WorkbookMap) ToWorkbookMapOutput

func (i WorkbookMap) ToWorkbookMapOutput() WorkbookMapOutput

func (WorkbookMap) ToWorkbookMapOutputWithContext

func (i WorkbookMap) ToWorkbookMapOutputWithContext(ctx context.Context) WorkbookMapOutput

type WorkbookMapInput

type WorkbookMapInput interface {
	pulumi.Input

	ToWorkbookMapOutput() WorkbookMapOutput
	ToWorkbookMapOutputWithContext(context.Context) WorkbookMapOutput
}

WorkbookMapInput is an input type that accepts WorkbookMap and WorkbookMapOutput values. You can construct a concrete instance of `WorkbookMapInput` via:

WorkbookMap{ "key": WorkbookArgs{...} }

type WorkbookMapOutput

type WorkbookMapOutput struct{ *pulumi.OutputState }

func (WorkbookMapOutput) ElementType

func (WorkbookMapOutput) ElementType() reflect.Type

func (WorkbookMapOutput) MapIndex

func (WorkbookMapOutput) ToWorkbookMapOutput

func (o WorkbookMapOutput) ToWorkbookMapOutput() WorkbookMapOutput

func (WorkbookMapOutput) ToWorkbookMapOutputWithContext

func (o WorkbookMapOutput) ToWorkbookMapOutputWithContext(ctx context.Context) WorkbookMapOutput

type WorkbookOutput

type WorkbookOutput struct{ *pulumi.OutputState }

func (WorkbookOutput) Category

func (o WorkbookOutput) Category() pulumi.StringPtrOutput

Workbook category, as defined by the user at creation time. There may be additional category types beyond the following: `workbook`, `sentinel`. Defaults to `workbook`.

func (WorkbookOutput) DataJson

func (o WorkbookOutput) DataJson() pulumi.StringOutput

Configuration of this particular workbook. Configuration data is a string containing valid JSON.

func (WorkbookOutput) Description

func (o WorkbookOutput) Description() pulumi.StringPtrOutput

Specifies the description of the workbook.

func (WorkbookOutput) DisplayName

func (o WorkbookOutput) DisplayName() pulumi.StringOutput

Specifies the user-defined name (display name) of the workbook.

func (WorkbookOutput) ElementType

func (WorkbookOutput) ElementType() reflect.Type

func (WorkbookOutput) Identity

An `identity` block as defined below. Changing this forces a new Workbook to be created.

func (WorkbookOutput) Location

func (o WorkbookOutput) Location() pulumi.StringOutput

Specifies the Azure Region where the Workbook should exist. Changing this forces a new Workbook to be created.

func (WorkbookOutput) Name

Specifies the name of this Workbook as a UUID/GUID. It should not contain any uppercase letters. Changing this forces a new Workbook to be created.

func (WorkbookOutput) ResourceGroupName

func (o WorkbookOutput) ResourceGroupName() pulumi.StringOutput

Specifies the name of the Resource Group where the Workbook should exist. Changing this forces a new Workbook to be created.

func (WorkbookOutput) SourceId

func (o WorkbookOutput) SourceId() pulumi.StringPtrOutput

Resource ID for a source resource. It should not contain any uppercase letters. Defaults to `azure monitor`.

func (WorkbookOutput) StorageContainerId

func (o WorkbookOutput) StorageContainerId() pulumi.StringPtrOutput

Specifies the Resource Manager ID of the Storage Container when bring your own storage is used. Changing this forces a new Workbook to be created.

> **Note:** This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the `storage.Container` Data Source/Resource as `resourceManagerId`.

func (WorkbookOutput) Tags

A mapping of tags which should be assigned to the Workbook.

func (WorkbookOutput) ToWorkbookOutput

func (o WorkbookOutput) ToWorkbookOutput() WorkbookOutput

func (WorkbookOutput) ToWorkbookOutputWithContext

func (o WorkbookOutput) ToWorkbookOutputWithContext(ctx context.Context) WorkbookOutput

type WorkbookState

type WorkbookState struct {
	// Workbook category, as defined by the user at creation time. There may be additional category types beyond the following: `workbook`, `sentinel`. Defaults to `workbook`.
	Category pulumi.StringPtrInput
	// Configuration of this particular workbook. Configuration data is a string containing valid JSON.
	DataJson pulumi.StringPtrInput
	// Specifies the description of the workbook.
	Description pulumi.StringPtrInput
	// Specifies the user-defined name (display name) of the workbook.
	DisplayName pulumi.StringPtrInput
	// An `identity` block as defined below. Changing this forces a new Workbook to be created.
	Identity WorkbookIdentityPtrInput
	// Specifies the Azure Region where the Workbook should exist. Changing this forces a new Workbook to be created.
	Location pulumi.StringPtrInput
	// Specifies the name of this Workbook as a UUID/GUID. It should not contain any uppercase letters. Changing this forces a new Workbook to be created.
	Name pulumi.StringPtrInput
	// Specifies the name of the Resource Group where the Workbook should exist. Changing this forces a new Workbook to be created.
	ResourceGroupName pulumi.StringPtrInput
	// Resource ID for a source resource. It should not contain any uppercase letters. Defaults to `azure monitor`.
	SourceId pulumi.StringPtrInput
	// Specifies the Resource Manager ID of the Storage Container when bring your own storage is used. Changing this forces a new Workbook to be created.
	//
	// > **Note:** This is the Resource Manager ID of the Storage Container, rather than the regular ID - and can be accessed on the `storage.Container` Data Source/Resource as `resourceManagerId`.
	StorageContainerId pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Workbook.
	Tags pulumi.StringMapInput
}

func (WorkbookState) ElementType

func (WorkbookState) ElementType() reflect.Type

type WorkbookTemplate

type WorkbookTemplate struct {
	pulumi.CustomResourceState

	// Information about the author of the workbook template.
	Author pulumi.StringPtrOutput `pulumi:"author"`
	// A `galleries` block as defined below.
	Galleries WorkbookTemplateGalleryArrayOutput `pulumi:"galleries"`
	// Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal.
	Localized pulumi.StringPtrOutput `pulumi:"localized"`
	// Specifies the Azure Region where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
	Location pulumi.StringOutput `pulumi:"location"`
	// Specifies the name which should be used for this Application Insights Workbook Template. Changing this forces a new Application Insights Workbook Template to be created.
	Name pulumi.StringOutput `pulumi:"name"`
	// Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`.
	Priority pulumi.IntPtrOutput `pulumi:"priority"`
	// Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// A mapping of tags which should be assigned to the Application Insights Workbook Template.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Valid JSON object containing workbook template payload.
	TemplateData pulumi.StringOutput `pulumi:"templateData"`
}

Manages an Application Insights Workbook Template.

## Example Usage

```go package main

import (

"encoding/json"

"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"version": "Notebook/1.0",
			"items": []map[string]interface{}{
				map[string]interface{}{
					"type": 1,
					"content": map[string]interface{}{
						"json": "## New workbook\n---\n\nWelcome to your new workbook.",
					},
					"name": "text - 2",
				},
			},
			"styleSettings": map[string]interface{}{},
			"$schema":       "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json",
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		tmpJSON1, err := json.Marshal(map[string]interface{}{
			"ar": []map[string]interface{}{
				map[string]interface{}{
					"galleries": []map[string]interface{}{
						map[string]interface{}{
							"name":         "test",
							"category":     "Failures",
							"type":         "tsg",
							"resourceType": "microsoft.insights/components",
							"order":        100,
						},
					},
					"templateData": map[string]interface{}{
						"version": "Notebook/1.0",
						"items": []map[string]interface{}{
							map[string]interface{}{
								"type": 1,
								"content": map[string]interface{}{
									"json": "## New workbook\n---\n\nWelcome to your new workbook.",
								},
								"name": "text - 2",
							},
						},
						"styleSettings": map[string]interface{}{},
						"$schema":       "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json",
					},
				},
			},
		})
		if err != nil {
			return err
		}
		json1 := string(tmpJSON1)
		_, err = appinsights.NewWorkbookTemplate(ctx, "example", &appinsights.WorkbookTemplateArgs{
			Name:              pulumi.String("example-aiwt"),
			ResourceGroupName: example.Name,
			Location:          pulumi.String("West Europe"),
			Author:            pulumi.String("test author"),
			Priority:          pulumi.Int(1),
			Galleries: appinsights.WorkbookTemplateGalleryArray{
				&appinsights.WorkbookTemplateGalleryArgs{
					Category:     pulumi.String("workbook"),
					Name:         pulumi.String("test"),
					Order:        pulumi.Int(100),
					ResourceType: pulumi.String("microsoft.insights/components"),
					Type:         pulumi.String("tsg"),
				},
			},
			TemplateData: pulumi.String(json0),
			Localized:    pulumi.String(json1),
			Tags: pulumi.StringMap{
				"key": pulumi.String("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Application Insights Workbook Template can be imported using the `resource id`, e.g.

```sh $ pulumi import azure:appinsights/workbookTemplate:WorkbookTemplate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Insights/workbookTemplates/resource1 ```

func GetWorkbookTemplate

func GetWorkbookTemplate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WorkbookTemplateState, opts ...pulumi.ResourceOption) (*WorkbookTemplate, error)

GetWorkbookTemplate gets an existing WorkbookTemplate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWorkbookTemplate

func NewWorkbookTemplate(ctx *pulumi.Context,
	name string, args *WorkbookTemplateArgs, opts ...pulumi.ResourceOption) (*WorkbookTemplate, error)

NewWorkbookTemplate registers a new resource with the given unique name, arguments, and options.

func (*WorkbookTemplate) ElementType

func (*WorkbookTemplate) ElementType() reflect.Type

func (*WorkbookTemplate) ToWorkbookTemplateOutput

func (i *WorkbookTemplate) ToWorkbookTemplateOutput() WorkbookTemplateOutput

func (*WorkbookTemplate) ToWorkbookTemplateOutputWithContext

func (i *WorkbookTemplate) ToWorkbookTemplateOutputWithContext(ctx context.Context) WorkbookTemplateOutput

type WorkbookTemplateArgs

type WorkbookTemplateArgs struct {
	// Information about the author of the workbook template.
	Author pulumi.StringPtrInput
	// A `galleries` block as defined below.
	Galleries WorkbookTemplateGalleryArrayInput
	// Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal.
	Localized pulumi.StringPtrInput
	// Specifies the Azure Region where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
	Location pulumi.StringPtrInput
	// Specifies the name which should be used for this Application Insights Workbook Template. Changing this forces a new Application Insights Workbook Template to be created.
	Name pulumi.StringPtrInput
	// Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`.
	Priority pulumi.IntPtrInput
	// Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
	ResourceGroupName pulumi.StringInput
	// A mapping of tags which should be assigned to the Application Insights Workbook Template.
	Tags pulumi.StringMapInput
	// Valid JSON object containing workbook template payload.
	TemplateData pulumi.StringInput
}

The set of arguments for constructing a WorkbookTemplate resource.

func (WorkbookTemplateArgs) ElementType

func (WorkbookTemplateArgs) ElementType() reflect.Type

type WorkbookTemplateArray

type WorkbookTemplateArray []WorkbookTemplateInput

func (WorkbookTemplateArray) ElementType

func (WorkbookTemplateArray) ElementType() reflect.Type

func (WorkbookTemplateArray) ToWorkbookTemplateArrayOutput

func (i WorkbookTemplateArray) ToWorkbookTemplateArrayOutput() WorkbookTemplateArrayOutput

func (WorkbookTemplateArray) ToWorkbookTemplateArrayOutputWithContext

func (i WorkbookTemplateArray) ToWorkbookTemplateArrayOutputWithContext(ctx context.Context) WorkbookTemplateArrayOutput

type WorkbookTemplateArrayInput

type WorkbookTemplateArrayInput interface {
	pulumi.Input

	ToWorkbookTemplateArrayOutput() WorkbookTemplateArrayOutput
	ToWorkbookTemplateArrayOutputWithContext(context.Context) WorkbookTemplateArrayOutput
}

WorkbookTemplateArrayInput is an input type that accepts WorkbookTemplateArray and WorkbookTemplateArrayOutput values. You can construct a concrete instance of `WorkbookTemplateArrayInput` via:

WorkbookTemplateArray{ WorkbookTemplateArgs{...} }

type WorkbookTemplateArrayOutput

type WorkbookTemplateArrayOutput struct{ *pulumi.OutputState }

func (WorkbookTemplateArrayOutput) ElementType

func (WorkbookTemplateArrayOutput) Index

func (WorkbookTemplateArrayOutput) ToWorkbookTemplateArrayOutput

func (o WorkbookTemplateArrayOutput) ToWorkbookTemplateArrayOutput() WorkbookTemplateArrayOutput

func (WorkbookTemplateArrayOutput) ToWorkbookTemplateArrayOutputWithContext

func (o WorkbookTemplateArrayOutput) ToWorkbookTemplateArrayOutputWithContext(ctx context.Context) WorkbookTemplateArrayOutput

type WorkbookTemplateGallery

type WorkbookTemplateGallery struct {
	// Category for the gallery.
	Category string `pulumi:"category"`
	// Name of the workbook template in the gallery.
	Name string `pulumi:"name"`
	// Order of the template within the gallery. Defaults to `0`.
	Order *int `pulumi:"order"`
	// Azure resource type supported by the gallery. Defaults to `Azure Monitor`.
	ResourceType *string `pulumi:"resourceType"`
	// Type of workbook supported by the workbook template. Defaults to `workbook`.
	//
	// > **Note:** See [documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/visualize/workbooks-automate#galleries) for more information of `resourceType` and `type`.
	Type *string `pulumi:"type"`
}

type WorkbookTemplateGalleryArgs

type WorkbookTemplateGalleryArgs struct {
	// Category for the gallery.
	Category pulumi.StringInput `pulumi:"category"`
	// Name of the workbook template in the gallery.
	Name pulumi.StringInput `pulumi:"name"`
	// Order of the template within the gallery. Defaults to `0`.
	Order pulumi.IntPtrInput `pulumi:"order"`
	// Azure resource type supported by the gallery. Defaults to `Azure Monitor`.
	ResourceType pulumi.StringPtrInput `pulumi:"resourceType"`
	// Type of workbook supported by the workbook template. Defaults to `workbook`.
	//
	// > **Note:** See [documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/visualize/workbooks-automate#galleries) for more information of `resourceType` and `type`.
	Type pulumi.StringPtrInput `pulumi:"type"`
}

func (WorkbookTemplateGalleryArgs) ElementType

func (WorkbookTemplateGalleryArgs) ToWorkbookTemplateGalleryOutput

func (i WorkbookTemplateGalleryArgs) ToWorkbookTemplateGalleryOutput() WorkbookTemplateGalleryOutput

func (WorkbookTemplateGalleryArgs) ToWorkbookTemplateGalleryOutputWithContext

func (i WorkbookTemplateGalleryArgs) ToWorkbookTemplateGalleryOutputWithContext(ctx context.Context) WorkbookTemplateGalleryOutput

type WorkbookTemplateGalleryArray

type WorkbookTemplateGalleryArray []WorkbookTemplateGalleryInput

func (WorkbookTemplateGalleryArray) ElementType

func (WorkbookTemplateGalleryArray) ToWorkbookTemplateGalleryArrayOutput

func (i WorkbookTemplateGalleryArray) ToWorkbookTemplateGalleryArrayOutput() WorkbookTemplateGalleryArrayOutput

func (WorkbookTemplateGalleryArray) ToWorkbookTemplateGalleryArrayOutputWithContext

func (i WorkbookTemplateGalleryArray) ToWorkbookTemplateGalleryArrayOutputWithContext(ctx context.Context) WorkbookTemplateGalleryArrayOutput

type WorkbookTemplateGalleryArrayInput

type WorkbookTemplateGalleryArrayInput interface {
	pulumi.Input

	ToWorkbookTemplateGalleryArrayOutput() WorkbookTemplateGalleryArrayOutput
	ToWorkbookTemplateGalleryArrayOutputWithContext(context.Context) WorkbookTemplateGalleryArrayOutput
}

WorkbookTemplateGalleryArrayInput is an input type that accepts WorkbookTemplateGalleryArray and WorkbookTemplateGalleryArrayOutput values. You can construct a concrete instance of `WorkbookTemplateGalleryArrayInput` via:

WorkbookTemplateGalleryArray{ WorkbookTemplateGalleryArgs{...} }

type WorkbookTemplateGalleryArrayOutput

type WorkbookTemplateGalleryArrayOutput struct{ *pulumi.OutputState }

func (WorkbookTemplateGalleryArrayOutput) ElementType

func (WorkbookTemplateGalleryArrayOutput) Index

func (WorkbookTemplateGalleryArrayOutput) ToWorkbookTemplateGalleryArrayOutput

func (o WorkbookTemplateGalleryArrayOutput) ToWorkbookTemplateGalleryArrayOutput() WorkbookTemplateGalleryArrayOutput

func (WorkbookTemplateGalleryArrayOutput) ToWorkbookTemplateGalleryArrayOutputWithContext

func (o WorkbookTemplateGalleryArrayOutput) ToWorkbookTemplateGalleryArrayOutputWithContext(ctx context.Context) WorkbookTemplateGalleryArrayOutput

type WorkbookTemplateGalleryInput

type WorkbookTemplateGalleryInput interface {
	pulumi.Input

	ToWorkbookTemplateGalleryOutput() WorkbookTemplateGalleryOutput
	ToWorkbookTemplateGalleryOutputWithContext(context.Context) WorkbookTemplateGalleryOutput
}

WorkbookTemplateGalleryInput is an input type that accepts WorkbookTemplateGalleryArgs and WorkbookTemplateGalleryOutput values. You can construct a concrete instance of `WorkbookTemplateGalleryInput` via:

WorkbookTemplateGalleryArgs{...}

type WorkbookTemplateGalleryOutput

type WorkbookTemplateGalleryOutput struct{ *pulumi.OutputState }

func (WorkbookTemplateGalleryOutput) Category

Category for the gallery.

func (WorkbookTemplateGalleryOutput) ElementType

func (WorkbookTemplateGalleryOutput) Name

Name of the workbook template in the gallery.

func (WorkbookTemplateGalleryOutput) Order

Order of the template within the gallery. Defaults to `0`.

func (WorkbookTemplateGalleryOutput) ResourceType

Azure resource type supported by the gallery. Defaults to `Azure Monitor`.

func (WorkbookTemplateGalleryOutput) ToWorkbookTemplateGalleryOutput

func (o WorkbookTemplateGalleryOutput) ToWorkbookTemplateGalleryOutput() WorkbookTemplateGalleryOutput

func (WorkbookTemplateGalleryOutput) ToWorkbookTemplateGalleryOutputWithContext

func (o WorkbookTemplateGalleryOutput) ToWorkbookTemplateGalleryOutputWithContext(ctx context.Context) WorkbookTemplateGalleryOutput

func (WorkbookTemplateGalleryOutput) Type

Type of workbook supported by the workbook template. Defaults to `workbook`.

> **Note:** See [documentation](https://docs.microsoft.com/en-us/azure/azure-monitor/visualize/workbooks-automate#galleries) for more information of `resourceType` and `type`.

type WorkbookTemplateInput

type WorkbookTemplateInput interface {
	pulumi.Input

	ToWorkbookTemplateOutput() WorkbookTemplateOutput
	ToWorkbookTemplateOutputWithContext(ctx context.Context) WorkbookTemplateOutput
}

type WorkbookTemplateMap

type WorkbookTemplateMap map[string]WorkbookTemplateInput

func (WorkbookTemplateMap) ElementType

func (WorkbookTemplateMap) ElementType() reflect.Type

func (WorkbookTemplateMap) ToWorkbookTemplateMapOutput

func (i WorkbookTemplateMap) ToWorkbookTemplateMapOutput() WorkbookTemplateMapOutput

func (WorkbookTemplateMap) ToWorkbookTemplateMapOutputWithContext

func (i WorkbookTemplateMap) ToWorkbookTemplateMapOutputWithContext(ctx context.Context) WorkbookTemplateMapOutput

type WorkbookTemplateMapInput

type WorkbookTemplateMapInput interface {
	pulumi.Input

	ToWorkbookTemplateMapOutput() WorkbookTemplateMapOutput
	ToWorkbookTemplateMapOutputWithContext(context.Context) WorkbookTemplateMapOutput
}

WorkbookTemplateMapInput is an input type that accepts WorkbookTemplateMap and WorkbookTemplateMapOutput values. You can construct a concrete instance of `WorkbookTemplateMapInput` via:

WorkbookTemplateMap{ "key": WorkbookTemplateArgs{...} }

type WorkbookTemplateMapOutput

type WorkbookTemplateMapOutput struct{ *pulumi.OutputState }

func (WorkbookTemplateMapOutput) ElementType

func (WorkbookTemplateMapOutput) ElementType() reflect.Type

func (WorkbookTemplateMapOutput) MapIndex

func (WorkbookTemplateMapOutput) ToWorkbookTemplateMapOutput

func (o WorkbookTemplateMapOutput) ToWorkbookTemplateMapOutput() WorkbookTemplateMapOutput

func (WorkbookTemplateMapOutput) ToWorkbookTemplateMapOutputWithContext

func (o WorkbookTemplateMapOutput) ToWorkbookTemplateMapOutputWithContext(ctx context.Context) WorkbookTemplateMapOutput

type WorkbookTemplateOutput

type WorkbookTemplateOutput struct{ *pulumi.OutputState }

func (WorkbookTemplateOutput) Author

Information about the author of the workbook template.

func (WorkbookTemplateOutput) ElementType

func (WorkbookTemplateOutput) ElementType() reflect.Type

func (WorkbookTemplateOutput) Galleries

A `galleries` block as defined below.

func (WorkbookTemplateOutput) Localized

Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal.

func (WorkbookTemplateOutput) Location

Specifies the Azure Region where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.

func (WorkbookTemplateOutput) Name

Specifies the name which should be used for this Application Insights Workbook Template. Changing this forces a new Application Insights Workbook Template to be created.

func (WorkbookTemplateOutput) Priority

Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`.

func (WorkbookTemplateOutput) ResourceGroupName

func (o WorkbookTemplateOutput) ResourceGroupName() pulumi.StringOutput

Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.

func (WorkbookTemplateOutput) Tags

A mapping of tags which should be assigned to the Application Insights Workbook Template.

func (WorkbookTemplateOutput) TemplateData

func (o WorkbookTemplateOutput) TemplateData() pulumi.StringOutput

Valid JSON object containing workbook template payload.

func (WorkbookTemplateOutput) ToWorkbookTemplateOutput

func (o WorkbookTemplateOutput) ToWorkbookTemplateOutput() WorkbookTemplateOutput

func (WorkbookTemplateOutput) ToWorkbookTemplateOutputWithContext

func (o WorkbookTemplateOutput) ToWorkbookTemplateOutputWithContext(ctx context.Context) WorkbookTemplateOutput

type WorkbookTemplateState

type WorkbookTemplateState struct {
	// Information about the author of the workbook template.
	Author pulumi.StringPtrInput
	// A `galleries` block as defined below.
	Galleries WorkbookTemplateGalleryArrayInput
	// Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal.
	Localized pulumi.StringPtrInput
	// Specifies the Azure Region where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
	Location pulumi.StringPtrInput
	// Specifies the name which should be used for this Application Insights Workbook Template. Changing this forces a new Application Insights Workbook Template to be created.
	Name pulumi.StringPtrInput
	// Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`.
	Priority pulumi.IntPtrInput
	// Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags which should be assigned to the Application Insights Workbook Template.
	Tags pulumi.StringMapInput
	// Valid JSON object containing workbook template payload.
	TemplateData pulumi.StringPtrInput
}

func (WorkbookTemplateState) ElementType

func (WorkbookTemplateState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL