appinsights

package
v4.41.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 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/v4/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleInsights, err := appinsights.NewInsights(ctx, "exampleInsights", &appinsights.InsightsArgs{
			Location:          pulumi.String("West Europe"),
			ResourceGroupName: exampleResourceGroup.Name,
			ApplicationType:   pulumi.String("web"),
		})
		if err != nil {
			return err
		}
		_, err = appinsights.NewAnalyticsItem(ctx, "exampleAnalyticsItem", &appinsights.AnalyticsItemArgs{
			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/en-us/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) ElementType

func (AnalyticsItemOutput) ElementType() reflect.Type

func (AnalyticsItemOutput) ToAnalyticsItemOutput

func (o AnalyticsItemOutput) ToAnalyticsItemOutput() AnalyticsItemOutput

func (AnalyticsItemOutput) ToAnalyticsItemOutputWithContext

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

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.
	WritePermissions pulumi.StringArrayOutput `pulumi:"writePermissions"`
}

Manages an Application Insights API key.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleInsights, err := appinsights.NewInsights(ctx, "exampleInsights", &appinsights.InsightsArgs{
			Location:          pulumi.String("West Europe"),
			ResourceGroupName: exampleResourceGroup.Name,
			ApplicationType:   pulumi.String("web"),
		})
		if err != nil {
			return err
		}
		readTelemetry, err := appinsights.NewApiKey(ctx, "readTelemetry", &appinsights.ApiKeyArgs{
			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, "writeAnnotations", &appinsights.ApiKeyArgs{
			ApplicationInsightsId: exampleInsights.ID(),
			WritePermissions: pulumi.StringArray{
				pulumi.String("annotations"),
			},
		})
		if err != nil {
			return err
		}
		authenticateSdkControlChannelApiKey, err := appinsights.NewApiKey(ctx, "authenticateSdkControlChannelApiKey", &appinsights.ApiKeyArgs{
			ApplicationInsightsId: exampleInsights.ID(),
			ReadPermissions: pulumi.StringArray{
				pulumi.String("agentconfig"),
			},
		})
		if err != nil {
			return err
		}
		fullPermissions, err := appinsights.NewApiKey(ctx, "fullPermissions", &appinsights.ApiKeyArgs{
			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", authenticateSdkControlChannelApiKey.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.
	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) ElementType

func (ApiKeyOutput) ElementType() reflect.Type

func (ApiKeyOutput) ToApiKeyOutput

func (o ApiKeyOutput) ToApiKeyOutput() ApiKeyOutput

func (ApiKeyOutput) ToApiKeyOutputWithContext

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

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.
	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.
	DailyDataCapInGb pulumi.Float64Output `pulumi:"dailyDataCapInGb"`
	// Specifies if a notification email will be send when the daily data volume cap is met.
	DailyDataCapNotificationsDisabled pulumi.BoolOutput `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"`
	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.
	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.
	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
	WorkspaceId pulumi.StringPtrOutput `pulumi:"workspaceId"`
}

Manages an Application Insights component.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleInsights, err := appinsights.NewInsights(ctx, "exampleInsights", &appinsights.InsightsArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.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/v4/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/operationalinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "exampleAnalyticsWorkspace", &operationalinsights.AnalyticsWorkspaceArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			Sku:               pulumi.String("PerGB2018"),
			RetentionInDays:   pulumi.Int(30),
		})
		if err != nil {
			return err
		}
		exampleInsights, err := appinsights.NewInsights(ctx, "exampleInsights", &appinsights.InsightsArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.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.
	DailyDataCapInGb pulumi.Float64PtrInput
	// Specifies if a notification email will be send when the daily data volume cap is met.
	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
	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.
	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.
	SamplingPercentage pulumi.Float64PtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Specifies the id of a log analytics workspace resource
	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) ElementType

func (InsightsOutput) ElementType() reflect.Type

func (InsightsOutput) ToInsightsOutput

func (o InsightsOutput) ToInsightsOutput() InsightsOutput

func (InsightsOutput) ToInsightsOutputWithContext

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

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.
	DailyDataCapInGb pulumi.Float64PtrInput
	// Specifies if a notification email will be send when the daily data volume cap is met.
	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
	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.
	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.
	SamplingPercentage pulumi.Float64PtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.StringMapInput
	// Specifies the id of a log analytics workspace resource
	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 added in v4.20.0

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 added in v4.20.0

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/v4/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 added in v4.20.0

type LookupInsightsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInsights.

func LookupInsightsOutput added in v4.20.0

