appinsights

package
v3.56.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 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/v3/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi/sdk/v2/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/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 added in v3.31.1

func (*AnalyticsItem) ElementType() reflect.Type

func (*AnalyticsItem) ToAnalyticsItemOutput added in v3.31.1

func (i *AnalyticsItem) ToAnalyticsItemOutput() AnalyticsItemOutput

func (*AnalyticsItem) ToAnalyticsItemOutputWithContext added in v3.31.1

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

func (*AnalyticsItem) ToAnalyticsItemPtrOutput added in v3.47.1

func (i *AnalyticsItem) ToAnalyticsItemPtrOutput() AnalyticsItemPtrOutput

func (*AnalyticsItem) ToAnalyticsItemPtrOutputWithContext added in v3.47.1

func (i *AnalyticsItem) ToAnalyticsItemPtrOutputWithContext(ctx context.Context) AnalyticsItemPtrOutput

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 added in v3.47.1

type AnalyticsItemArray []AnalyticsItemInput

func (AnalyticsItemArray) ElementType added in v3.47.1

func (AnalyticsItemArray) ElementType() reflect.Type

func (AnalyticsItemArray) ToAnalyticsItemArrayOutput added in v3.47.1

func (i AnalyticsItemArray) ToAnalyticsItemArrayOutput() AnalyticsItemArrayOutput

func (AnalyticsItemArray) ToAnalyticsItemArrayOutputWithContext added in v3.47.1

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

type AnalyticsItemArrayInput added in v3.47.1

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 added in v3.47.1

type AnalyticsItemArrayOutput struct{ *pulumi.OutputState }

func (AnalyticsItemArrayOutput) ElementType added in v3.47.1

func (AnalyticsItemArrayOutput) ElementType() reflect.Type

func (AnalyticsItemArrayOutput) Index added in v3.47.1

func (AnalyticsItemArrayOutput) ToAnalyticsItemArrayOutput added in v3.47.1

func (o AnalyticsItemArrayOutput) ToAnalyticsItemArrayOutput() AnalyticsItemArrayOutput

func (AnalyticsItemArrayOutput) ToAnalyticsItemArrayOutputWithContext added in v3.47.1

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

type AnalyticsItemInput added in v3.31.1

