Documentation ¶
Index ¶
- type AnalyticsItem
- type AnalyticsItemArgs
- type AnalyticsItemArray
- type AnalyticsItemArrayInput
- type AnalyticsItemArrayOutput
- func (AnalyticsItemArrayOutput) ElementType() reflect.Type
- func (o AnalyticsItemArrayOutput) Index(i pulumi.IntInput) AnalyticsItemOutput
- func (o AnalyticsItemArrayOutput) ToAnalyticsItemArrayOutput() AnalyticsItemArrayOutput
- func (o AnalyticsItemArrayOutput) ToAnalyticsItemArrayOutputWithContext(ctx context.Context) AnalyticsItemArrayOutput
- type AnalyticsItemInput
- type AnalyticsItemMap
- type AnalyticsItemMapInput
- type AnalyticsItemMapOutput
- func (AnalyticsItemMapOutput) ElementType() reflect.Type
- func (o AnalyticsItemMapOutput) MapIndex(k pulumi.StringInput) AnalyticsItemOutput
- func (o AnalyticsItemMapOutput) ToAnalyticsItemMapOutput() AnalyticsItemMapOutput
- func (o AnalyticsItemMapOutput) ToAnalyticsItemMapOutputWithContext(ctx context.Context) AnalyticsItemMapOutput
- type AnalyticsItemOutput
- func (o AnalyticsItemOutput) ApplicationInsightsId() pulumi.StringOutput
- func (o AnalyticsItemOutput) Content() pulumi.StringOutput
- func (AnalyticsItemOutput) ElementType() reflect.Type
- func (o AnalyticsItemOutput) FunctionAlias() pulumi.StringPtrOutput
- func (o AnalyticsItemOutput) Name() pulumi.StringOutput
- func (o AnalyticsItemOutput) Scope() pulumi.StringOutput
- func (o AnalyticsItemOutput) TimeCreated() pulumi.StringOutput
- func (o AnalyticsItemOutput) TimeModified() pulumi.StringOutput
- func (o AnalyticsItemOutput) ToAnalyticsItemOutput() AnalyticsItemOutput
- func (o AnalyticsItemOutput) ToAnalyticsItemOutputWithContext(ctx context.Context) AnalyticsItemOutput
- func (o AnalyticsItemOutput) Type() pulumi.StringOutput
- func (o AnalyticsItemOutput) Version() pulumi.StringOutput
- type AnalyticsItemState
- type ApiKey
- type ApiKeyArgs
- type ApiKeyArray
- type ApiKeyArrayInput
- type ApiKeyArrayOutput
- type ApiKeyInput
- type ApiKeyMap
- type ApiKeyMapInput
- type ApiKeyMapOutput
- type ApiKeyOutput
- func (o ApiKeyOutput) ApiKey() pulumi.StringOutput
- func (o ApiKeyOutput) ApplicationInsightsId() pulumi.StringOutput
- func (ApiKeyOutput) ElementType() reflect.Type
- func (o ApiKeyOutput) Name() pulumi.StringOutput
- func (o ApiKeyOutput) ReadPermissions() pulumi.StringArrayOutput
- func (o ApiKeyOutput) ToApiKeyOutput() ApiKeyOutput
- func (o ApiKeyOutput) ToApiKeyOutputWithContext(ctx context.Context) ApiKeyOutput
- func (o ApiKeyOutput) WritePermissions() pulumi.StringArrayOutput
- type ApiKeyState
- type Insights
- type InsightsArgs
- type InsightsArray
- type InsightsArrayInput
- type InsightsArrayOutput
- type InsightsInput
- type InsightsMap
- type InsightsMapInput
- type InsightsMapOutput
- type InsightsOutput
- func (o InsightsOutput) AppId() pulumi.StringOutput
- func (o InsightsOutput) ApplicationType() pulumi.StringOutput
- func (o InsightsOutput) ConnectionString() pulumi.StringOutput
- func (o InsightsOutput) DailyDataCapInGb() pulumi.Float64Output
- func (o InsightsOutput) DailyDataCapNotificationsDisabled() pulumi.BoolOutput
- func (o InsightsOutput) DisableIpMasking() pulumi.BoolPtrOutput
- func (InsightsOutput) ElementType() reflect.Type
- func (o InsightsOutput) ForceCustomerStorageForProfiler() pulumi.BoolPtrOutput
- func (o InsightsOutput) InstrumentationKey() pulumi.StringOutput
- func (o InsightsOutput) InternetIngestionEnabled() pulumi.BoolPtrOutput
- func (o InsightsOutput) InternetQueryEnabled() pulumi.BoolPtrOutput
- func (o InsightsOutput) LocalAuthenticationDisabled() pulumi.BoolPtrOutput
- func (o InsightsOutput) Location() pulumi.StringOutput
- func (o InsightsOutput) Name() pulumi.StringOutput
- func (o InsightsOutput) ResourceGroupName() pulumi.StringOutput
- func (o InsightsOutput) RetentionInDays() pulumi.IntPtrOutput
- func (o InsightsOutput) SamplingPercentage() pulumi.Float64PtrOutput
- func (o InsightsOutput) Tags() pulumi.StringMapOutput
- func (o InsightsOutput) ToInsightsOutput() InsightsOutput
- func (o InsightsOutput) ToInsightsOutputWithContext(ctx context.Context) InsightsOutput
- func (o InsightsOutput) WorkspaceId() pulumi.StringPtrOutput
- type InsightsState
- type LookupInsightsArgs
- type LookupInsightsOutputArgs
- type LookupInsightsResult
- type LookupInsightsResultOutput
- func (o LookupInsightsResultOutput) AppId() pulumi.StringOutput
- func (o LookupInsightsResultOutput) ApplicationType() pulumi.StringOutput
- func (o LookupInsightsResultOutput) ConnectionString() pulumi.StringOutput
- func (LookupInsightsResultOutput) ElementType() reflect.Type
- func (o LookupInsightsResultOutput) Id() pulumi.StringOutput
- func (o LookupInsightsResultOutput) InstrumentationKey() pulumi.StringOutput
- func (o LookupInsightsResultOutput) Location() pulumi.StringOutput
- func (o LookupInsightsResultOutput) Name() pulumi.StringOutput
- func (o LookupInsightsResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o LookupInsightsResultOutput) RetentionInDays() pulumi.IntOutput
- func (o LookupInsightsResultOutput) Tags() pulumi.StringMapOutput
- func (o LookupInsightsResultOutput) ToLookupInsightsResultOutput() LookupInsightsResultOutput
- func (o LookupInsightsResultOutput) ToLookupInsightsResultOutputWithContext(ctx context.Context) LookupInsightsResultOutput
- func (o LookupInsightsResultOutput) WorkspaceId() pulumi.StringOutput
- type SmartDetectionRule
- type SmartDetectionRuleArgs
- type SmartDetectionRuleArray
- type SmartDetectionRuleArrayInput
- type SmartDetectionRuleArrayOutput
- func (SmartDetectionRuleArrayOutput) ElementType() reflect.Type
- func (o SmartDetectionRuleArrayOutput) Index(i pulumi.IntInput) SmartDetectionRuleOutput
- func (o SmartDetectionRuleArrayOutput) ToSmartDetectionRuleArrayOutput() SmartDetectionRuleArrayOutput
- func (o SmartDetectionRuleArrayOutput) ToSmartDetectionRuleArrayOutputWithContext(ctx context.Context) SmartDetectionRuleArrayOutput
- type SmartDetectionRuleInput
- type SmartDetectionRuleMap
- type SmartDetectionRuleMapInput
- type SmartDetectionRuleMapOutput
- func (SmartDetectionRuleMapOutput) ElementType() reflect.Type
- func (o SmartDetectionRuleMapOutput) MapIndex(k pulumi.StringInput) SmartDetectionRuleOutput
- func (o SmartDetectionRuleMapOutput) ToSmartDetectionRuleMapOutput() SmartDetectionRuleMapOutput
- func (o SmartDetectionRuleMapOutput) ToSmartDetectionRuleMapOutputWithContext(ctx context.Context) SmartDetectionRuleMapOutput
- type SmartDetectionRuleOutput
- func (o SmartDetectionRuleOutput) AdditionalEmailRecipients() pulumi.StringArrayOutput
- func (o SmartDetectionRuleOutput) ApplicationInsightsId() pulumi.StringOutput
- func (SmartDetectionRuleOutput) ElementType() reflect.Type
- func (o SmartDetectionRuleOutput) Enabled() pulumi.BoolPtrOutput
- func (o SmartDetectionRuleOutput) Name() pulumi.StringOutput
- func (o SmartDetectionRuleOutput) SendEmailsToSubscriptionOwners() pulumi.BoolPtrOutput
- func (o SmartDetectionRuleOutput) ToSmartDetectionRuleOutput() SmartDetectionRuleOutput
- func (o SmartDetectionRuleOutput) ToSmartDetectionRuleOutputWithContext(ctx context.Context) SmartDetectionRuleOutput
- type SmartDetectionRuleState
- type WebTest
- type WebTestArgs
- type WebTestArray
- type WebTestArrayInput
- type WebTestArrayOutput
- type WebTestInput
- type WebTestMap
- type WebTestMapInput
- type WebTestMapOutput
- type WebTestOutput
- func (o WebTestOutput) ApplicationInsightsId() pulumi.StringOutput
- func (o WebTestOutput) Configuration() pulumi.StringOutput
- func (o WebTestOutput) Description() pulumi.StringPtrOutput
- func (WebTestOutput) ElementType() reflect.Type
- func (o WebTestOutput) Enabled() pulumi.BoolPtrOutput
- func (o WebTestOutput) Frequency() pulumi.IntPtrOutput
- func (o WebTestOutput) GeoLocations() pulumi.StringArrayOutput
- func (o WebTestOutput) Kind() pulumi.StringOutput
- func (o WebTestOutput) Location() pulumi.StringOutput
- func (o WebTestOutput) Name() pulumi.StringOutput
- func (o WebTestOutput) ResourceGroupName() pulumi.StringOutput
- func (o WebTestOutput) RetryEnabled() pulumi.BoolPtrOutput
- func (o WebTestOutput) SyntheticMonitorId() pulumi.StringOutput
- func (o WebTestOutput) Tags() pulumi.StringMapOutput
- func (o WebTestOutput) Timeout() pulumi.IntPtrOutput
- func (o WebTestOutput) ToWebTestOutput() WebTestOutput
- func (o WebTestOutput) ToWebTestOutputWithContext(ctx context.Context) WebTestOutput
- type WebTestState
- type Workbook
- type WorkbookArgs
- type WorkbookArray
- type WorkbookArrayInput
- type WorkbookArrayOutput
- type WorkbookIdentity
- type WorkbookIdentityArgs
- func (WorkbookIdentityArgs) ElementType() reflect.Type
- func (i WorkbookIdentityArgs) ToWorkbookIdentityOutput() WorkbookIdentityOutput
- func (i WorkbookIdentityArgs) ToWorkbookIdentityOutputWithContext(ctx context.Context) WorkbookIdentityOutput
- func (i WorkbookIdentityArgs) ToWorkbookIdentityPtrOutput() WorkbookIdentityPtrOutput
- func (i WorkbookIdentityArgs) ToWorkbookIdentityPtrOutputWithContext(ctx context.Context) WorkbookIdentityPtrOutput
- type WorkbookIdentityInput
- type WorkbookIdentityOutput
- func (WorkbookIdentityOutput) ElementType() reflect.Type
- func (o WorkbookIdentityOutput) IdentityIds() pulumi.StringArrayOutput
- func (o WorkbookIdentityOutput) PrincipalId() pulumi.StringPtrOutput
- func (o WorkbookIdentityOutput) TenantId() pulumi.StringPtrOutput
- func (o WorkbookIdentityOutput) ToWorkbookIdentityOutput() WorkbookIdentityOutput
- func (o WorkbookIdentityOutput) ToWorkbookIdentityOutputWithContext(ctx context.Context) WorkbookIdentityOutput
- func (o WorkbookIdentityOutput) ToWorkbookIdentityPtrOutput() WorkbookIdentityPtrOutput
- func (o WorkbookIdentityOutput) ToWorkbookIdentityPtrOutputWithContext(ctx context.Context) WorkbookIdentityPtrOutput
- func (o WorkbookIdentityOutput) Type() pulumi.StringOutput
- type WorkbookIdentityPtrInput
- type WorkbookIdentityPtrOutput
- func (o WorkbookIdentityPtrOutput) Elem() WorkbookIdentityOutput
- func (WorkbookIdentityPtrOutput) ElementType() reflect.Type
- func (o WorkbookIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput
- func (o WorkbookIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
- func (o WorkbookIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
- func (o WorkbookIdentityPtrOutput) ToWorkbookIdentityPtrOutput() WorkbookIdentityPtrOutput
- func (o WorkbookIdentityPtrOutput) ToWorkbookIdentityPtrOutputWithContext(ctx context.Context) WorkbookIdentityPtrOutput
- func (o WorkbookIdentityPtrOutput) Type() pulumi.StringPtrOutput
- type WorkbookInput
- type WorkbookMap
- type WorkbookMapInput
- type WorkbookMapOutput
- type WorkbookOutput
- func (o WorkbookOutput) Category() pulumi.StringPtrOutput
- func (o WorkbookOutput) DataJson() pulumi.StringOutput
- func (o WorkbookOutput) Description() pulumi.StringPtrOutput
- func (o WorkbookOutput) DisplayName() pulumi.StringOutput
- func (WorkbookOutput) ElementType() reflect.Type
- func (o WorkbookOutput) Identity() WorkbookIdentityPtrOutput
- func (o WorkbookOutput) Location() pulumi.StringOutput
- func (o WorkbookOutput) Name() pulumi.StringOutput
- func (o WorkbookOutput) ResourceGroupName() pulumi.StringOutput
- func (o WorkbookOutput) SourceId() pulumi.StringPtrOutput
- func (o WorkbookOutput) StorageContainerId() pulumi.StringPtrOutput
- func (o WorkbookOutput) Tags() pulumi.StringMapOutput
- func (o WorkbookOutput) ToWorkbookOutput() WorkbookOutput
- func (o WorkbookOutput) ToWorkbookOutputWithContext(ctx context.Context) WorkbookOutput
- type WorkbookState
- type WorkbookTemplate
- type WorkbookTemplateArgs
- type WorkbookTemplateArray
- type WorkbookTemplateArrayInput
- type WorkbookTemplateArrayOutput
- func (WorkbookTemplateArrayOutput) ElementType() reflect.Type
- func (o WorkbookTemplateArrayOutput) Index(i pulumi.IntInput) WorkbookTemplateOutput
- func (o WorkbookTemplateArrayOutput) ToWorkbookTemplateArrayOutput() WorkbookTemplateArrayOutput
- func (o WorkbookTemplateArrayOutput) ToWorkbookTemplateArrayOutputWithContext(ctx context.Context) WorkbookTemplateArrayOutput
- type WorkbookTemplateGallery
- type WorkbookTemplateGalleryArgs
- type WorkbookTemplateGalleryArray
- func (WorkbookTemplateGalleryArray) ElementType() reflect.Type
- func (i WorkbookTemplateGalleryArray) ToWorkbookTemplateGalleryArrayOutput() WorkbookTemplateGalleryArrayOutput
- func (i WorkbookTemplateGalleryArray) ToWorkbookTemplateGalleryArrayOutputWithContext(ctx context.Context) WorkbookTemplateGalleryArrayOutput
- type WorkbookTemplateGalleryArrayInput
- type WorkbookTemplateGalleryArrayOutput
- func (WorkbookTemplateGalleryArrayOutput) ElementType() reflect.Type
- func (o WorkbookTemplateGalleryArrayOutput) Index(i pulumi.IntInput) WorkbookTemplateGalleryOutput
- func (o WorkbookTemplateGalleryArrayOutput) ToWorkbookTemplateGalleryArrayOutput() WorkbookTemplateGalleryArrayOutput
- func (o WorkbookTemplateGalleryArrayOutput) ToWorkbookTemplateGalleryArrayOutputWithContext(ctx context.Context) WorkbookTemplateGalleryArrayOutput
- type WorkbookTemplateGalleryInput
- type WorkbookTemplateGalleryOutput
- func (o WorkbookTemplateGalleryOutput) Category() pulumi.StringOutput
- func (WorkbookTemplateGalleryOutput) ElementType() reflect.Type
- func (o WorkbookTemplateGalleryOutput) Name() pulumi.StringOutput
- func (o WorkbookTemplateGalleryOutput) Order() pulumi.IntPtrOutput
- func (o WorkbookTemplateGalleryOutput) ResourceType() pulumi.StringPtrOutput
- func (o WorkbookTemplateGalleryOutput) ToWorkbookTemplateGalleryOutput() WorkbookTemplateGalleryOutput
- func (o WorkbookTemplateGalleryOutput) ToWorkbookTemplateGalleryOutputWithContext(ctx context.Context) WorkbookTemplateGalleryOutput
- func (o WorkbookTemplateGalleryOutput) Type() pulumi.StringPtrOutput
- type WorkbookTemplateInput
- type WorkbookTemplateMap
- type WorkbookTemplateMapInput
- type WorkbookTemplateMapOutput
- func (WorkbookTemplateMapOutput) ElementType() reflect.Type
- func (o WorkbookTemplateMapOutput) MapIndex(k pulumi.StringInput) WorkbookTemplateOutput
- func (o WorkbookTemplateMapOutput) ToWorkbookTemplateMapOutput() WorkbookTemplateMapOutput
- func (o WorkbookTemplateMapOutput) ToWorkbookTemplateMapOutputWithContext(ctx context.Context) WorkbookTemplateMapOutput
- type WorkbookTemplateOutput
- func (o WorkbookTemplateOutput) Author() pulumi.StringPtrOutput
- func (WorkbookTemplateOutput) ElementType() reflect.Type
- func (o WorkbookTemplateOutput) Galleries() WorkbookTemplateGalleryArrayOutput
- func (o WorkbookTemplateOutput) Localized() pulumi.StringPtrOutput
- func (o WorkbookTemplateOutput) Location() pulumi.StringOutput
- func (o WorkbookTemplateOutput) Name() pulumi.StringOutput
- func (o WorkbookTemplateOutput) Priority() pulumi.IntPtrOutput
- func (o WorkbookTemplateOutput) ResourceGroupName() pulumi.StringOutput
- func (o WorkbookTemplateOutput) Tags() pulumi.StringMapOutput
- func (o WorkbookTemplateOutput) TemplateData() pulumi.StringOutput
- func (o WorkbookTemplateOutput) ToWorkbookTemplateOutput() WorkbookTemplateOutput
- func (o WorkbookTemplateOutput) ToWorkbookTemplateOutputWithContext(ctx context.Context) WorkbookTemplateOutput
- type WorkbookTemplateState
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/v5/go/azure/appinsights" "github.com/pulumi/pulumi-azure/sdk/v5/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 } _, 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/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 (o AnalyticsItemArrayOutput) Index(i pulumi.IntInput) AnalyticsItemOutput
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 (o AnalyticsItemMapOutput) MapIndex(k pulumi.StringInput) AnalyticsItemOutput
func (AnalyticsItemMapOutput) ToAnalyticsItemMapOutput ¶
func (o AnalyticsItemMapOutput) ToAnalyticsItemMapOutput() AnalyticsItemMapOutput
func (AnalyticsItemMapOutput) ToAnalyticsItemMapOutputWithContext ¶
func (o AnalyticsItemMapOutput) ToAnalyticsItemMapOutputWithContext(ctx context.Context) AnalyticsItemMapOutput
type AnalyticsItemOutput ¶
type AnalyticsItemOutput struct{ *pulumi.OutputState }
func (AnalyticsItemOutput) ApplicationInsightsId ¶ added in v5.5.0
func (o AnalyticsItemOutput) ApplicationInsightsId() pulumi.StringOutput
The ID of the Application Insights component on which the Analytics Item exists. Changing this forces a new resource to be created.
func (AnalyticsItemOutput) Content ¶ added in v5.5.0
func (o AnalyticsItemOutput) Content() pulumi.StringOutput
The content for the Analytics Item, for example the query text if `type` is `query`.
func (AnalyticsItemOutput) ElementType ¶
func (AnalyticsItemOutput) ElementType() reflect.Type
func (AnalyticsItemOutput) FunctionAlias ¶ added in v5.5.0
func (o AnalyticsItemOutput) FunctionAlias() pulumi.StringPtrOutput
The alias to use for the function. Required when `type` is `function`.
func (AnalyticsItemOutput) Name ¶ added in v5.5.0
func (o AnalyticsItemOutput) Name() pulumi.StringOutput
Specifies the name of the Application Insights Analytics Item. Changing this forces a new resource to be created.
func (AnalyticsItemOutput) Scope ¶ added in v5.5.0
func (o AnalyticsItemOutput) Scope() pulumi.StringOutput
The scope for the Analytics Item. Can be `shared` or `user`. Changing this forces a new resource to be created. Must be `shared` for functions.
func (AnalyticsItemOutput) TimeCreated ¶ added in v5.5.0
func (o AnalyticsItemOutput) TimeCreated() pulumi.StringOutput
A string containing the time the Analytics Item was created.
func (AnalyticsItemOutput) TimeModified ¶ added in v5.5.0
func (o AnalyticsItemOutput) TimeModified() pulumi.StringOutput
A string containing the time the Analytics Item was last modified.
func (AnalyticsItemOutput) ToAnalyticsItemOutput ¶
func (o AnalyticsItemOutput) ToAnalyticsItemOutput() AnalyticsItemOutput
func (AnalyticsItemOutput) ToAnalyticsItemOutputWithContext ¶
func (o AnalyticsItemOutput) ToAnalyticsItemOutputWithContext(ctx context.Context) AnalyticsItemOutput
func (AnalyticsItemOutput) Type ¶ added in v5.5.0
func (o AnalyticsItemOutput) Type() pulumi.StringOutput
The type of Analytics Item to create. Can be one of `query`, `function`, `folder`, `recent`. Changing this forces a new resource to be created.
func (AnalyticsItemOutput) Version ¶ added in v5.5.0
func (o AnalyticsItemOutput) Version() pulumi.StringOutput
A string indicating the version of the query format
type AnalyticsItemState ¶
type AnalyticsItemState struct { // The ID of the Application Insights component on which the Analytics Item exists. Changing this forces a new resource to be created. ApplicationInsightsId pulumi.StringPtrInput // The content for the Analytics Item, for example the query text if `type` is `query`. Content pulumi.StringPtrInput // The alias to use for the function. Required when `type` is `function`. FunctionAlias pulumi.StringPtrInput // Specifies the name of the Application Insights Analytics Item. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The scope for the Analytics Item. Can be `shared` or `user`. Changing this forces a new resource to be created. Must be `shared` for functions. Scope pulumi.StringPtrInput // A string containing the time the Analytics Item was created. TimeCreated pulumi.StringPtrInput // A string containing the time the Analytics Item was last modified. TimeModified pulumi.StringPtrInput // The type of Analytics Item to create. Can be one of `query`, `function`, `folder`, `recent`. Changing this forces a new resource to be created. Type pulumi.StringPtrInput // A string indicating the version of the query format Version pulumi.StringPtrInput }
func (AnalyticsItemState) ElementType ¶
func (AnalyticsItemState) ElementType() reflect.Type
type ApiKey ¶
type ApiKey struct { pulumi.CustomResourceState // The API Key secret (Sensitive). ApiKey pulumi.StringOutput `pulumi:"apiKey"` // The ID of the Application Insights component on which the API key operates. Changing this forces a new resource to be created. ApplicationInsightsId pulumi.StringOutput `pulumi:"applicationInsightsId"` // Specifies the name of the Application Insights API key. Changing this forces a // new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the list of read permissions granted to the API key. Valid values are `agentconfig`, `aggregate`, `api`, `draft`, `extendqueries`, `search`. Please note these values are case sensitive. Changing this forces a new resource to be created. ReadPermissions pulumi.StringArrayOutput `pulumi:"readPermissions"` // Specifies the list of write permissions granted to the API key. Valid values are `annotations`. Please note these values are case sensitive. Changing this forces a new resource to be created. WritePermissions pulumi.StringArrayOutput `pulumi:"writePermissions"` }
Manages an Application Insights API key.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appinsights" "github.com/pulumi/pulumi-azure/sdk/v5/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 } 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) 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 (o ApiKeyArrayOutput) Index(i pulumi.IntInput) ApiKeyOutput
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) 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 (o ApiKeyMapOutput) MapIndex(k pulumi.StringInput) ApiKeyOutput
func (ApiKeyMapOutput) ToApiKeyMapOutput ¶
func (o ApiKeyMapOutput) ToApiKeyMapOutput() ApiKeyMapOutput
func (ApiKeyMapOutput) ToApiKeyMapOutputWithContext ¶
func (o ApiKeyMapOutput) ToApiKeyMapOutputWithContext(ctx context.Context) ApiKeyMapOutput
type ApiKeyOutput ¶
type ApiKeyOutput struct{ *pulumi.OutputState }
func (ApiKeyOutput) ApiKey ¶ added in v5.5.0
func (o ApiKeyOutput) ApiKey() pulumi.StringOutput
The API Key secret (Sensitive).
func (ApiKeyOutput) ApplicationInsightsId ¶ added in v5.5.0
func (o ApiKeyOutput) ApplicationInsightsId() pulumi.StringOutput
The ID of the Application Insights component on which the API key operates. Changing this forces a new resource to be created.
func (ApiKeyOutput) ElementType ¶
func (ApiKeyOutput) ElementType() reflect.Type
func (ApiKeyOutput) Name ¶ added in v5.5.0
func (o ApiKeyOutput) Name() pulumi.StringOutput
Specifies the name of the Application Insights API key. Changing this forces a new resource to be created.
func (ApiKeyOutput) ReadPermissions ¶ added in v5.5.0
func (o ApiKeyOutput) ReadPermissions() pulumi.StringArrayOutput
Specifies the list of read permissions granted to the API key. Valid values are `agentconfig`, `aggregate`, `api`, `draft`, `extendqueries`, `search`. Please note these values are case sensitive. Changing this forces a new resource to be created.
func (ApiKeyOutput) ToApiKeyOutput ¶
func (o ApiKeyOutput) ToApiKeyOutput() ApiKeyOutput
func (ApiKeyOutput) ToApiKeyOutputWithContext ¶
func (o ApiKeyOutput) ToApiKeyOutputWithContext(ctx context.Context) ApiKeyOutput
func (ApiKeyOutput) WritePermissions ¶ added in v5.5.0
func (o ApiKeyOutput) WritePermissions() pulumi.StringArrayOutput
Specifies the list of write permissions granted to the API key. Valid values are `annotations`. Please note these values are case sensitive. Changing this forces a new resource to be created.
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. Changing this forces a new resource to be created. WorkspaceId pulumi.StringPtrOutput `pulumi:"workspaceId"` }
Manages an Application Insights component.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appinsights" "github.com/pulumi/pulumi-azure/sdk/v5/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/v5/go/azure/appinsights" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/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) 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. Changing this forces a new resource to be created. 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 (o InsightsArrayOutput) Index(i pulumi.IntInput) InsightsOutput
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 (o InsightsMapOutput) MapIndex(k pulumi.StringInput) InsightsOutput
func (InsightsMapOutput) ToInsightsMapOutput ¶
func (o InsightsMapOutput) ToInsightsMapOutput() InsightsMapOutput
func (InsightsMapOutput) ToInsightsMapOutputWithContext ¶
func (o InsightsMapOutput) ToInsightsMapOutputWithContext(ctx context.Context) InsightsMapOutput
type InsightsOutput ¶
type InsightsOutput struct{ *pulumi.OutputState }
func (InsightsOutput) AppId ¶ added in v5.5.0
func (o InsightsOutput) AppId() pulumi.StringOutput
The App ID associated with this Application Insights component.
func (InsightsOutput) ApplicationType ¶ added in v5.5.0
func (o InsightsOutput) ApplicationType() pulumi.StringOutput
Specifies the type of Application Insights to create. Valid values are `ios` for _iOS_, `java` for _Java web_, `MobileCenter` for _App Center_, `Node.JS` for _Node.js_, `other` for _General_, `phone` for _Windows Phone_, `store` for _Windows Store_ and `web` for _ASP.NET_. Please note these values are case sensitive; unmatched values are treated as _ASP.NET_ by Azure. Changing this forces a new resource to be created.
func (InsightsOutput) ConnectionString ¶ added in v5.5.0
func (o InsightsOutput) ConnectionString() pulumi.StringOutput
The Connection String for this Application Insights component. (Sensitive)
func (InsightsOutput) DailyDataCapInGb ¶ added in v5.5.0
func (o InsightsOutput) DailyDataCapInGb() pulumi.Float64Output
Specifies the Application Insights component daily data volume cap in GB.
func (InsightsOutput) DailyDataCapNotificationsDisabled ¶ added in v5.5.0
func (o InsightsOutput) DailyDataCapNotificationsDisabled() pulumi.BoolOutput
Specifies if a notification email will be send when the daily data volume cap is met.
func (InsightsOutput) DisableIpMasking ¶ added in v5.5.0
func (o InsightsOutput) DisableIpMasking() pulumi.BoolPtrOutput
By default the real client IP is masked as `0.0.0.0` in the logs. Use this argument to disable masking and log the real client IP. Defaults to `false`.
func (InsightsOutput) ElementType ¶
func (InsightsOutput) ElementType() reflect.Type
func (InsightsOutput) ForceCustomerStorageForProfiler ¶ added in v5.5.0
func (o InsightsOutput) ForceCustomerStorageForProfiler() pulumi.BoolPtrOutput
Should the Application Insights component force users to create their own storage account for profiling? Defaults to `false`.
func (InsightsOutput) InstrumentationKey ¶ added in v5.5.0
func (o InsightsOutput) InstrumentationKey() pulumi.StringOutput
The Instrumentation Key for this Application Insights component. (Sensitive)
func (InsightsOutput) InternetIngestionEnabled ¶ added in v5.5.0
func (o InsightsOutput) InternetIngestionEnabled() pulumi.BoolPtrOutput
func (InsightsOutput) InternetQueryEnabled ¶ added in v5.5.0
func (o InsightsOutput) InternetQueryEnabled() pulumi.BoolPtrOutput
Should the Application Insights component support querying over the Public Internet? Defaults to `true`.
func (InsightsOutput) LocalAuthenticationDisabled ¶ added in v5.5.0
func (o InsightsOutput) LocalAuthenticationDisabled() pulumi.BoolPtrOutput
Disable Non-Azure AD based Auth. Defaults to `false`.
func (InsightsOutput) Location ¶ added in v5.5.0
func (o InsightsOutput) Location() pulumi.StringOutput
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
func (InsightsOutput) Name ¶ added in v5.5.0
func (o InsightsOutput) Name() pulumi.StringOutput
Specifies the name of the Application Insights component. Changing this forces a new resource to be created.
func (InsightsOutput) ResourceGroupName ¶ added in v5.5.0
func (o InsightsOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group in which to create the Application Insights component.
func (InsightsOutput) RetentionInDays ¶ added in v5.5.0
func (o InsightsOutput) RetentionInDays() pulumi.IntPtrOutput
Specifies the retention period in days. Possible values are `30`, `60`, `90`, `120`, `180`, `270`, `365`, `550` or `730`. Defaults to `90`.
func (InsightsOutput) SamplingPercentage ¶ added in v5.5.0
func (o InsightsOutput) SamplingPercentage() pulumi.Float64PtrOutput
Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry.
func (InsightsOutput) Tags ¶ added in v5.5.0
func (o InsightsOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the resource.
func (InsightsOutput) ToInsightsOutput ¶
func (o InsightsOutput) ToInsightsOutput() InsightsOutput
func (InsightsOutput) ToInsightsOutputWithContext ¶
func (o InsightsOutput) ToInsightsOutputWithContext(ctx context.Context) InsightsOutput
func (InsightsOutput) WorkspaceId ¶ added in v5.5.0
func (o InsightsOutput) WorkspaceId() pulumi.StringPtrOutput
Specifies the id of a log analytics workspace resource. Changing this forces a new resource to be created.
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. Changing this forces a new resource to be created. WorkspaceId pulumi.StringPtrInput }
func (InsightsState) ElementType ¶
func (InsightsState) ElementType() reflect.Type
type LookupInsightsArgs ¶
type LookupInsightsArgs struct { // Specifies the name of the Application Insights component. Name string `pulumi:"name"` // Specifies the name of the resource group the Application Insights component is located in. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getInsights.
type LookupInsightsOutputArgs ¶
type LookupInsightsOutputArgs struct { // Specifies the name of the Application Insights component. Name pulumi.StringInput `pulumi:"name"` // Specifies the name of the resource group the Application Insights component is located in. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getInsights.
func (LookupInsightsOutputArgs) ElementType ¶
func (LookupInsightsOutputArgs) ElementType() reflect.Type
type LookupInsightsResult ¶
type LookupInsightsResult struct { // The App ID associated with this Application Insights component. AppId string `pulumi:"appId"` // The type of the component. ApplicationType string `pulumi:"applicationType"` // The connection string of the Application Insights component. (Sensitive) ConnectionString string `pulumi:"connectionString"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The instrumentation key of the Application Insights component. InstrumentationKey string `pulumi:"instrumentationKey"` // The Azure location where the component exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The retention period in days. RetentionInDays int `pulumi:"retentionInDays"` // Tags applied to the component. Tags map[string]string `pulumi:"tags"` // The id of the associated Log Analytics workspace WorkspaceId string `pulumi:"workspaceId"` }
A collection of values returned by getInsights.
func LookupInsights ¶
func LookupInsights(ctx *pulumi.Context, args *LookupInsightsArgs, opts ...pulumi.InvokeOption) (*LookupInsightsResult, error)
Use this data source to access information about an existing Application Insights component.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appinsights" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := appinsights.LookupInsights(ctx, &appinsights.LookupInsightsArgs{ Name: "production", ResourceGroupName: "networking", }, nil) if err != nil { return err } ctx.Export("applicationInsightsInstrumentationKey", example.InstrumentationKey) return nil }) }
```
type LookupInsightsResultOutput ¶
type LookupInsightsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getInsights.
func LookupInsightsOutput ¶
func LookupInsightsOutput(ctx *pulumi.Context, args LookupInsightsOutputArgs, opts ...pulumi.InvokeOption) LookupInsightsResultOutput
func (LookupInsightsResultOutput) AppId ¶
func (o LookupInsightsResultOutput) AppId() pulumi.StringOutput
The App ID associated with this Application Insights component.
func (LookupInsightsResultOutput) ApplicationType ¶
func (o LookupInsightsResultOutput) ApplicationType() pulumi.StringOutput
The type of the component.
func (LookupInsightsResultOutput) ConnectionString ¶
func (o LookupInsightsResultOutput) ConnectionString() pulumi.StringOutput
The connection string of the Application Insights component. (Sensitive)
func (LookupInsightsResultOutput) ElementType ¶
func (LookupInsightsResultOutput) ElementType() reflect.Type
func (LookupInsightsResultOutput) Id ¶
func (o LookupInsightsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupInsightsResultOutput) InstrumentationKey ¶
func (o LookupInsightsResultOutput) InstrumentationKey() pulumi.StringOutput
The instrumentation key of the Application Insights component.
func (LookupInsightsResultOutput) Location ¶
func (o LookupInsightsResultOutput) Location() pulumi.StringOutput
The Azure location where the component exists.
func (LookupInsightsResultOutput) Name ¶
func (o LookupInsightsResultOutput) Name() pulumi.StringOutput
func (LookupInsightsResultOutput) ResourceGroupName ¶
func (o LookupInsightsResultOutput) ResourceGroupName() pulumi.StringOutput
func (LookupInsightsResultOutput) RetentionInDays ¶
func (o LookupInsightsResultOutput) RetentionInDays() pulumi.IntOutput
The retention period in days.
func (LookupInsightsResultOutput) Tags ¶
func (o LookupInsightsResultOutput) Tags() pulumi.StringMapOutput
Tags applied to the component.
func (LookupInsightsResultOutput) ToLookupInsightsResultOutput ¶
func (o LookupInsightsResultOutput) ToLookupInsightsResultOutput() LookupInsightsResultOutput
func (LookupInsightsResultOutput) ToLookupInsightsResultOutputWithContext ¶
func (o LookupInsightsResultOutput) ToLookupInsightsResultOutputWithContext(ctx context.Context) LookupInsightsResultOutput
func (LookupInsightsResultOutput) WorkspaceId ¶
func (o LookupInsightsResultOutput) WorkspaceId() pulumi.StringOutput
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/v5/go/azure/appinsights" "github.com/pulumi/pulumi-azure/sdk/v5/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 } _, 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) ElementType() reflect.Type
func (SmartDetectionRuleArrayOutput) Index ¶
func (o SmartDetectionRuleArrayOutput) Index(i pulumi.IntInput) SmartDetectionRuleOutput
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) ElementType() reflect.Type
func (SmartDetectionRuleMapOutput) MapIndex ¶
func (o SmartDetectionRuleMapOutput) MapIndex(k pulumi.StringInput) SmartDetectionRuleOutput
func (SmartDetectionRuleMapOutput) ToSmartDetectionRuleMapOutput ¶
func (o SmartDetectionRuleMapOutput) ToSmartDetectionRuleMapOutput() SmartDetectionRuleMapOutput
func (SmartDetectionRuleMapOutput) ToSmartDetectionRuleMapOutputWithContext ¶
func (o SmartDetectionRuleMapOutput) ToSmartDetectionRuleMapOutputWithContext(ctx context.Context) SmartDetectionRuleMapOutput
type SmartDetectionRuleOutput ¶
type SmartDetectionRuleOutput struct{ *pulumi.OutputState }
func (SmartDetectionRuleOutput) AdditionalEmailRecipients ¶ added in v5.5.0
func (o SmartDetectionRuleOutput) AdditionalEmailRecipients() pulumi.StringArrayOutput
Specifies a list of additional recipients that will be sent emails on this Application Insights Smart Detection Rule.
func (SmartDetectionRuleOutput) ApplicationInsightsId ¶ added in v5.5.0
func (o SmartDetectionRuleOutput) ApplicationInsightsId() pulumi.StringOutput
The ID of the Application Insights component on which the Smart Detection Rule operates. Changing this forces a new resource to be created.
func (SmartDetectionRuleOutput) ElementType ¶
func (SmartDetectionRuleOutput) ElementType() reflect.Type
func (SmartDetectionRuleOutput) Enabled ¶ added in v5.5.0
func (o SmartDetectionRuleOutput) Enabled() pulumi.BoolPtrOutput
Is the Application Insights Smart Detection Rule enabled? Defaults to `true`.
func (SmartDetectionRuleOutput) Name ¶ added in v5.5.0
func (o SmartDetectionRuleOutput) Name() pulumi.StringOutput
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.
func (SmartDetectionRuleOutput) SendEmailsToSubscriptionOwners ¶ added in v5.5.0
func (o SmartDetectionRuleOutput) SendEmailsToSubscriptionOwners() pulumi.BoolPtrOutput
Do emails get sent to subscription owners? Defaults to `true`.
func (SmartDetectionRuleOutput) ToSmartDetectionRuleOutput ¶
func (o SmartDetectionRuleOutput) ToSmartDetectionRuleOutput() SmartDetectionRuleOutput
func (SmartDetectionRuleOutput) ToSmartDetectionRuleOutputWithContext ¶
func (o SmartDetectionRuleOutput) ToSmartDetectionRuleOutputWithContext(ctx context.Context) SmartDetectionRuleOutput
type SmartDetectionRuleState ¶
type SmartDetectionRuleState struct { // Specifies a list of additional recipients that will be sent emails on this Application Insights Smart Detection Rule. 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/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/v5/go/azure/appinsights" "github.com/pulumi/pulumi-azure/sdk/v5/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 } 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("<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) ToWebTestOutput ¶
func (i *WebTest) ToWebTestOutput() WebTestOutput
func (*WebTest) ToWebTestOutputWithContext ¶
func (i *WebTest) ToWebTestOutputWithContext(ctx context.Context) WebTestOutput
type WebTestArgs ¶
type WebTestArgs struct { // The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created. ApplicationInsightsId pulumi.StringInput // An XML configuration specification for a WebTest ([see here for more information](https://docs.microsoft.com/rest/api/application-insights/webtests/createorupdate/)). Configuration pulumi.StringInput // Purpose/user defined descriptive test for this WebTest. Description pulumi.StringPtrInput // Is the test actively being monitored. Enabled pulumi.BoolPtrInput // Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`. Frequency pulumi.IntPtrInput // A list of where to physically run the tests from to give global coverage for accessibility of your application. 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 (o WebTestArrayOutput) Index(i pulumi.IntInput) WebTestOutput
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 (o WebTestMapOutput) MapIndex(k pulumi.StringInput) WebTestOutput
func (WebTestMapOutput) ToWebTestMapOutput ¶
func (o WebTestMapOutput) ToWebTestMapOutput() WebTestMapOutput
func (WebTestMapOutput) ToWebTestMapOutputWithContext ¶
func (o WebTestMapOutput) ToWebTestMapOutputWithContext(ctx context.Context) WebTestMapOutput
type WebTestOutput ¶
type WebTestOutput struct{ *pulumi.OutputState }
func (WebTestOutput) ApplicationInsightsId ¶ added in v5.5.0
func (o WebTestOutput) ApplicationInsightsId() pulumi.StringOutput
The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created.
func (WebTestOutput) Configuration ¶ added in v5.5.0
func (o WebTestOutput) Configuration() pulumi.StringOutput
An XML configuration specification for a WebTest ([see here for more information](https://docs.microsoft.com/rest/api/application-insights/webtests/createorupdate/)).
func (WebTestOutput) Description ¶ added in v5.5.0
func (o WebTestOutput) Description() pulumi.StringPtrOutput
Purpose/user defined descriptive test for this WebTest.
func (WebTestOutput) ElementType ¶
func (WebTestOutput) ElementType() reflect.Type
func (WebTestOutput) Enabled ¶ added in v5.5.0
func (o WebTestOutput) Enabled() pulumi.BoolPtrOutput
Is the test actively being monitored.
func (WebTestOutput) Frequency ¶ added in v5.5.0
func (o WebTestOutput) Frequency() pulumi.IntPtrOutput
Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`.
func (WebTestOutput) GeoLocations ¶ added in v5.5.0
func (o WebTestOutput) GeoLocations() pulumi.StringArrayOutput
A list of where to physically run the tests from to give global coverage for accessibility of your application.
func (WebTestOutput) Kind ¶ added in v5.5.0
func (o WebTestOutput) Kind() pulumi.StringOutput
= (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.
func (WebTestOutput) Location ¶ added in v5.5.0
func (o WebTestOutput) Location() pulumi.StringOutput
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. It needs to correlate with location of parent resource (azurerm_application_insights).
func (WebTestOutput) Name ¶ added in v5.5.0
func (o WebTestOutput) Name() pulumi.StringOutput
Specifies the name of the Application Insights WebTest. Changing this forces a new resource to be created.
func (WebTestOutput) ResourceGroupName ¶ added in v5.5.0
func (o WebTestOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group in which to create the Application Insights WebTest. Changing this forces a new resource
func (WebTestOutput) RetryEnabled ¶ added in v5.5.0
func (o WebTestOutput) RetryEnabled() pulumi.BoolPtrOutput
Allow for retries should this WebTest fail.
func (WebTestOutput) SyntheticMonitorId ¶ added in v5.5.0
func (o WebTestOutput) SyntheticMonitorId() pulumi.StringOutput
func (WebTestOutput) Tags ¶ added in v5.5.0
func (o WebTestOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the resource.
func (WebTestOutput) Timeout ¶ added in v5.5.0
func (o WebTestOutput) Timeout() pulumi.IntPtrOutput
Seconds until this WebTest will timeout and fail. Default is `30`.
func (WebTestOutput) ToWebTestOutput ¶
func (o WebTestOutput) ToWebTestOutput() WebTestOutput
func (WebTestOutput) ToWebTestOutputWithContext ¶
func (o WebTestOutput) ToWebTestOutputWithContext(ctx context.Context) WebTestOutput
type WebTestState ¶
type WebTestState struct { // The ID of the Application Insights component on which the WebTest operates. Changing this forces a new resource to be created. ApplicationInsightsId pulumi.StringPtrInput // An XML configuration specification for a WebTest ([see here for more information](https://docs.microsoft.com/rest/api/application-insights/webtests/createorupdate/)). Configuration pulumi.StringPtrInput // Purpose/user defined descriptive test for this WebTest. Description pulumi.StringPtrInput // Is the test actively being monitored. Enabled pulumi.BoolPtrInput // Interval in seconds between test runs for this WebTest. Valid options are `300`, `600` and `900`. Defaults to `300`. Frequency pulumi.IntPtrInput // A list of where to physically run the tests from to give global coverage for accessibility of your application. 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
type Workbook ¶ added in v5.14.0
type Workbook struct { pulumi.CustomResourceState // Workbook category, as defined by the user at creation time. There may be additional category types beyond the following: `workbook`, `sentinel`. Defaults to `workbook`. Category pulumi.StringPtrOutput `pulumi:"category"` // Configuration of this particular workbook. Configuration data is a string containing valid JSON. DataJson pulumi.StringOutput `pulumi:"dataJson"` // Specifies the description of the workbook. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies the user-defined name (display name) of the workbook. DisplayName pulumi.StringOutput `pulumi:"displayName"` // An `identity` block as defined below. Changing this forces a new Workbook to be created. Identity WorkbookIdentityPtrOutput `pulumi:"identity"` // Specifies the Azure Region where the Workbook should exist. Changing this forces a new Workbook to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name of this Workbook as a UUID/GUID. It should not contain any uppercase letters. Changing this forces a new Workbook to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies the name of the Resource Group where the Workbook should exist. Changing this forces a new Workbook to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Resource ID for a source resource. It should not contain any uppercase letters. Defaults to `azure monitor`. SourceId pulumi.StringPtrOutput `pulumi:"sourceId"` // Specifies the Resource Manager ID of the Storage Container when bring your own storage is used. Changing this forces a new Workbook to be created. StorageContainerId pulumi.StringPtrOutput `pulumi:"storageContainerId"` // A mapping of tags which should be assigned to the Workbook. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Manages an Azure Workbook.
## Example Usage
```go package main
import (
"encoding/json" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appinsights" "github.com/pulumi/pulumi-azure/sdk/v5/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 } tmpJSON0, err := json.Marshal(map[string]interface{}{ "version": "Notebook/1.0", "items": []map[string]interface{}{ map[string]interface{}{ "type": 1, "content": map[string]interface{}{ "json": "Test2022", }, "name": "text - 0", }, }, "isLocked": false, "fallbackResourceIds": []string{ "Azure Monitor", }, }) if err != nil { return err } json0 := string(tmpJSON0) _, err = appinsights.NewWorkbook(ctx, "exampleWorkbook", &appinsights.WorkbookArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, DisplayName: pulumi.String("workbook1"), DataJson: pulumi.String(json0), Tags: pulumi.StringMap{ "ENV": pulumi.String("Test"), }, }) if err != nil { return err } return nil }) }
```
## Import
Workbooks can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:appinsights/workbook:Workbook example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Insights/workbooks/resource1
```
func GetWorkbook ¶ added in v5.14.0
func GetWorkbook(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WorkbookState, opts ...pulumi.ResourceOption) (*Workbook, error)
GetWorkbook gets an existing Workbook resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewWorkbook ¶ added in v5.14.0
func NewWorkbook(ctx *pulumi.Context, name string, args *WorkbookArgs, opts ...pulumi.ResourceOption) (*Workbook, error)
NewWorkbook registers a new resource with the given unique name, arguments, and options.
func (*Workbook) ElementType ¶ added in v5.14.0
func (*Workbook) ToWorkbookOutput ¶ added in v5.14.0
func (i *Workbook) ToWorkbookOutput() WorkbookOutput
func (*Workbook) ToWorkbookOutputWithContext ¶ added in v5.14.0
func (i *Workbook) ToWorkbookOutputWithContext(ctx context.Context) WorkbookOutput
type WorkbookArgs ¶ added in v5.14.0
type WorkbookArgs struct { // Workbook category, as defined by the user at creation time. There may be additional category types beyond the following: `workbook`, `sentinel`. Defaults to `workbook`. Category pulumi.StringPtrInput // Configuration of this particular workbook. Configuration data is a string containing valid JSON. DataJson pulumi.StringInput // Specifies the description of the workbook. Description pulumi.StringPtrInput // Specifies the user-defined name (display name) of the workbook. DisplayName pulumi.StringInput // An `identity` block as defined below. Changing this forces a new Workbook to be created. Identity WorkbookIdentityPtrInput // Specifies the Azure Region where the Workbook should exist. Changing this forces a new Workbook to be created. Location pulumi.StringPtrInput // Specifies the name of this Workbook as a UUID/GUID. It should not contain any uppercase letters. Changing this forces a new Workbook to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group where the Workbook should exist. Changing this forces a new Workbook to be created. ResourceGroupName pulumi.StringInput // Resource ID for a source resource. It should not contain any uppercase letters. Defaults to `azure monitor`. SourceId pulumi.StringPtrInput // Specifies the Resource Manager ID of the Storage Container when bring your own storage is used. Changing this forces a new Workbook to be created. StorageContainerId pulumi.StringPtrInput // A mapping of tags which should be assigned to the Workbook. Tags pulumi.StringMapInput }
The set of arguments for constructing a Workbook resource.
func (WorkbookArgs) ElementType ¶ added in v5.14.0
func (WorkbookArgs) ElementType() reflect.Type
type WorkbookArray ¶ added in v5.14.0
type WorkbookArray []WorkbookInput
func (WorkbookArray) ElementType ¶ added in v5.14.0
func (WorkbookArray) ElementType() reflect.Type
func (WorkbookArray) ToWorkbookArrayOutput ¶ added in v5.14.0
func (i WorkbookArray) ToWorkbookArrayOutput() WorkbookArrayOutput
func (WorkbookArray) ToWorkbookArrayOutputWithContext ¶ added in v5.14.0
func (i WorkbookArray) ToWorkbookArrayOutputWithContext(ctx context.Context) WorkbookArrayOutput
type WorkbookArrayInput ¶ added in v5.14.0
type WorkbookArrayInput interface { pulumi.Input ToWorkbookArrayOutput() WorkbookArrayOutput ToWorkbookArrayOutputWithContext(context.Context) WorkbookArrayOutput }
WorkbookArrayInput is an input type that accepts WorkbookArray and WorkbookArrayOutput values. You can construct a concrete instance of `WorkbookArrayInput` via:
WorkbookArray{ WorkbookArgs{...} }
type WorkbookArrayOutput ¶ added in v5.14.0
type WorkbookArrayOutput struct{ *pulumi.OutputState }
func (WorkbookArrayOutput) ElementType ¶ added in v5.14.0
func (WorkbookArrayOutput) ElementType() reflect.Type
func (WorkbookArrayOutput) Index ¶ added in v5.14.0
func (o WorkbookArrayOutput) Index(i pulumi.IntInput) WorkbookOutput
func (WorkbookArrayOutput) ToWorkbookArrayOutput ¶ added in v5.14.0
func (o WorkbookArrayOutput) ToWorkbookArrayOutput() WorkbookArrayOutput
func (WorkbookArrayOutput) ToWorkbookArrayOutputWithContext ¶ added in v5.14.0
func (o WorkbookArrayOutput) ToWorkbookArrayOutputWithContext(ctx context.Context) WorkbookArrayOutput
type WorkbookIdentity ¶ added in v5.14.0
type WorkbookIdentity struct { // The list of User Assigned Managed Identity IDs assigned to this Workbook. IdentityIds []string `pulumi:"identityIds"` // The Principal ID of the System Assigned Managed Service Identity that is configured on this Workbook. PrincipalId *string `pulumi:"principalId"` // The Tenant ID of the System Assigned Managed Service Identity that is configured on this Workbook. TenantId *string `pulumi:"tenantId"` // The type of Managed Service Identity that is configured on this Workbook. Type string `pulumi:"type"` }
type WorkbookIdentityArgs ¶ added in v5.14.0
type WorkbookIdentityArgs struct { // The list of User Assigned Managed Identity IDs assigned to this Workbook. IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"` // The Principal ID of the System Assigned Managed Service Identity that is configured on this Workbook. PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` // The Tenant ID of the System Assigned Managed Service Identity that is configured on this Workbook. TenantId pulumi.StringPtrInput `pulumi:"tenantId"` // The type of Managed Service Identity that is configured on this Workbook. Type pulumi.StringInput `pulumi:"type"` }
func (WorkbookIdentityArgs) ElementType ¶ added in v5.14.0
func (WorkbookIdentityArgs) ElementType() reflect.Type
func (WorkbookIdentityArgs) ToWorkbookIdentityOutput ¶ added in v5.14.0
func (i WorkbookIdentityArgs) ToWorkbookIdentityOutput() WorkbookIdentityOutput
func (WorkbookIdentityArgs) ToWorkbookIdentityOutputWithContext ¶ added in v5.14.0
func (i WorkbookIdentityArgs) ToWorkbookIdentityOutputWithContext(ctx context.Context) WorkbookIdentityOutput
func (WorkbookIdentityArgs) ToWorkbookIdentityPtrOutput ¶ added in v5.14.0
func (i WorkbookIdentityArgs) ToWorkbookIdentityPtrOutput() WorkbookIdentityPtrOutput
func (WorkbookIdentityArgs) ToWorkbookIdentityPtrOutputWithContext ¶ added in v5.14.0
func (i WorkbookIdentityArgs) ToWorkbookIdentityPtrOutputWithContext(ctx context.Context) WorkbookIdentityPtrOutput
type WorkbookIdentityInput ¶ added in v5.14.0
type WorkbookIdentityInput interface { pulumi.Input ToWorkbookIdentityOutput() WorkbookIdentityOutput ToWorkbookIdentityOutputWithContext(context.Context) WorkbookIdentityOutput }
WorkbookIdentityInput is an input type that accepts WorkbookIdentityArgs and WorkbookIdentityOutput values. You can construct a concrete instance of `WorkbookIdentityInput` via:
WorkbookIdentityArgs{...}
type WorkbookIdentityOutput ¶ added in v5.14.0
type WorkbookIdentityOutput struct{ *pulumi.OutputState }
func (WorkbookIdentityOutput) ElementType ¶ added in v5.14.0
func (WorkbookIdentityOutput) ElementType() reflect.Type
func (WorkbookIdentityOutput) IdentityIds ¶ added in v5.14.0
func (o WorkbookIdentityOutput) IdentityIds() pulumi.StringArrayOutput
The list of User Assigned Managed Identity IDs assigned to this Workbook.
func (WorkbookIdentityOutput) PrincipalId ¶ added in v5.14.0
func (o WorkbookIdentityOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID of the System Assigned Managed Service Identity that is configured on this Workbook.
func (WorkbookIdentityOutput) TenantId ¶ added in v5.14.0
func (o WorkbookIdentityOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID of the System Assigned Managed Service Identity that is configured on this Workbook.
func (WorkbookIdentityOutput) ToWorkbookIdentityOutput ¶ added in v5.14.0
func (o WorkbookIdentityOutput) ToWorkbookIdentityOutput() WorkbookIdentityOutput
func (WorkbookIdentityOutput) ToWorkbookIdentityOutputWithContext ¶ added in v5.14.0
func (o WorkbookIdentityOutput) ToWorkbookIdentityOutputWithContext(ctx context.Context) WorkbookIdentityOutput
func (WorkbookIdentityOutput) ToWorkbookIdentityPtrOutput ¶ added in v5.14.0
func (o WorkbookIdentityOutput) ToWorkbookIdentityPtrOutput() WorkbookIdentityPtrOutput
func (WorkbookIdentityOutput) ToWorkbookIdentityPtrOutputWithContext ¶ added in v5.14.0
func (o WorkbookIdentityOutput) ToWorkbookIdentityPtrOutputWithContext(ctx context.Context) WorkbookIdentityPtrOutput
func (WorkbookIdentityOutput) Type ¶ added in v5.14.0
func (o WorkbookIdentityOutput) Type() pulumi.StringOutput
The type of Managed Service Identity that is configured on this Workbook.
type WorkbookIdentityPtrInput ¶ added in v5.14.0
type WorkbookIdentityPtrInput interface { pulumi.Input ToWorkbookIdentityPtrOutput() WorkbookIdentityPtrOutput ToWorkbookIdentityPtrOutputWithContext(context.Context) WorkbookIdentityPtrOutput }
WorkbookIdentityPtrInput is an input type that accepts WorkbookIdentityArgs, WorkbookIdentityPtr and WorkbookIdentityPtrOutput values. You can construct a concrete instance of `WorkbookIdentityPtrInput` via:
WorkbookIdentityArgs{...} or: nil
func WorkbookIdentityPtr ¶ added in v5.14.0
func WorkbookIdentityPtr(v *WorkbookIdentityArgs) WorkbookIdentityPtrInput
type WorkbookIdentityPtrOutput ¶ added in v5.14.0
type WorkbookIdentityPtrOutput struct{ *pulumi.OutputState }
func (WorkbookIdentityPtrOutput) Elem ¶ added in v5.14.0
func (o WorkbookIdentityPtrOutput) Elem() WorkbookIdentityOutput
func (WorkbookIdentityPtrOutput) ElementType ¶ added in v5.14.0
func (WorkbookIdentityPtrOutput) ElementType() reflect.Type
func (WorkbookIdentityPtrOutput) IdentityIds ¶ added in v5.14.0
func (o WorkbookIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput
The list of User Assigned Managed Identity IDs assigned to this Workbook.
func (WorkbookIdentityPtrOutput) PrincipalId ¶ added in v5.14.0
func (o WorkbookIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID of the System Assigned Managed Service Identity that is configured on this Workbook.
func (WorkbookIdentityPtrOutput) TenantId ¶ added in v5.14.0
func (o WorkbookIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID of the System Assigned Managed Service Identity that is configured on this Workbook.
func (WorkbookIdentityPtrOutput) ToWorkbookIdentityPtrOutput ¶ added in v5.14.0
func (o WorkbookIdentityPtrOutput) ToWorkbookIdentityPtrOutput() WorkbookIdentityPtrOutput
func (WorkbookIdentityPtrOutput) ToWorkbookIdentityPtrOutputWithContext ¶ added in v5.14.0
func (o WorkbookIdentityPtrOutput) ToWorkbookIdentityPtrOutputWithContext(ctx context.Context) WorkbookIdentityPtrOutput
func (WorkbookIdentityPtrOutput) Type ¶ added in v5.14.0
func (o WorkbookIdentityPtrOutput) Type() pulumi.StringPtrOutput
The type of Managed Service Identity that is configured on this Workbook.
type WorkbookInput ¶ added in v5.14.0
type WorkbookInput interface { pulumi.Input ToWorkbookOutput() WorkbookOutput ToWorkbookOutputWithContext(ctx context.Context) WorkbookOutput }
type WorkbookMap ¶ added in v5.14.0
type WorkbookMap map[string]WorkbookInput
func (WorkbookMap) ElementType ¶ added in v5.14.0
func (WorkbookMap) ElementType() reflect.Type
func (WorkbookMap) ToWorkbookMapOutput ¶ added in v5.14.0
func (i WorkbookMap) ToWorkbookMapOutput() WorkbookMapOutput
func (WorkbookMap) ToWorkbookMapOutputWithContext ¶ added in v5.14.0
func (i WorkbookMap) ToWorkbookMapOutputWithContext(ctx context.Context) WorkbookMapOutput
type WorkbookMapInput ¶ added in v5.14.0
type WorkbookMapInput interface { pulumi.Input ToWorkbookMapOutput() WorkbookMapOutput ToWorkbookMapOutputWithContext(context.Context) WorkbookMapOutput }
WorkbookMapInput is an input type that accepts WorkbookMap and WorkbookMapOutput values. You can construct a concrete instance of `WorkbookMapInput` via:
WorkbookMap{ "key": WorkbookArgs{...} }
type WorkbookMapOutput ¶ added in v5.14.0
type WorkbookMapOutput struct{ *pulumi.OutputState }
func (WorkbookMapOutput) ElementType ¶ added in v5.14.0
func (WorkbookMapOutput) ElementType() reflect.Type
func (WorkbookMapOutput) MapIndex ¶ added in v5.14.0
func (o WorkbookMapOutput) MapIndex(k pulumi.StringInput) WorkbookOutput
func (WorkbookMapOutput) ToWorkbookMapOutput ¶ added in v5.14.0
func (o WorkbookMapOutput) ToWorkbookMapOutput() WorkbookMapOutput
func (WorkbookMapOutput) ToWorkbookMapOutputWithContext ¶ added in v5.14.0
func (o WorkbookMapOutput) ToWorkbookMapOutputWithContext(ctx context.Context) WorkbookMapOutput
type WorkbookOutput ¶ added in v5.14.0
type WorkbookOutput struct{ *pulumi.OutputState }
func (WorkbookOutput) Category ¶ added in v5.14.0
func (o WorkbookOutput) Category() pulumi.StringPtrOutput
Workbook category, as defined by the user at creation time. There may be additional category types beyond the following: `workbook`, `sentinel`. Defaults to `workbook`.
func (WorkbookOutput) DataJson ¶ added in v5.14.0
func (o WorkbookOutput) DataJson() pulumi.StringOutput
Configuration of this particular workbook. Configuration data is a string containing valid JSON.
func (WorkbookOutput) Description ¶ added in v5.14.0
func (o WorkbookOutput) Description() pulumi.StringPtrOutput
Specifies the description of the workbook.
func (WorkbookOutput) DisplayName ¶ added in v5.14.0
func (o WorkbookOutput) DisplayName() pulumi.StringOutput
Specifies the user-defined name (display name) of the workbook.
func (WorkbookOutput) ElementType ¶ added in v5.14.0
func (WorkbookOutput) ElementType() reflect.Type
func (WorkbookOutput) Identity ¶ added in v5.14.0
func (o WorkbookOutput) Identity() WorkbookIdentityPtrOutput
An `identity` block as defined below. Changing this forces a new Workbook to be created.
func (WorkbookOutput) Location ¶ added in v5.14.0
func (o WorkbookOutput) Location() pulumi.StringOutput
Specifies the Azure Region where the Workbook should exist. Changing this forces a new Workbook to be created.
func (WorkbookOutput) Name ¶ added in v5.14.0
func (o WorkbookOutput) Name() pulumi.StringOutput
Specifies the name of this Workbook as a UUID/GUID. It should not contain any uppercase letters. Changing this forces a new Workbook to be created.
func (WorkbookOutput) ResourceGroupName ¶ added in v5.14.0
func (o WorkbookOutput) ResourceGroupName() pulumi.StringOutput
Specifies the name of the Resource Group where the Workbook should exist. Changing this forces a new Workbook to be created.
func (WorkbookOutput) SourceId ¶ added in v5.14.0
func (o WorkbookOutput) SourceId() pulumi.StringPtrOutput
Resource ID for a source resource. It should not contain any uppercase letters. Defaults to `azure monitor`.
func (WorkbookOutput) StorageContainerId ¶ added in v5.14.0
func (o WorkbookOutput) StorageContainerId() pulumi.StringPtrOutput
Specifies the Resource Manager ID of the Storage Container when bring your own storage is used. Changing this forces a new Workbook to be created.
func (WorkbookOutput) Tags ¶ added in v5.14.0
func (o WorkbookOutput) Tags() pulumi.StringMapOutput
A mapping of tags which should be assigned to the Workbook.
func (WorkbookOutput) ToWorkbookOutput ¶ added in v5.14.0
func (o WorkbookOutput) ToWorkbookOutput() WorkbookOutput
func (WorkbookOutput) ToWorkbookOutputWithContext ¶ added in v5.14.0
func (o WorkbookOutput) ToWorkbookOutputWithContext(ctx context.Context) WorkbookOutput
type WorkbookState ¶ added in v5.14.0
type WorkbookState struct { // Workbook category, as defined by the user at creation time. There may be additional category types beyond the following: `workbook`, `sentinel`. Defaults to `workbook`. Category pulumi.StringPtrInput // Configuration of this particular workbook. Configuration data is a string containing valid JSON. DataJson pulumi.StringPtrInput // Specifies the description of the workbook. Description pulumi.StringPtrInput // Specifies the user-defined name (display name) of the workbook. DisplayName pulumi.StringPtrInput // An `identity` block as defined below. Changing this forces a new Workbook to be created. Identity WorkbookIdentityPtrInput // Specifies the Azure Region where the Workbook should exist. Changing this forces a new Workbook to be created. Location pulumi.StringPtrInput // Specifies the name of this Workbook as a UUID/GUID. It should not contain any uppercase letters. Changing this forces a new Workbook to be created. Name pulumi.StringPtrInput // Specifies the name of the Resource Group where the Workbook should exist. Changing this forces a new Workbook to be created. ResourceGroupName pulumi.StringPtrInput // Resource ID for a source resource. It should not contain any uppercase letters. Defaults to `azure monitor`. SourceId pulumi.StringPtrInput // Specifies the Resource Manager ID of the Storage Container when bring your own storage is used. Changing this forces a new Workbook to be created. StorageContainerId pulumi.StringPtrInput // A mapping of tags which should be assigned to the Workbook. Tags pulumi.StringMapInput }
func (WorkbookState) ElementType ¶ added in v5.14.0
func (WorkbookState) ElementType() reflect.Type
type WorkbookTemplate ¶ added in v5.13.0
type WorkbookTemplate struct { pulumi.CustomResourceState // Information about the author of the workbook template. Author pulumi.StringPtrOutput `pulumi:"author"` // A `galleries` block as defined below. Galleries WorkbookTemplateGalleryArrayOutput `pulumi:"galleries"` // Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal. Localized pulumi.StringPtrOutput `pulumi:"localized"` // Specifies the Azure Region where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created. Location pulumi.StringOutput `pulumi:"location"` // Specifies the name which should be used for this Application Insights Workbook Template. Changing this forces a new Application Insights Workbook Template to be created. Name pulumi.StringOutput `pulumi:"name"` // Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`. Priority pulumi.IntPtrOutput `pulumi:"priority"` // Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags which should be assigned to the Application Insights Workbook Template. Tags pulumi.StringMapOutput `pulumi:"tags"` // Valid JSON object containing workbook template payload. TemplateData pulumi.StringOutput `pulumi:"templateData"` }
Manages an Application Insights Workbook Template.
## Example Usage
```go package main
import (
"encoding/json" "fmt" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appinsights" "github.com/pulumi/pulumi-azure/sdk/v5/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 } tmpJSON0, err := json.Marshal(map[string]string{ "version": "Notebook/1.0", "items": []map[string]interface{}{ map[string]interface{}{ "type": 1, "content": map[string]interface{}{ "json": "## New workbook\n---\n\nWelcome to your new workbook.", }, "name": "text - 2", }, }, "styleSettings": nil, fmt.Sprintf("$schema"): "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json", }) if err != nil { return err } json0 := string(tmpJSON0) tmpJSON1, err := json.Marshal(map[string]interface{}{ "ar": []map[string]interface{}{ map[string]interface{}{ "galleries": []map[string]interface{}{ map[string]interface{}{ "name": "test", "category": "Failures", "type": "tsg", "resourceType": "microsoft.insights/components", "order": 100, }, }, "templateData": map[string]string{ "version": "Notebook/1.0", "items": []map[string]interface{}{ map[string]interface{}{ "type": 1, "content": map[string]interface{}{ "json": "## New workbook\n---\n\nWelcome to your new workbook.", }, "name": "text - 2", }, }, "styleSettings": nil, fmt.Sprintf("$schema"): "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json", }, }, }, }) if err != nil { return err } json1 := string(tmpJSON1) _, err = appinsights.NewWorkbookTemplate(ctx, "exampleWorkbookTemplate", &appinsights.WorkbookTemplateArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: pulumi.String("West Europe"), Author: pulumi.String("test author"), Priority: pulumi.Int(1), Galleries: appinsights.WorkbookTemplateGalleryArray{ &appinsights.WorkbookTemplateGalleryArgs{ Category: pulumi.String("workbook"), Name: pulumi.String("test"), Order: pulumi.Int(100), ResourceType: pulumi.String("microsoft.insights/components"), Type: pulumi.String("tsg"), }, }, TemplateData: pulumi.String(json0), Localized: pulumi.String(json1), Tags: pulumi.StringMap{ "key": pulumi.String("value"), }, }) if err != nil { return err } return nil }) }
```
## Import
Application Insights Workbook Template can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:appinsights/workbookTemplate:WorkbookTemplate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Insights/workbooktemplates/resource1
```
func GetWorkbookTemplate ¶ added in v5.13.0
func GetWorkbookTemplate(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WorkbookTemplateState, opts ...pulumi.ResourceOption) (*WorkbookTemplate, error)
GetWorkbookTemplate gets an existing WorkbookTemplate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewWorkbookTemplate ¶ added in v5.13.0
func NewWorkbookTemplate(ctx *pulumi.Context, name string, args *WorkbookTemplateArgs, opts ...pulumi.ResourceOption) (*WorkbookTemplate, error)
NewWorkbookTemplate registers a new resource with the given unique name, arguments, and options.
func (*WorkbookTemplate) ElementType ¶ added in v5.13.0
func (*WorkbookTemplate) ElementType() reflect.Type
func (*WorkbookTemplate) ToWorkbookTemplateOutput ¶ added in v5.13.0
func (i *WorkbookTemplate) ToWorkbookTemplateOutput() WorkbookTemplateOutput
func (*WorkbookTemplate) ToWorkbookTemplateOutputWithContext ¶ added in v5.13.0
func (i *WorkbookTemplate) ToWorkbookTemplateOutputWithContext(ctx context.Context) WorkbookTemplateOutput
type WorkbookTemplateArgs ¶ added in v5.13.0
type WorkbookTemplateArgs struct { // Information about the author of the workbook template. Author pulumi.StringPtrInput // A `galleries` block as defined below. Galleries WorkbookTemplateGalleryArrayInput // Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal. Localized pulumi.StringPtrInput // Specifies the Azure Region where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created. Location pulumi.StringPtrInput // Specifies the name which should be used for this Application Insights Workbook Template. Changing this forces a new Application Insights Workbook Template to be created. Name pulumi.StringPtrInput // Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`. Priority pulumi.IntPtrInput // Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created. ResourceGroupName pulumi.StringInput // A mapping of tags which should be assigned to the Application Insights Workbook Template. Tags pulumi.StringMapInput // Valid JSON object containing workbook template payload. TemplateData pulumi.StringInput }
The set of arguments for constructing a WorkbookTemplate resource.
func (WorkbookTemplateArgs) ElementType ¶ added in v5.13.0
func (WorkbookTemplateArgs) ElementType() reflect.Type
type WorkbookTemplateArray ¶ added in v5.13.0
type WorkbookTemplateArray []WorkbookTemplateInput
func (WorkbookTemplateArray) ElementType ¶ added in v5.13.0
func (WorkbookTemplateArray) ElementType() reflect.Type
func (WorkbookTemplateArray) ToWorkbookTemplateArrayOutput ¶ added in v5.13.0
func (i WorkbookTemplateArray) ToWorkbookTemplateArrayOutput() WorkbookTemplateArrayOutput
func (WorkbookTemplateArray) ToWorkbookTemplateArrayOutputWithContext ¶ added in v5.13.0
func (i WorkbookTemplateArray) ToWorkbookTemplateArrayOutputWithContext(ctx context.Context) WorkbookTemplateArrayOutput
type WorkbookTemplateArrayInput ¶ added in v5.13.0
type WorkbookTemplateArrayInput interface { pulumi.Input ToWorkbookTemplateArrayOutput() WorkbookTemplateArrayOutput ToWorkbookTemplateArrayOutputWithContext(context.Context) WorkbookTemplateArrayOutput }
WorkbookTemplateArrayInput is an input type that accepts WorkbookTemplateArray and WorkbookTemplateArrayOutput values. You can construct a concrete instance of `WorkbookTemplateArrayInput` via:
WorkbookTemplateArray{ WorkbookTemplateArgs{...} }
type WorkbookTemplateArrayOutput ¶ added in v5.13.0
type WorkbookTemplateArrayOutput struct{ *pulumi.OutputState }
func (WorkbookTemplateArrayOutput) ElementType ¶ added in v5.13.0
func (WorkbookTemplateArrayOutput) ElementType() reflect.Type
func (WorkbookTemplateArrayOutput) Index ¶ added in v5.13.0
func (o WorkbookTemplateArrayOutput) Index(i pulumi.IntInput) WorkbookTemplateOutput
func (WorkbookTemplateArrayOutput) ToWorkbookTemplateArrayOutput ¶ added in v5.13.0
func (o WorkbookTemplateArrayOutput) ToWorkbookTemplateArrayOutput() WorkbookTemplateArrayOutput
func (WorkbookTemplateArrayOutput) ToWorkbookTemplateArrayOutputWithContext ¶ added in v5.13.0
func (o WorkbookTemplateArrayOutput) ToWorkbookTemplateArrayOutputWithContext(ctx context.Context) WorkbookTemplateArrayOutput
type WorkbookTemplateGallery ¶ added in v5.13.0
type WorkbookTemplateGallery struct { // Category for the gallery. Category string `pulumi:"category"` // Name of the workbook template in the gallery. Name string `pulumi:"name"` // Order of the template within the gallery. Defaults to `0`. Order *int `pulumi:"order"` // Azure resource type supported by the gallery. Defaults to `Azure Monitor`. ResourceType *string `pulumi:"resourceType"` // Type of workbook supported by the workbook template. Defaults to `workbook`. Type *string `pulumi:"type"` }
type WorkbookTemplateGalleryArgs ¶ added in v5.13.0
type WorkbookTemplateGalleryArgs struct { // Category for the gallery. Category pulumi.StringInput `pulumi:"category"` // Name of the workbook template in the gallery. Name pulumi.StringInput `pulumi:"name"` // Order of the template within the gallery. Defaults to `0`. Order pulumi.IntPtrInput `pulumi:"order"` // Azure resource type supported by the gallery. Defaults to `Azure Monitor`. ResourceType pulumi.StringPtrInput `pulumi:"resourceType"` // Type of workbook supported by the workbook template. Defaults to `workbook`. Type pulumi.StringPtrInput `pulumi:"type"` }
func (WorkbookTemplateGalleryArgs) ElementType ¶ added in v5.13.0
func (WorkbookTemplateGalleryArgs) ElementType() reflect.Type
func (WorkbookTemplateGalleryArgs) ToWorkbookTemplateGalleryOutput ¶ added in v5.13.0
func (i WorkbookTemplateGalleryArgs) ToWorkbookTemplateGalleryOutput() WorkbookTemplateGalleryOutput
func (WorkbookTemplateGalleryArgs) ToWorkbookTemplateGalleryOutputWithContext ¶ added in v5.13.0
func (i WorkbookTemplateGalleryArgs) ToWorkbookTemplateGalleryOutputWithContext(ctx context.Context) WorkbookTemplateGalleryOutput
type WorkbookTemplateGalleryArray ¶ added in v5.13.0
type WorkbookTemplateGalleryArray []WorkbookTemplateGalleryInput
func (WorkbookTemplateGalleryArray) ElementType ¶ added in v5.13.0
func (WorkbookTemplateGalleryArray) ElementType() reflect.Type
func (WorkbookTemplateGalleryArray) ToWorkbookTemplateGalleryArrayOutput ¶ added in v5.13.0
func (i WorkbookTemplateGalleryArray) ToWorkbookTemplateGalleryArrayOutput() WorkbookTemplateGalleryArrayOutput
func (WorkbookTemplateGalleryArray) ToWorkbookTemplateGalleryArrayOutputWithContext ¶ added in v5.13.0
func (i WorkbookTemplateGalleryArray) ToWorkbookTemplateGalleryArrayOutputWithContext(ctx context.Context) WorkbookTemplateGalleryArrayOutput
type WorkbookTemplateGalleryArrayInput ¶ added in v5.13.0
type WorkbookTemplateGalleryArrayInput interface { pulumi.Input ToWorkbookTemplateGalleryArrayOutput() WorkbookTemplateGalleryArrayOutput ToWorkbookTemplateGalleryArrayOutputWithContext(context.Context) WorkbookTemplateGalleryArrayOutput }
WorkbookTemplateGalleryArrayInput is an input type that accepts WorkbookTemplateGalleryArray and WorkbookTemplateGalleryArrayOutput values. You can construct a concrete instance of `WorkbookTemplateGalleryArrayInput` via:
WorkbookTemplateGalleryArray{ WorkbookTemplateGalleryArgs{...} }
type WorkbookTemplateGalleryArrayOutput ¶ added in v5.13.0
type WorkbookTemplateGalleryArrayOutput struct{ *pulumi.OutputState }
func (WorkbookTemplateGalleryArrayOutput) ElementType ¶ added in v5.13.0
func (WorkbookTemplateGalleryArrayOutput) ElementType() reflect.Type
func (WorkbookTemplateGalleryArrayOutput) Index ¶ added in v5.13.0
func (o WorkbookTemplateGalleryArrayOutput) Index(i pulumi.IntInput) WorkbookTemplateGalleryOutput
func (WorkbookTemplateGalleryArrayOutput) ToWorkbookTemplateGalleryArrayOutput ¶ added in v5.13.0
func (o WorkbookTemplateGalleryArrayOutput) ToWorkbookTemplateGalleryArrayOutput() WorkbookTemplateGalleryArrayOutput
func (WorkbookTemplateGalleryArrayOutput) ToWorkbookTemplateGalleryArrayOutputWithContext ¶ added in v5.13.0
func (o WorkbookTemplateGalleryArrayOutput) ToWorkbookTemplateGalleryArrayOutputWithContext(ctx context.Context) WorkbookTemplateGalleryArrayOutput
type WorkbookTemplateGalleryInput ¶ added in v5.13.0
type WorkbookTemplateGalleryInput interface { pulumi.Input ToWorkbookTemplateGalleryOutput() WorkbookTemplateGalleryOutput ToWorkbookTemplateGalleryOutputWithContext(context.Context) WorkbookTemplateGalleryOutput }
WorkbookTemplateGalleryInput is an input type that accepts WorkbookTemplateGalleryArgs and WorkbookTemplateGalleryOutput values. You can construct a concrete instance of `WorkbookTemplateGalleryInput` via:
WorkbookTemplateGalleryArgs{...}
type WorkbookTemplateGalleryOutput ¶ added in v5.13.0
type WorkbookTemplateGalleryOutput struct{ *pulumi.OutputState }
func (WorkbookTemplateGalleryOutput) Category ¶ added in v5.13.0
func (o WorkbookTemplateGalleryOutput) Category() pulumi.StringOutput
Category for the gallery.
func (WorkbookTemplateGalleryOutput) ElementType ¶ added in v5.13.0
func (WorkbookTemplateGalleryOutput) ElementType() reflect.Type
func (WorkbookTemplateGalleryOutput) Name ¶ added in v5.13.0
func (o WorkbookTemplateGalleryOutput) Name() pulumi.StringOutput
Name of the workbook template in the gallery.
func (WorkbookTemplateGalleryOutput) Order ¶ added in v5.13.0
func (o WorkbookTemplateGalleryOutput) Order() pulumi.IntPtrOutput
Order of the template within the gallery. Defaults to `0`.
func (WorkbookTemplateGalleryOutput) ResourceType ¶ added in v5.13.0
func (o WorkbookTemplateGalleryOutput) ResourceType() pulumi.StringPtrOutput
Azure resource type supported by the gallery. Defaults to `Azure Monitor`.
func (WorkbookTemplateGalleryOutput) ToWorkbookTemplateGalleryOutput ¶ added in v5.13.0
func (o WorkbookTemplateGalleryOutput) ToWorkbookTemplateGalleryOutput() WorkbookTemplateGalleryOutput
func (WorkbookTemplateGalleryOutput) ToWorkbookTemplateGalleryOutputWithContext ¶ added in v5.13.0
func (o WorkbookTemplateGalleryOutput) ToWorkbookTemplateGalleryOutputWithContext(ctx context.Context) WorkbookTemplateGalleryOutput
func (WorkbookTemplateGalleryOutput) Type ¶ added in v5.13.0
func (o WorkbookTemplateGalleryOutput) Type() pulumi.StringPtrOutput
Type of workbook supported by the workbook template. Defaults to `workbook`.
type WorkbookTemplateInput ¶ added in v5.13.0
type WorkbookTemplateInput interface { pulumi.Input ToWorkbookTemplateOutput() WorkbookTemplateOutput ToWorkbookTemplateOutputWithContext(ctx context.Context) WorkbookTemplateOutput }
type WorkbookTemplateMap ¶ added in v5.13.0
type WorkbookTemplateMap map[string]WorkbookTemplateInput
func (WorkbookTemplateMap) ElementType ¶ added in v5.13.0
func (WorkbookTemplateMap) ElementType() reflect.Type
func (WorkbookTemplateMap) ToWorkbookTemplateMapOutput ¶ added in v5.13.0
func (i WorkbookTemplateMap) ToWorkbookTemplateMapOutput() WorkbookTemplateMapOutput
func (WorkbookTemplateMap) ToWorkbookTemplateMapOutputWithContext ¶ added in v5.13.0
func (i WorkbookTemplateMap) ToWorkbookTemplateMapOutputWithContext(ctx context.Context) WorkbookTemplateMapOutput
type WorkbookTemplateMapInput ¶ added in v5.13.0
type WorkbookTemplateMapInput interface { pulumi.Input ToWorkbookTemplateMapOutput() WorkbookTemplateMapOutput ToWorkbookTemplateMapOutputWithContext(context.Context) WorkbookTemplateMapOutput }
WorkbookTemplateMapInput is an input type that accepts WorkbookTemplateMap and WorkbookTemplateMapOutput values. You can construct a concrete instance of `WorkbookTemplateMapInput` via:
WorkbookTemplateMap{ "key": WorkbookTemplateArgs{...} }
type WorkbookTemplateMapOutput ¶ added in v5.13.0
type WorkbookTemplateMapOutput struct{ *pulumi.OutputState }
func (WorkbookTemplateMapOutput) ElementType ¶ added in v5.13.0
func (WorkbookTemplateMapOutput) ElementType() reflect.Type
func (WorkbookTemplateMapOutput) MapIndex ¶ added in v5.13.0
func (o WorkbookTemplateMapOutput) MapIndex(k pulumi.StringInput) WorkbookTemplateOutput
func (WorkbookTemplateMapOutput) ToWorkbookTemplateMapOutput ¶ added in v5.13.0
func (o WorkbookTemplateMapOutput) ToWorkbookTemplateMapOutput() WorkbookTemplateMapOutput
func (WorkbookTemplateMapOutput) ToWorkbookTemplateMapOutputWithContext ¶ added in v5.13.0
func (o WorkbookTemplateMapOutput) ToWorkbookTemplateMapOutputWithContext(ctx context.Context) WorkbookTemplateMapOutput
type WorkbookTemplateOutput ¶ added in v5.13.0
type WorkbookTemplateOutput struct{ *pulumi.OutputState }
func (WorkbookTemplateOutput) Author ¶ added in v5.13.0
func (o WorkbookTemplateOutput) Author() pulumi.StringPtrOutput
Information about the author of the workbook template.
func (WorkbookTemplateOutput) ElementType ¶ added in v5.13.0
func (WorkbookTemplateOutput) ElementType() reflect.Type
func (WorkbookTemplateOutput) Galleries ¶ added in v5.13.0
func (o WorkbookTemplateOutput) Galleries() WorkbookTemplateGalleryArrayOutput
A `galleries` block as defined below.
func (WorkbookTemplateOutput) Localized ¶ added in v5.13.0
func (o WorkbookTemplateOutput) Localized() pulumi.StringPtrOutput
Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal.
func (WorkbookTemplateOutput) Location ¶ added in v5.13.0
func (o WorkbookTemplateOutput) Location() pulumi.StringOutput
Specifies the Azure Region where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
func (WorkbookTemplateOutput) Name ¶ added in v5.13.0
func (o WorkbookTemplateOutput) Name() pulumi.StringOutput
Specifies the name which should be used for this Application Insights Workbook Template. Changing this forces a new Application Insights Workbook Template to be created.
func (WorkbookTemplateOutput) Priority ¶ added in v5.13.0
func (o WorkbookTemplateOutput) Priority() pulumi.IntPtrOutput
Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`.
func (WorkbookTemplateOutput) ResourceGroupName ¶ added in v5.13.0
func (o WorkbookTemplateOutput) ResourceGroupName() pulumi.StringOutput
Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created.
func (WorkbookTemplateOutput) Tags ¶ added in v5.13.0
func (o WorkbookTemplateOutput) Tags() pulumi.StringMapOutput
A mapping of tags which should be assigned to the Application Insights Workbook Template.
func (WorkbookTemplateOutput) TemplateData ¶ added in v5.13.0
func (o WorkbookTemplateOutput) TemplateData() pulumi.StringOutput
Valid JSON object containing workbook template payload.
func (WorkbookTemplateOutput) ToWorkbookTemplateOutput ¶ added in v5.13.0
func (o WorkbookTemplateOutput) ToWorkbookTemplateOutput() WorkbookTemplateOutput
func (WorkbookTemplateOutput) ToWorkbookTemplateOutputWithContext ¶ added in v5.13.0
func (o WorkbookTemplateOutput) ToWorkbookTemplateOutputWithContext(ctx context.Context) WorkbookTemplateOutput
type WorkbookTemplateState ¶ added in v5.13.0
type WorkbookTemplateState struct { // Information about the author of the workbook template. Author pulumi.StringPtrInput // A `galleries` block as defined below. Galleries WorkbookTemplateGalleryArrayInput // Key value pairs of localized gallery. Each key is the locale code of languages supported by the Azure portal. Localized pulumi.StringPtrInput // Specifies the Azure Region where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created. Location pulumi.StringPtrInput // Specifies the name which should be used for this Application Insights Workbook Template. Changing this forces a new Application Insights Workbook Template to be created. Name pulumi.StringPtrInput // Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode. Defaults to `0`. Priority pulumi.IntPtrInput // Specifies the name of the Resource Group where the Application Insights Workbook Template should exist. Changing this forces a new Application Insights Workbook Template to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags which should be assigned to the Application Insights Workbook Template. Tags pulumi.StringMapInput // Valid JSON object containing workbook template payload. TemplateData pulumi.StringPtrInput }
func (WorkbookTemplateState) ElementType ¶ added in v5.13.0
func (WorkbookTemplateState) ElementType() reflect.Type