func LookupInsightsOutput(ctx *pulumi.Context, args LookupInsightsOutputArgs, opts ...pulumi.InvokeOption) LookupInsightsResultOutput

func (LookupInsightsResultOutput) AppId added in v4.20.0

The App ID associated with this Application Insights component.

func (LookupInsightsResultOutput) ApplicationType added in v4.20.0

func (o LookupInsightsResultOutput) ApplicationType() pulumi.StringOutput

The type of the component.

func (LookupInsightsResultOutput) ConnectionString added in v4.20.0

func (o LookupInsightsResultOutput) ConnectionString() pulumi.StringOutput

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

func (LookupInsightsResultOutput) ElementType added in v4.20.0

func (LookupInsightsResultOutput) ElementType() reflect.Type

func (LookupInsightsResultOutput) Id added in v4.20.0

The provider-assigned unique ID for this managed resource.

func (LookupInsightsResultOutput) InstrumentationKey added in v4.20.0

func (o LookupInsightsResultOutput) InstrumentationKey() pulumi.StringOutput

The instrumentation key of the Application Insights component.

func (LookupInsightsResultOutput) Location added in v4.20.0

The Azure location where the component exists.

func (LookupInsightsResultOutput) Name added in v4.20.0

func (LookupInsightsResultOutput) ResourceGroupName added in v4.20.0

func (o LookupInsightsResultOutput) ResourceGroupName() pulumi.StringOutput

func (LookupInsightsResultOutput) RetentionInDays added in v4.20.0

func (o LookupInsightsResultOutput) RetentionInDays() pulumi.IntOutput

The retention period in days.

func (LookupInsightsResultOutput) Tags added in v4.20.0

Tags applied to the component.

func (LookupInsightsResultOutput) ToLookupInsightsResultOutput added in v4.20.0

func (o LookupInsightsResultOutput) ToLookupInsightsResultOutput() LookupInsightsResultOutput

func (LookupInsightsResultOutput) ToLookupInsightsResultOutputWithContext added in v4.20.0

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

func (LookupInsightsResultOutput) WorkspaceId added in v4.20.0

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.
	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`,
	// `Long dependency duration`, `Degradation in server response time`, `Degradation in dependency duration`, `Degradation in trace severity ratio`, `Abnormal rise in exception volume`,
	// `Potential memory leak detected`, `Potential security issue detected`, `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/v4/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleInsights, err := appinsights.NewInsights(ctx, "exampleInsights", &appinsights.InsightsArgs{
			Location:          pulumi.String("West Europe"),
			ResourceGroupName: exampleResourceGroup.Name,
			ApplicationType:   pulumi.String("web"),
		})
		if err != nil {
			return err
		}
		_, err = appinsights.NewSmartDetectionRule(ctx, "exampleSmartDetectionRule", &appinsights.SmartDetectionRuleArgs{
			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/smartDetectionRule/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.
	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`,
	// `Long dependency duration`, `Degradation in server response time`, `Degradation in dependency duration`, `Degradation in trace severity ratio`, `Abnormal rise in exception volume`,
	// `Potential memory leak detected`, `Potential security issue detected`, `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) ElementType

func (SmartDetectionRuleOutput) ElementType() reflect.Type

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.
	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`,
	// `Long dependency duration`, `Degradation in server response time`, `Degradation in dependency duration`, `Degradation in trace severity ratio`, `Abnormal rise in exception volume`,
	// `Potential memory leak detected`, `Potential security issue detected`, `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 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/en-us/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.
	GeoLocations pulumi.StringArrayOutput `pulumi:"geoLocations"`
	// = (Required) 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 (

"fmt"

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleInsights, err := appinsights.NewInsights(ctx, "exampleInsights", &appinsights.InsightsArgs{
			Location:          pulumi.String("West Europe"),
			ResourceGroupName: exampleResourceGroup.Name,
			ApplicationType:   pulumi.String("web"),
		})
		if err != nil {
			return err
		}
		exampleWebTest, err := appinsights.NewWebTest(ctx, "exampleWebTest", &appinsights.WebTestArgs{
			Location:              exampleInsights.Location,
			ResourceGroupName:     exampleResourceGroup.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(fmt.Sprintf("%v%v%v%v%v", "<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=\"\">\n", "  <Items>\n", "    <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\" />\n", "  </Items>\n", "</WebTest>\n")),
		})
		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/en-us/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.
	GeoLocations pulumi.StringArrayInput
	// = (Required) 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) ElementType

func (WebTestOutput) ElementType() reflect.Type

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/en-us/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.
	GeoLocations pulumi.StringArrayInput
	// = (Required) 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

Jump to

Keyboard shortcuts

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