type AnalyticsItemInput interface {
	pulumi.Input

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

type AnalyticsItemMap added in v3.47.1

type AnalyticsItemMap map[string]AnalyticsItemInput

func (AnalyticsItemMap) ElementType added in v3.47.1

func (AnalyticsItemMap) ElementType() reflect.Type

func (AnalyticsItemMap) ToAnalyticsItemMapOutput added in v3.47.1

func (i AnalyticsItemMap) ToAnalyticsItemMapOutput() AnalyticsItemMapOutput

func (AnalyticsItemMap) ToAnalyticsItemMapOutputWithContext added in v3.47.1

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

type AnalyticsItemMapInput added in v3.47.1

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 added in v3.47.1

type AnalyticsItemMapOutput struct{ *pulumi.OutputState }

func (AnalyticsItemMapOutput) ElementType added in v3.47.1

func (AnalyticsItemMapOutput) ElementType() reflect.Type

func (AnalyticsItemMapOutput) MapIndex added in v3.47.1

func (AnalyticsItemMapOutput) ToAnalyticsItemMapOutput added in v3.47.1

func (o AnalyticsItemMapOutput) ToAnalyticsItemMapOutput() AnalyticsItemMapOutput

func (AnalyticsItemMapOutput) ToAnalyticsItemMapOutputWithContext added in v3.47.1

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

type AnalyticsItemOutput added in v3.31.1

type AnalyticsItemOutput struct {
	*pulumi.OutputState
}

func (AnalyticsItemOutput) ElementType added in v3.31.1

func (AnalyticsItemOutput) ElementType() reflect.Type

func (AnalyticsItemOutput) ToAnalyticsItemOutput added in v3.31.1

func (o AnalyticsItemOutput) ToAnalyticsItemOutput() AnalyticsItemOutput

func (AnalyticsItemOutput) ToAnalyticsItemOutputWithContext added in v3.31.1

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

func (AnalyticsItemOutput) ToAnalyticsItemPtrOutput added in v3.47.1

func (o AnalyticsItemOutput) ToAnalyticsItemPtrOutput() AnalyticsItemPtrOutput

func (AnalyticsItemOutput) ToAnalyticsItemPtrOutputWithContext added in v3.47.1

func (o AnalyticsItemOutput) ToAnalyticsItemPtrOutputWithContext(ctx context.Context) AnalyticsItemPtrOutput

type AnalyticsItemPtrInput added in v3.47.1

type AnalyticsItemPtrInput interface {
	pulumi.Input

	ToAnalyticsItemPtrOutput() AnalyticsItemPtrOutput
	ToAnalyticsItemPtrOutputWithContext(ctx context.Context) AnalyticsItemPtrOutput
}

type AnalyticsItemPtrOutput added in v3.47.1

type AnalyticsItemPtrOutput struct {
	*pulumi.OutputState
}

func (AnalyticsItemPtrOutput) ElementType added in v3.47.1

func (AnalyticsItemPtrOutput) ElementType() reflect.Type

func (AnalyticsItemPtrOutput) ToAnalyticsItemPtrOutput added in v3.47.1

func (o AnalyticsItemPtrOutput) ToAnalyticsItemPtrOutput() AnalyticsItemPtrOutput

func (AnalyticsItemPtrOutput) ToAnalyticsItemPtrOutputWithContext added in v3.47.1

func (o AnalyticsItemPtrOutput) ToAnalyticsItemPtrOutputWithContext(ctx context.Context) AnalyticsItemPtrOutput

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/v3/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi/sdk/v2/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 added in v3.31.1

func (*ApiKey) ElementType() reflect.Type

func (*ApiKey) ToApiKeyOutput added in v3.31.1

func (i *ApiKey) ToApiKeyOutput() ApiKeyOutput

func (*ApiKey) ToApiKeyOutputWithContext added in v3.31.1

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

func (*ApiKey) ToApiKeyPtrOutput added in v3.47.1

func (i *ApiKey) ToApiKeyPtrOutput() ApiKeyPtrOutput

func (*ApiKey) ToApiKeyPtrOutputWithContext added in v3.47.1

func (i *ApiKey) ToApiKeyPtrOutputWithContext(ctx context.Context) ApiKeyPtrOutput

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 added in v3.47.1

type ApiKeyArray []ApiKeyInput

func (ApiKeyArray) ElementType added in v3.47.1

func (ApiKeyArray) ElementType() reflect.Type

func (ApiKeyArray) ToApiKeyArrayOutput added in v3.47.1

func (i ApiKeyArray) ToApiKeyArrayOutput() ApiKeyArrayOutput

func (ApiKeyArray) ToApiKeyArrayOutputWithContext added in v3.47.1

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

type ApiKeyArrayInput added in v3.47.1

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 added in v3.47.1

type ApiKeyArrayOutput struct{ *pulumi.OutputState }

func (ApiKeyArrayOutput) ElementType added in v3.47.1

func (ApiKeyArrayOutput) ElementType() reflect.Type

func (ApiKeyArrayOutput) Index added in v3.47.1

func (ApiKeyArrayOutput) ToApiKeyArrayOutput added in v3.47.1

func (o ApiKeyArrayOutput) ToApiKeyArrayOutput() ApiKeyArrayOutput

func (ApiKeyArrayOutput) ToApiKeyArrayOutputWithContext added in v3.47.1

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

type ApiKeyInput added in v3.31.1

type ApiKeyInput interface {
	pulumi.Input

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

type ApiKeyMap added in v3.47.1

type ApiKeyMap map[string]ApiKeyInput

func (ApiKeyMap) ElementType added in v3.47.1

func (ApiKeyMap) ElementType() reflect.Type

func (ApiKeyMap) ToApiKeyMapOutput added in v3.47.1

func (i ApiKeyMap) ToApiKeyMapOutput() ApiKeyMapOutput

func (ApiKeyMap) ToApiKeyMapOutputWithContext added in v3.47.1

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

type ApiKeyMapInput added in v3.47.1

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 added in v3.47.1

type ApiKeyMapOutput struct{ *pulumi.OutputState }

func (ApiKeyMapOutput) ElementType added in v3.47.1

func (ApiKeyMapOutput) ElementType() reflect.Type

func (ApiKeyMapOutput) MapIndex added in v3.47.1

func (ApiKeyMapOutput) ToApiKeyMapOutput added in v3.47.1

func (o ApiKeyMapOutput) ToApiKeyMapOutput() ApiKeyMapOutput

func (ApiKeyMapOutput) ToApiKeyMapOutputWithContext added in v3.47.1

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

type ApiKeyOutput added in v3.31.1

type ApiKeyOutput struct {
	*pulumi.OutputState
}

func (ApiKeyOutput) ElementType added in v3.31.1

func (ApiKeyOutput) ElementType() reflect.Type

func (ApiKeyOutput) ToApiKeyOutput added in v3.31.1

func (o ApiKeyOutput) ToApiKeyOutput() ApiKeyOutput

func (ApiKeyOutput) ToApiKeyOutputWithContext added in v3.31.1

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

func (ApiKeyOutput) ToApiKeyPtrOutput added in v3.47.1

func (o ApiKeyOutput) ToApiKeyPtrOutput() ApiKeyPtrOutput

func (ApiKeyOutput) ToApiKeyPtrOutputWithContext added in v3.47.1

func (o ApiKeyOutput) ToApiKeyPtrOutputWithContext(ctx context.Context) ApiKeyPtrOutput

type ApiKeyPtrInput added in v3.47.1

type ApiKeyPtrInput interface {
	pulumi.Input

	ToApiKeyPtrOutput() ApiKeyPtrOutput
	ToApiKeyPtrOutputWithContext(ctx context.Context) ApiKeyPtrOutput
}

type ApiKeyPtrOutput added in v3.47.1

type ApiKeyPtrOutput struct {
	*pulumi.OutputState
}

func (ApiKeyPtrOutput) ElementType added in v3.47.1

func (ApiKeyPtrOutput) ElementType() reflect.Type

func (ApiKeyPtrOutput) ToApiKeyPtrOutput added in v3.47.1

func (o ApiKeyPtrOutput) ToApiKeyPtrOutput() ApiKeyPtrOutput

func (ApiKeyPtrOutput) ToApiKeyPtrOutputWithContext added in v3.47.1

func (o ApiKeyPtrOutput) ToApiKeyPtrOutputWithContext(ctx context.Context) ApiKeyPtrOutput

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"`
	// The Instrumentation Key for this Application Insights component.
	InstrumentationKey pulumi.StringOutput `pulumi:"instrumentationKey"`
	// 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"`
}

Manages an Application Insights component.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi/sdk/v2/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
	})
}

```

## 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 added in v3.31.1

func (*Insights) ElementType() reflect.Type

func (*Insights) ToInsightsOutput added in v3.31.1

func (i *Insights) ToInsightsOutput() InsightsOutput

func (*Insights) ToInsightsOutputWithContext added in v3.31.1

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

func (*Insights) ToInsightsPtrOutput added in v3.47.1

func (i *Insights) ToInsightsPtrOutput() InsightsPtrOutput

func (*Insights) ToInsightsPtrOutputWithContext added in v3.47.1

func (i *Insights) ToInsightsPtrOutputWithContext(ctx context.Context) InsightsPtrOutput

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
	// 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
}

The set of arguments for constructing a Insights resource.

func (InsightsArgs) ElementType

func (InsightsArgs) ElementType() reflect.Type

type InsightsArray added in v3.47.1

type InsightsArray []InsightsInput

func (InsightsArray) ElementType added in v3.47.1

func (InsightsArray) ElementType() reflect.Type

func (InsightsArray) ToInsightsArrayOutput added in v3.47.1

func (i InsightsArray) ToInsightsArrayOutput() InsightsArrayOutput

func (InsightsArray) ToInsightsArrayOutputWithContext added in v3.47.1

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

type InsightsArrayInput added in v3.47.1

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 added in v3.47.1

type InsightsArrayOutput struct{ *pulumi.OutputState }

func (InsightsArrayOutput) ElementType added in v3.47.1

func (InsightsArrayOutput) ElementType() reflect.Type

func (InsightsArrayOutput) Index added in v3.47.1

func (InsightsArrayOutput) ToInsightsArrayOutput added in v3.47.1

func (o InsightsArrayOutput) ToInsightsArrayOutput() InsightsArrayOutput

func (InsightsArrayOutput) ToInsightsArrayOutputWithContext added in v3.47.1

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

type InsightsInput added in v3.31.1

type InsightsInput interface {
	pulumi.Input

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

type InsightsMap added in v3.47.1

type InsightsMap map[string]InsightsInput

func (InsightsMap) ElementType added in v3.47.1

func (InsightsMap) ElementType() reflect.Type

func (InsightsMap) ToInsightsMapOutput added in v3.47.1

func (i InsightsMap) ToInsightsMapOutput() InsightsMapOutput

func (InsightsMap) ToInsightsMapOutputWithContext added in v3.47.1

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

type InsightsMapInput added in v3.47.1

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 added in v3.47.1

type InsightsMapOutput struct{ *pulumi.OutputState }

func (InsightsMapOutput) ElementType added in v3.47.1

func (InsightsMapOutput) ElementType() reflect.Type

func (InsightsMapOutput) MapIndex added in v3.47.1

func (InsightsMapOutput) ToInsightsMapOutput added in v3.47.1

func (o InsightsMapOutput) ToInsightsMapOutput() InsightsMapOutput

func (InsightsMapOutput) ToInsightsMapOutputWithContext added in v3.47.1

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

type InsightsOutput added in v3.31.1

type InsightsOutput struct {
	*pulumi.OutputState
}

func (InsightsOutput) ElementType added in v3.31.1

func (InsightsOutput) ElementType() reflect.Type

func (InsightsOutput) ToInsightsOutput added in v3.31.1

func (o InsightsOutput) ToInsightsOutput() InsightsOutput

func (InsightsOutput) ToInsightsOutputWithContext added in v3.31.1

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

func (InsightsOutput) ToInsightsPtrOutput added in v3.47.1

func (o InsightsOutput) ToInsightsPtrOutput() InsightsPtrOutput

func (InsightsOutput) ToInsightsPtrOutputWithContext added in v3.47.1

func (o InsightsOutput) ToInsightsPtrOutputWithContext(ctx context.Context) InsightsPtrOutput

type InsightsPtrInput added in v3.47.1

type InsightsPtrInput interface {
	pulumi.Input

	ToInsightsPtrOutput() InsightsPtrOutput
	ToInsightsPtrOutputWithContext(ctx context.Context) InsightsPtrOutput
}

type InsightsPtrOutput added in v3.47.1

type InsightsPtrOutput struct {
	*pulumi.OutputState
}

func (InsightsPtrOutput) ElementType added in v3.47.1

func (InsightsPtrOutput) ElementType() reflect.Type

func (InsightsPtrOutput) ToInsightsPtrOutput added in v3.47.1

func (o InsightsPtrOutput) ToInsightsPtrOutput() InsightsPtrOutput

func (InsightsPtrOutput) ToInsightsPtrOutputWithContext added in v3.47.1

func (o InsightsPtrOutput) ToInsightsPtrOutputWithContext(ctx context.Context) InsightsPtrOutput

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
	// The Instrumentation Key for this Application Insights component.
	InstrumentationKey pulumi.StringPtrInput
	// 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
}

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 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"`
}

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/v3/go/azure/appinsights"
"github.com/pulumi/pulumi/sdk/v2/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 SmartDetectionRule added in v3.47.1

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`.  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/v3/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi/sdk/v2/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
	})
}

```

func GetSmartDetectionRule added in v3.47.1

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 added in v3.47.1

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 added in v3.47.1

func (*SmartDetectionRule) ElementType() reflect.Type

func (*SmartDetectionRule) ToSmartDetectionRuleOutput added in v3.47.1

func (i *SmartDetectionRule) ToSmartDetectionRuleOutput() SmartDetectionRuleOutput

func (*SmartDetectionRule) ToSmartDetectionRuleOutputWithContext added in v3.47.1

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

func (*SmartDetectionRule) ToSmartDetectionRulePtrOutput added in v3.47.1

func (i *SmartDetectionRule) ToSmartDetectionRulePtrOutput() SmartDetectionRulePtrOutput

func (*SmartDetectionRule) ToSmartDetectionRulePtrOutputWithContext added in v3.47.1

func (i *SmartDetectionRule) ToSmartDetectionRulePtrOutputWithContext(ctx context.Context) SmartDetectionRulePtrOutput

type SmartDetectionRuleArgs added in v3.47.1

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`.  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 added in v3.47.1

func (SmartDetectionRuleArgs) ElementType() reflect.Type

type SmartDetectionRuleArray added in v3.47.1

type SmartDetectionRuleArray []SmartDetectionRuleInput

func (SmartDetectionRuleArray) ElementType added in v3.47.1

func (SmartDetectionRuleArray) ElementType() reflect.Type

func (SmartDetectionRuleArray) ToSmartDetectionRuleArrayOutput added in v3.47.1

func (i SmartDetectionRuleArray) ToSmartDetectionRuleArrayOutput() SmartDetectionRuleArrayOutput

func (SmartDetectionRuleArray) ToSmartDetectionRuleArrayOutputWithContext added in v3.47.1

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

type SmartDetectionRuleArrayInput added in v3.47.1

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 added in v3.47.1

type SmartDetectionRuleArrayOutput struct{ *pulumi.OutputState }

func (SmartDetectionRuleArrayOutput) ElementType added in v3.47.1

func (SmartDetectionRuleArrayOutput) Index added in v3.47.1

func (SmartDetectionRuleArrayOutput) ToSmartDetectionRuleArrayOutput added in v3.47.1

func (o SmartDetectionRuleArrayOutput) ToSmartDetectionRuleArrayOutput() SmartDetectionRuleArrayOutput

func (SmartDetectionRuleArrayOutput) ToSmartDetectionRuleArrayOutputWithContext added in v3.47.1

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

type SmartDetectionRuleInput added in v3.47.1

type SmartDetectionRuleInput interface {
	pulumi.Input

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

type SmartDetectionRuleMap added in v3.47.1

type SmartDetectionRuleMap map[string]SmartDetectionRuleInput

func (SmartDetectionRuleMap) ElementType added in v3.47.1

func (SmartDetectionRuleMap) ElementType() reflect.Type

func (SmartDetectionRuleMap) ToSmartDetectionRuleMapOutput added in v3.47.1

func (i SmartDetectionRuleMap) ToSmartDetectionRuleMapOutput() SmartDetectionRuleMapOutput

func (SmartDetectionRuleMap) ToSmartDetectionRuleMapOutputWithContext added in v3.47.1

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

type SmartDetectionRuleMapInput added in v3.47.1

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 added in v3.47.1

type SmartDetectionRuleMapOutput struct{ *pulumi.OutputState }

func (SmartDetectionRuleMapOutput) ElementType added in v3.47.1

func (SmartDetectionRuleMapOutput) MapIndex added in v3.47.1

func (SmartDetectionRuleMapOutput) ToSmartDetectionRuleMapOutput added in v3.47.1

func (o SmartDetectionRuleMapOutput) ToSmartDetectionRuleMapOutput() SmartDetectionRuleMapOutput

func (SmartDetectionRuleMapOutput) ToSmartDetectionRuleMapOutputWithContext added in v3.47.1

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

type SmartDetectionRuleOutput added in v3.47.1

type SmartDetectionRuleOutput struct {
	*pulumi.OutputState
}

func (SmartDetectionRuleOutput) ElementType added in v3.47.1

func (SmartDetectionRuleOutput) ElementType() reflect.Type

func (SmartDetectionRuleOutput) ToSmartDetectionRuleOutput added in v3.47.1

func (o SmartDetectionRuleOutput) ToSmartDetectionRuleOutput() SmartDetectionRuleOutput

func (SmartDetectionRuleOutput) ToSmartDetectionRuleOutputWithContext added in v3.47.1

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

func (SmartDetectionRuleOutput) ToSmartDetectionRulePtrOutput added in v3.47.1

func (o SmartDetectionRuleOutput) ToSmartDetectionRulePtrOutput() SmartDetectionRulePtrOutput

func (SmartDetectionRuleOutput) ToSmartDetectionRulePtrOutputWithContext added in v3.47.1

func (o SmartDetectionRuleOutput) ToSmartDetectionRulePtrOutputWithContext(ctx context.Context) SmartDetectionRulePtrOutput

type SmartDetectionRulePtrInput added in v3.47.1

type SmartDetectionRulePtrInput interface {
	pulumi.Input

	ToSmartDetectionRulePtrOutput() SmartDetectionRulePtrOutput
	ToSmartDetectionRulePtrOutputWithContext(ctx context.Context) SmartDetectionRulePtrOutput
}

type SmartDetectionRulePtrOutput added in v3.47.1

type SmartDetectionRulePtrOutput struct {
	*pulumi.OutputState
}

func (SmartDetectionRulePtrOutput) ElementType added in v3.47.1

func (SmartDetectionRulePtrOutput) ToSmartDetectionRulePtrOutput added in v3.47.1

func (o SmartDetectionRulePtrOutput) ToSmartDetectionRulePtrOutput() SmartDetectionRulePtrOutput

func (SmartDetectionRulePtrOutput) ToSmartDetectionRulePtrOutputWithContext added in v3.47.1

func (o SmartDetectionRulePtrOutput) ToSmartDetectionRulePtrOutputWithContext(ctx context.Context) SmartDetectionRulePtrOutput

type SmartDetectionRuleState added in v3.47.1

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`.  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 added in v3.47.1

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/v3/go/azure/appinsights"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi/sdk/v2/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 added in v3.31.1

func (*WebTest) ElementType() reflect.Type

func (*WebTest) ToWebTestOutput added in v3.31.1

func (i *WebTest) ToWebTestOutput() WebTestOutput

func (*WebTest) ToWebTestOutputWithContext added in v3.31.1

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

func (*WebTest) ToWebTestPtrOutput added in v3.47.1

func (i *WebTest) ToWebTestPtrOutput() WebTestPtrOutput

func (*WebTest) ToWebTestPtrOutputWithContext added in v3.47.1

func (i *WebTest) ToWebTestPtrOutputWithContext(ctx context.Context) WebTestPtrOutput

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 added in v3.47.1

type WebTestArray []WebTestInput

func (WebTestArray) ElementType added in v3.47.1

func (WebTestArray) ElementType() reflect.Type

func (WebTestArray) ToWebTestArrayOutput added in v3.47.1

func (i WebTestArray) ToWebTestArrayOutput() WebTestArrayOutput

func (WebTestArray) ToWebTestArrayOutputWithContext added in v3.47.1

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

type WebTestArrayInput added in v3.47.1

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 added in v3.47.1

type WebTestArrayOutput struct{ *pulumi.OutputState }

func (WebTestArrayOutput) ElementType added in v3.47.1

func (WebTestArrayOutput) ElementType() reflect.Type

func (WebTestArrayOutput) Index added in v3.47.1

func (WebTestArrayOutput) ToWebTestArrayOutput added in v3.47.1

func (o WebTestArrayOutput) ToWebTestArrayOutput() WebTestArrayOutput

func (WebTestArrayOutput) ToWebTestArrayOutputWithContext added in v3.47.1

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

type WebTestInput added in v3.31.1

type WebTestInput interface {
	pulumi.Input

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

type WebTestMap added in v3.47.1

type WebTestMap map[string]WebTestInput

func (WebTestMap) ElementType added in v3.47.1

func (WebTestMap) ElementType() reflect.Type

func (WebTestMap) ToWebTestMapOutput added in v3.47.1

func (i WebTestMap) ToWebTestMapOutput() WebTestMapOutput

func (WebTestMap) ToWebTestMapOutputWithContext added in v3.47.1

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

type WebTestMapInput added in v3.47.1

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 added in v3.47.1

type WebTestMapOutput struct{ *pulumi.OutputState }

func (WebTestMapOutput) ElementType added in v3.47.1

func (WebTestMapOutput) ElementType() reflect.Type

func (WebTestMapOutput) MapIndex added in v3.47.1

func (WebTestMapOutput) ToWebTestMapOutput added in v3.47.1

func (o WebTestMapOutput) ToWebTestMapOutput() WebTestMapOutput

func (WebTestMapOutput) ToWebTestMapOutputWithContext added in v3.47.1

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

type WebTestOutput added in v3.31.1

type WebTestOutput struct {
	*pulumi.OutputState
}

func (WebTestOutput) ElementType added in v3.31.1

func (WebTestOutput) ElementType() reflect.Type

func (WebTestOutput) ToWebTestOutput added in v3.31.1

func (o WebTestOutput) ToWebTestOutput() WebTestOutput

func (WebTestOutput) ToWebTestOutputWithContext added in v3.31.1

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

func (WebTestOutput) ToWebTestPtrOutput added in v3.47.1

func (o WebTestOutput) ToWebTestPtrOutput() WebTestPtrOutput

func (WebTestOutput) ToWebTestPtrOutputWithContext added in v3.47.1

func (o WebTestOutput) ToWebTestPtrOutputWithContext(ctx context.Context) WebTestPtrOutput

type WebTestPtrInput added in v3.47.1

type WebTestPtrInput interface {
	pulumi.Input

	ToWebTestPtrOutput() WebTestPtrOutput
	ToWebTestPtrOutputWithContext(ctx context.Context) WebTestPtrOutput
}

type WebTestPtrOutput added in v3.47.1

type WebTestPtrOutput struct {
	*pulumi.OutputState
}

func (WebTestPtrOutput) ElementType added in v3.47.1

func (WebTestPtrOutput) ElementType() reflect.Type

func (WebTestPtrOutput) ToWebTestPtrOutput added in v3.47.1

func (o WebTestPtrOutput) ToWebTestPtrOutput() WebTestPtrOutput

func (WebTestPtrOutput) ToWebTestPtrOutputWithContext added in v3.47.1

func (o WebTestPtrOutput) ToWebTestPtrOutputWithContext(ctx context.Context) WebTestPtrOutput

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