Module monitoring
This page documents the language specification for the azure package. If you're looking for help working with the inputs, outputs, or functions of azure resources in a Pulumi program, please see the resource documentation for examples and API reference.
Resources
- ActionGroup
- ActionRuleActionGroup
- ActionRuleSuppression
- ActivityLogAlert
- AutoscaleSetting
- DiagnosticSetting
- LogProfile
- MetricAlert
- ScheduledQueryRulesAlert
- ScheduledQueryRulesLog
Functions
- getActionGroup
- getDiagnosticCategories
- getLogProfile
- getScheduledQueryRulesAlert
- getScheduledQueryRulesLog
Others
- ActionGroupArgs
- ActionGroupState
- ActionRuleActionGroupArgs
- ActionRuleActionGroupState
- ActionRuleSuppressionArgs
- ActionRuleSuppressionState
- ActivityLogAlertArgs
- ActivityLogAlertState
- AutoscaleSettingArgs
- AutoscaleSettingState
- DiagnosticSettingArgs
- DiagnosticSettingState
- GetActionGroupArgs
- GetActionGroupResult
- GetDiagnosticCategoriesArgs
- GetDiagnosticCategoriesResult
- GetLogProfileArgs
- GetLogProfileResult
- GetScheduledQueryRulesAlertArgs
- GetScheduledQueryRulesAlertResult
- GetScheduledQueryRulesLogArgs
- GetScheduledQueryRulesLogResult
- LogProfileArgs
- LogProfileState
- MetricAlertArgs
- MetricAlertState
- ScheduledQueryRulesAlertArgs
- ScheduledQueryRulesAlertState
- ScheduledQueryRulesLogArgs
- ScheduledQueryRulesLogState
Resources
Resource ActionGroup
class ActionGroup extends CustomResourceManages an Action Group within Azure Monitor.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West US"});
const exampleActionGroup = new azure.monitoring.ActionGroup("exampleActionGroup", {
resourceGroupName: exampleResourceGroup.name,
shortName: "p0action",
arm_role_receiver: [{
name: "armroleaction",
roleId: "de139f84-1756-47ae-9be6-808fbbe84772",
useCommonAlertSchema: true,
}],
automation_runbook_receiver: [{
name: "action_name_1",
automationAccountId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-runbooks/providers/microsoft.automation/automationaccounts/aaa001",
runbookName: "my runbook",
webhookResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-runbooks/providers/microsoft.automation/automationaccounts/aaa001/webhooks/webhook_alert",
isGlobalRunbook: true,
serviceUri: "https://s13events.azure-automation.net/webhooks?token=randomtoken",
useCommonAlertSchema: true,
}],
azure_app_push_receiver: [{
name: "pushtoadmin",
emailAddress: "admin@contoso.com",
}],
azure_function_receiver: [{
name: "funcaction",
functionAppResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-funcapp/providers/Microsoft.Web/sites/funcapp",
functionName: "myfunc",
httpTriggerUrl: "https://example.com/trigger",
useCommonAlertSchema: true,
}],
email_receiver: [
{
name: "sendtoadmin",
emailAddress: "admin@contoso.com",
},
{
name: "sendtodevops",
emailAddress: "devops@contoso.com",
useCommonAlertSchema: true,
},
],
itsm_receiver: [{
name: "createorupdateticket",
workspaceId: "6eee3a18-aac3-40e4-b98e-1f309f329816",
connectionId: "53de6956-42b4-41ba-be3c-b154cdf17b13",
ticketConfiguration: "{}",
region: "southcentralus",
}],
logic_app_receiver: [{
name: "logicappaction",
resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-logicapp/providers/Microsoft.Logic/workflows/logicapp",
callbackUrl: "https://logicapptriggerurl/...",
useCommonAlertSchema: true,
}],
sms_receiver: [{
name: "oncallmsg",
countryCode: "1",
phoneNumber: "1231231234",
}],
voice_receiver: [{
name: "remotesupport",
countryCode: "86",
phoneNumber: "13888888888",
}],
webhook_receiver: [{
name: "callmyapiaswell",
serviceUri: "http://example.com/alert",
useCommonAlertSchema: true,
}],
});constructor
new ActionGroup(name: string, args: ActionGroupArgs, opts?: pulumi.CustomResourceOptions)Create a ActionGroup resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ActionGroupState, opts?: pulumi.CustomResourceOptions): ActionGroupGet an existing ActionGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ActionGroupReturns true if the given object is an instance of ActionGroup. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property armRoleReceivers
public armRoleReceivers: pulumi.Output<ActionGroupArmRoleReceiver[] | undefined>;One or more armRoleReceiver blocks as defined below.
property automationRunbookReceivers
public automationRunbookReceivers: pulumi.Output<ActionGroupAutomationRunbookReceiver[] | undefined>;One or more automationRunbookReceiver blocks as defined below.
property azureAppPushReceivers
public azureAppPushReceivers: pulumi.Output<ActionGroupAzureAppPushReceiver[] | undefined>;One or more azureAppPushReceiver blocks as defined below.
property azureFunctionReceivers
public azureFunctionReceivers: pulumi.Output<ActionGroupAzureFunctionReceiver[] | undefined>;One or more azureFunctionReceiver blocks as defined below.
property emailReceivers
public emailReceivers: pulumi.Output<ActionGroupEmailReceiver[] | undefined>;One or more emailReceiver blocks as defined below.
property enabled
public enabled: pulumi.Output<boolean | undefined>;Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property itsmReceivers
public itsmReceivers: pulumi.Output<ActionGroupItsmReceiver[] | undefined>;One or more itsmReceiver blocks as defined below.
property logicAppReceivers
public logicAppReceivers: pulumi.Output<ActionGroupLogicAppReceiver[] | undefined>;One or more logicAppReceiver blocks as defined below.
property name
public name: pulumi.Output<string>;The name of the Action Group. Changing this forces a new resource to be created.
property resourceGroupName
public resourceGroupName: pulumi.Output<string>;The name of the resource group in which to create the Action Group instance.
property shortName
public shortName: pulumi.Output<string>;The short name of the action group. This will be used in SMS messages.
property smsReceivers
public smsReceivers: pulumi.Output<ActionGroupSmsReceiver[] | undefined>;One or more smsReceiver blocks as defined below.
property tags
public tags: pulumi.Output<{[key: string]: string} | undefined>;A mapping of tags to assign to the resource.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
property voiceReceivers
public voiceReceivers: pulumi.Output<ActionGroupVoiceReceiver[] | undefined>;One or more voiceReceiver blocks as defined below.
property webhookReceivers
public webhookReceivers: pulumi.Output<ActionGroupWebhookReceiver[] | undefined>;One or more webhookReceiver blocks as defined below.
Resource ActionRuleActionGroup
class ActionRuleActionGroup extends CustomResourceManages an Monitor Action Rule which type is action group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleActionGroup = new azure.monitoring.ActionGroup("exampleActionGroup", {
resourceGroupName: exampleResourceGroup.name,
shortName: "exampleactiongroup",
});
const exampleActionRuleActionGroup = new azure.monitoring.ActionRuleActionGroup("exampleActionRuleActionGroup", {
resourceGroupName: exampleResourceGroup.name,
actionGroupId: exampleActionGroup.id,
scope: {
type: "ResourceGroup",
resourceIds: [exampleResourceGroup.id],
},
tags: {
foo: "bar",
},
});constructor
new ActionRuleActionGroup(name: string, args: ActionRuleActionGroupArgs, opts?: pulumi.CustomResourceOptions)Create a ActionRuleActionGroup resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ActionRuleActionGroupState, opts?: pulumi.CustomResourceOptions): ActionRuleActionGroupGet an existing ActionRuleActionGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ActionRuleActionGroupReturns true if the given object is an instance of ActionRuleActionGroup. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property actionGroupId
public actionGroupId: pulumi.Output<string>;Specifies the resource id of monitor action group.
property condition
public condition: pulumi.Output<ActionRuleActionGroupCondition | undefined>;A condition block as defined below.
property description
public description: pulumi.Output<string | undefined>;Specifies a description for the Action Rule.
property enabled
public enabled: pulumi.Output<boolean | undefined>;Is the Action Rule enabled? Defaults to true.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
property resourceGroupName
public resourceGroupName: pulumi.Output<string>;Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
property scope
public scope: pulumi.Output<ActionRuleActionGroupScope | undefined>;A scope block as defined below.
property tags
public tags: pulumi.Output<{[key: string]: string} | undefined>;A mapping of tags to assign to the resource.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource ActionRuleSuppression
class ActionRuleSuppression extends CustomResourceManages an Monitor Action Rule which type is suppression.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleActionRuleSuppression = new azure.monitoring.ActionRuleSuppression("exampleActionRuleSuppression", {
resourceGroupName: exampleResourceGroup.name,
scope: {
type: "ResourceGroup",
resourceIds: [exampleResourceGroup.id],
},
suppression: {
recurrenceType: "Weekly",
schedule: {
startDateUtc: "2019-01-01T01:02:03Z",
endDateUtc: "2019-01-03T15:02:07Z",
recurrenceWeeklies: [
"Sunday",
"Monday",
"Friday",
"Saturday",
],
},
},
tags: {
foo: "bar",
},
});constructor
new ActionRuleSuppression(name: string, args: ActionRuleSuppressionArgs, opts?: pulumi.CustomResourceOptions)Create a ActionRuleSuppression resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ActionRuleSuppressionState, opts?: pulumi.CustomResourceOptions): ActionRuleSuppressionGet an existing ActionRuleSuppression resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ActionRuleSuppressionReturns true if the given object is an instance of ActionRuleSuppression. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property condition
public condition: pulumi.Output<ActionRuleSuppressionCondition | undefined>;A condition block as defined below.
property description
public description: pulumi.Output<string | undefined>;Specifies a description for the Action Rule.
property enabled
public enabled: pulumi.Output<boolean | undefined>;Is the Action Rule enabled? Defaults to true.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
property resourceGroupName
public resourceGroupName: pulumi.Output<string>;Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
property scope
public scope: pulumi.Output<ActionRuleSuppressionScope | undefined>;A scope block as defined below.
property suppression
public suppression: pulumi.Output<ActionRuleSuppressionSuppression>;A suppression block as defined below.
property tags
public tags: pulumi.Output<{[key: string]: string} | undefined>;A mapping of tags to assign to the resource.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource ActivityLogAlert
class ActivityLogAlert extends CustomResourceManages an Activity Log Alert within Azure Monitor.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const mainResourceGroup = new azure.core.ResourceGroup("mainResourceGroup", {location: "West US"});
const mainActionGroup = new azure.monitoring.ActionGroup("mainActionGroup", {
resourceGroupName: mainResourceGroup.name,
shortName: "p0action",
webhook_receiver: [{
name: "callmyapi",
serviceUri: "http://example.com/alert",
}],
});
const toMonitor = new azure.storage.Account("toMonitor", {
resourceGroupName: mainResourceGroup.name,
location: mainResourceGroup.location,
accountTier: "Standard",
accountReplicationType: "GRS",
});
const mainActivityLogAlert = new azure.monitoring.ActivityLogAlert("mainActivityLogAlert", {
resourceGroupName: mainResourceGroup.name,
scopes: [mainResourceGroup.id],
description: "This alert will monitor a specific storage account updates.",
criteria: {
resourceId: toMonitor.id,
operationName: "Microsoft.Storage/storageAccounts/write",
category: "Recommendation",
},
action: [{
actionGroupId: mainActionGroup.id,
webhookProperties: {
from: "source",
},
}],
});constructor
new ActivityLogAlert(name: string, args: ActivityLogAlertArgs, opts?: pulumi.CustomResourceOptions)Create a ActivityLogAlert resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ActivityLogAlertState, opts?: pulumi.CustomResourceOptions): ActivityLogAlertGet an existing ActivityLogAlert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ActivityLogAlertReturns true if the given object is an instance of ActivityLogAlert. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property actions
public actions: pulumi.Output<ActivityLogAlertAction[] | undefined>;One or more action blocks as defined below.
property criteria
public criteria: pulumi.Output<ActivityLogAlertCriteria>;A criteria block as defined below.
property description
public description: pulumi.Output<string | undefined>;The description of this activity log alert.
property enabled
public enabled: pulumi.Output<boolean | undefined>;Should this Activity Log Alert be enabled? Defaults to true.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;The name of the activity log alert. Changing this forces a new resource to be created.
property resourceGroupName
public resourceGroupName: pulumi.Output<string>;The name of the resource group in which to create the activity log alert instance.
property scopes
public scopes: pulumi.Output<string[]>;The Scope at which the Activity Log should be applied, for example a the Resource ID of a Subscription or a Resource (such as a Storage Account).
property tags
public tags: pulumi.Output<{[key: string]: string} | undefined>;A mapping of tags to assign to the resource.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource AutoscaleSetting
class AutoscaleSetting extends CustomResourceManages a AutoScale Setting which can be applied to Virtual Machine Scale Sets, App Services and other scalable resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West US"});
const exampleScaleSet = new azure.compute.ScaleSet("exampleScaleSet", {});
// ...
const exampleAutoscaleSetting = new azure.monitoring.AutoscaleSetting("exampleAutoscaleSetting", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
targetResourceId: exampleScaleSet.id,
profile: [{
name: "defaultProfile",
capacity: {
"default": 1,
minimum: 1,
maximum: 10,
},
rule: [
{
metric_trigger: {
metricName: "Percentage CPU",
metricResourceId: exampleScaleSet.id,
timeGrain: "PT1M",
statistic: "Average",
timeWindow: "PT5M",
timeAggregation: "Average",
operator: "GreaterThan",
threshold: 75,
},
scale_action: {
direction: "Increase",
type: "ChangeCount",
value: "1",
cooldown: "PT1M",
},
},
{
metric_trigger: {
metricName: "Percentage CPU",
metricResourceId: exampleScaleSet.id,
timeGrain: "PT1M",
statistic: "Average",
timeWindow: "PT5M",
timeAggregation: "Average",
operator: "LessThan",
threshold: 25,
},
scale_action: {
direction: "Decrease",
type: "ChangeCount",
value: "1",
cooldown: "PT1M",
},
},
],
}],
notification: {
email: {
sendToSubscriptionAdministrator: true,
sendToSubscriptionCoAdministrator: true,
customEmails: ["admin@contoso.com"],
},
},
});Repeating On Weekends)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West US"});
const exampleScaleSet = new azure.compute.ScaleSet("exampleScaleSet", {});
// ...
const exampleAutoscaleSetting = new azure.monitoring.AutoscaleSetting("exampleAutoscaleSetting", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
targetResourceId: exampleScaleSet.id,
profile: [{
name: "Weekends",
capacity: {
"default": 1,
minimum: 1,
maximum: 10,
},
rule: [
{
metric_trigger: {
metricName: "Percentage CPU",
metricResourceId: exampleScaleSet.id,
timeGrain: "PT1M",
statistic: "Average",
timeWindow: "PT5M",
timeAggregation: "Average",
operator: "GreaterThan",
threshold: 90,
},
scale_action: {
direction: "Increase",
type: "ChangeCount",
value: "2",
cooldown: "PT1M",
},
},
{
metric_trigger: {
metricName: "Percentage CPU",
metricResourceId: exampleScaleSet.id,
timeGrain: "PT1M",
statistic: "Average",
timeWindow: "PT5M",
timeAggregation: "Average",
operator: "LessThan",
threshold: 10,
},
scale_action: {
direction: "Decrease",
type: "ChangeCount",
value: "2",
cooldown: "PT1M",
},
},
],
recurrence: {
frequency: "Week",
timezone: "Pacific Standard Time",
days: [
"Saturday",
"Sunday",
],
hours: [12],
minutes: [0],
},
}],
notification: {
email: {
sendToSubscriptionAdministrator: true,
sendToSubscriptionCoAdministrator: true,
customEmails: ["admin@contoso.com"],
},
},
});For Fixed Dates)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West US"});
const exampleScaleSet = new azure.compute.ScaleSet("exampleScaleSet", {});
// ...
const exampleAutoscaleSetting = new azure.monitoring.AutoscaleSetting("exampleAutoscaleSetting", {
enabled: true,
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
targetResourceId: exampleScaleSet.id,
profile: [{
name: "forJuly",
capacity: {
"default": 1,
minimum: 1,
maximum: 10,
},
rule: [
{
metric_trigger: {
metricName: "Percentage CPU",
metricResourceId: exampleScaleSet.id,
timeGrain: "PT1M",
statistic: "Average",
timeWindow: "PT5M",
timeAggregation: "Average",
operator: "GreaterThan",
threshold: 90,
},
scale_action: {
direction: "Increase",
type: "ChangeCount",
value: "2",
cooldown: "PT1M",
},
},
{
metric_trigger: {
metricName: "Percentage CPU",
metricResourceId: exampleScaleSet.id,
timeGrain: "PT1M",
statistic: "Average",
timeWindow: "PT5M",
timeAggregation: "Average",
operator: "LessThan",
threshold: 10,
},
scale_action: {
direction: "Decrease",
type: "ChangeCount",
value: "2",
cooldown: "PT1M",
},
},
],
fixed_date: {
timezone: "Pacific Standard Time",
start: "2020-07-01T00:00:00Z",
end: "2020-07-31T23:59:59Z",
},
}],
notification: {
email: {
sendToSubscriptionAdministrator: true,
sendToSubscriptionCoAdministrator: true,
customEmails: ["admin@contoso.com"],
},
},
});constructor
new AutoscaleSetting(name: string, args: AutoscaleSettingArgs, opts?: pulumi.CustomResourceOptions)Create a AutoscaleSetting resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AutoscaleSettingState, opts?: pulumi.CustomResourceOptions): AutoscaleSettingGet an existing AutoscaleSetting resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is AutoscaleSettingReturns true if the given object is an instance of AutoscaleSetting. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property enabled
public enabled: pulumi.Output<boolean | undefined>;Specifies whether automatic scaling is enabled for the target resource. Defaults to true.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property location
public location: pulumi.Output<string>;Specifies the supported Azure location where the AutoScale Setting should exist. Changing this forces a new resource to be created.
property name
public name: pulumi.Output<string>;The name of the AutoScale Setting. Changing this forces a new resource to be created.
property notification
public notification: pulumi.Output<AutoscaleSettingNotification | undefined>;Specifies a notification block as defined below.
property profiles
public profiles: pulumi.Output<AutoscaleSettingProfile[]>;Specifies one or more (up to 20) profile blocks as defined below.
property resourceGroupName
public resourceGroupName: pulumi.Output<string>;The name of the Resource Group in the AutoScale Setting should be created. Changing this forces a new resource to be created.
property tags
public tags: pulumi.Output<{[key: string]: string} | undefined>;A mapping of tags to assign to the resource.
property targetResourceId
public targetResourceId: pulumi.Output<string>;Specifies the resource ID of the resource that the autoscale setting should be added to.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource DiagnosticSetting
class DiagnosticSetting extends CustomResourceManages a Diagnostic Setting for an existing Resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = exampleResourceGroup.name.apply(name => azure.storage.getAccount({
name: "examplestoracc",
resourceGroupName: name,
}));
const exampleKeyVault = exampleResourceGroup.name.apply(name => azure.keyvault.getKeyVault({
name: "example-vault",
resourceGroupName: name,
}));
const exampleDiagnosticSetting = new azure.monitoring.DiagnosticSetting("exampleDiagnosticSetting", {
targetResourceId: exampleKeyVault.id,
storageAccountId: exampleAccount.id,
log: [{
category: "AuditEvent",
enabled: false,
retention_policy: {
enabled: false,
},
}],
metric: [{
category: "AllMetrics",
retention_policy: {
enabled: false,
},
}],
});constructor
new DiagnosticSetting(name: string, args: DiagnosticSettingArgs, opts?: pulumi.CustomResourceOptions)Create a DiagnosticSetting resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DiagnosticSettingState, opts?: pulumi.CustomResourceOptions): DiagnosticSettingGet an existing DiagnosticSetting resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is DiagnosticSettingReturns true if the given object is an instance of DiagnosticSetting. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property eventhubAuthorizationRuleId
public eventhubAuthorizationRuleId: pulumi.Output<string | undefined>;Specifies the ID of an Event Hub Namespace Authorization Rule used to send Diagnostics Data. Changing this forces a new resource to be created.
property eventhubName
public eventhubName: pulumi.Output<string | undefined>;Specifies the name of the Event Hub where Diagnostics Data should be sent. Changing this forces a new resource to be created.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property logAnalyticsDestinationType
public logAnalyticsDestinationType: pulumi.Output<string | undefined>;When set to ‘Dedicated’ logs sent to a Log Analytics workspace will go into resource specific tables, instead of the legacy AzureDiagnostics table.
property logAnalyticsWorkspaceId
public logAnalyticsWorkspaceId: pulumi.Output<string | undefined>;Specifies the ID of a Log Analytics Workspace where Diagnostics Data should be sent. Changing this forces a new resource to be created.
property logs
public logs: pulumi.Output<DiagnosticSettingLog[] | undefined>;One or more log blocks as defined below.
property metrics
public metrics: pulumi.Output<DiagnosticSettingMetric[] | undefined>;One or more metric blocks as defined below.
property name
public name: pulumi.Output<string>;Specifies the name of the Diagnostic Setting. Changing this forces a new resource to be created.
property storageAccountId
public storageAccountId: pulumi.Output<string | undefined>;With this parameter you can specify a storage account which should be used to send the logs to. Parameter must be a valid Azure Resource ID. Changing this forces a new resource to be created.
property targetResourceId
public targetResourceId: pulumi.Output<string>;The ID of an existing Resource on which to configure Diagnostic Settings. Changing this forces a new resource to be created.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource LogProfile
class LogProfile extends CustomResourceManages a Log Profile. A Log Profile configures how Activity Logs are exported.
NOTE: It’s only possible to configure one Log Profile per Subscription. If you are trying to create more than one Log Profile, an error with
StatusCode=409will occur.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "eastus"});
const exampleAccount = new azure.storage.Account("exampleAccount", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
accountTier: "Standard",
accountReplicationType: "GRS",
});
const exampleEventHubNamespace = new azure.eventhub.EventHubNamespace("exampleEventHubNamespace", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
sku: "Standard",
capacity: 2,
});
const exampleLogProfile = new azure.monitoring.LogProfile("exampleLogProfile", {
categories: [
"Action",
"Delete",
"Write",
],
locations: [
"westus",
"global",
],
servicebusRuleId: pulumi.interpolate`${exampleEventHubNamespace.id}/authorizationrules/RootManageSharedAccessKey`,
storageAccountId: exampleAccount.id,
retention_policy: {
enabled: true,
days: 7,
},
});constructor
new LogProfile(name: string, args: LogProfileArgs, opts?: pulumi.CustomResourceOptions)Create a LogProfile resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LogProfileState, opts?: pulumi.CustomResourceOptions): LogProfileGet an existing LogProfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is LogProfileReturns true if the given object is an instance of LogProfile. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property categories
public categories: pulumi.Output<string[]>;List of categories of the logs.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property locations
public locations: pulumi.Output<string[]>;List of regions for which Activity Log events are stored or streamed.
property name
public name: pulumi.Output<string>;The name of the Log Profile. Changing this forces a new resource to be created.
property retentionPolicy
public retentionPolicy: pulumi.Output<LogProfileRetentionPolicy>;A retentionPolicy block as documented below. A retention policy for how long Activity Logs are retained in the storage account.
property servicebusRuleId
public servicebusRuleId: pulumi.Output<string | undefined>;The service bus (or event hub) rule ID of the service bus (or event hub) namespace in which the Activity Log is streamed to. At least one of storageAccountId or servicebusRuleId must be set.
property storageAccountId
public storageAccountId: pulumi.Output<string | undefined>;The resource ID of the storage account in which the Activity Log is stored. At least one of storageAccountId or servicebusRuleId must be set.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource MetricAlert
class MetricAlert extends CustomResourceManages a Metric Alert within Azure Monitor.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const mainResourceGroup = new azure.core.ResourceGroup("mainResourceGroup", {location: "West US"});
const toMonitor = new azure.storage.Account("toMonitor", {
resourceGroupName: mainResourceGroup.name,
location: mainResourceGroup.location,
accountTier: "Standard",
accountReplicationType: "LRS",
});
const mainActionGroup = new azure.monitoring.ActionGroup("mainActionGroup", {
resourceGroupName: mainResourceGroup.name,
shortName: "exampleact",
webhook_receiver: [{
name: "callmyapi",
serviceUri: "http://example.com/alert",
}],
});
const example = new azure.monitoring.MetricAlert("example", {
resourceGroupName: mainResourceGroup.name,
scopes: [toMonitor.id],
description: "Action will be triggered when Transactions count is greater than 50.",
criteria: [{
metricNamespace: "Microsoft.Storage/storageAccounts",
metricName: "Transactions",
aggregation: "Total",
operator: "GreaterThan",
threshold: 50,
dimension: [{
name: "ApiName",
operator: "Include",
values: ["*"],
}],
}],
action: [{
actionGroupId: mainActionGroup.id,
}],
});constructor
new MetricAlert(name: string, args: MetricAlertArgs, opts?: pulumi.CustomResourceOptions)Create a MetricAlert resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MetricAlertState, opts?: pulumi.CustomResourceOptions): MetricAlertGet an existing MetricAlert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is MetricAlertReturns true if the given object is an instance of MetricAlert. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property actions
public actions: pulumi.Output<MetricAlertAction[] | undefined>;One or more action blocks as defined below.
property autoMitigate
public autoMitigate: pulumi.Output<boolean | undefined>;Should the alerts in this Metric Alert be auto resolved? Defaults to true.
property criterias
public criterias: pulumi.Output<MetricAlertCriteria[]>;One or more criteria blocks as defined below.
property description
public description: pulumi.Output<string | undefined>;The description of this Metric Alert.
property enabled
public enabled: pulumi.Output<boolean | undefined>;Should this Metric Alert be enabled? Defaults to true.
property frequency
public frequency: pulumi.Output<string | undefined>;The evaluation frequency of this Metric Alert, represented in ISO 8601 duration format. Possible values are PT1M, PT5M, PT15M, PT30M and PT1H. Defaults to PT1M.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;The name of the Metric Alert. Changing this forces a new resource to be created.
property resourceGroupName
public resourceGroupName: pulumi.Output<string>;The name of the resource group in which to create the Metric Alert instance.
property scopes
public scopes: pulumi.Output<string>;A set of strings of resource IDs at which the metric criteria should be applied.
property severity
public severity: pulumi.Output<number | undefined>;The severity of this Metric Alert. Possible values are 0, 1, 2, 3 and 4. Defaults to 3.
property tags
public tags: pulumi.Output<{[key: string]: string} | undefined>;A mapping of tags to assign to the resource.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
property windowSize
public windowSize: pulumi.Output<string | undefined>;The period of time that is used to monitor alert activity, represented in ISO 8601 duration format. This value must be greater than frequency. Possible values are PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H and P1D. Defaults to PT5M.
Resource ScheduledQueryRulesAlert
class ScheduledQueryRulesAlert extends CustomResourceManages an AlertingAction Scheduled Query Rules resource within Azure Monitor.
constructor
new ScheduledQueryRulesAlert(name: string, args: ScheduledQueryRulesAlertArgs, opts?: pulumi.CustomResourceOptions)Create a ScheduledQueryRulesAlert resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ScheduledQueryRulesAlertState, opts?: pulumi.CustomResourceOptions): ScheduledQueryRulesAlertGet an existing ScheduledQueryRulesAlert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ScheduledQueryRulesAlertReturns true if the given object is an instance of ScheduledQueryRulesAlert. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property action
public action: pulumi.Output<ScheduledQueryRulesAlertAction>;An action block as defined below.
property authorizedResourceIds
public authorizedResourceIds: pulumi.Output<string[] | undefined>;List of Resource IDs referred into query.
property dataSourceId
public dataSourceId: pulumi.Output<string>;The resource URI over which log search query is to be run.
property description
public description: pulumi.Output<string | undefined>;The description of the scheduled query rule.
property enabled
public enabled: pulumi.Output<boolean | undefined>;Whether this scheduled query rule is enabled. Default is true.
property frequency
public frequency: pulumi.Output<number>;Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive).
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property location
public location: pulumi.Output<string>;property name
public name: pulumi.Output<string>;The name of the scheduled query rule. Changing this forces a new resource to be created.
property query
public query: pulumi.Output<string>;Log search query.
property queryType
public queryType: pulumi.Output<string | undefined>;property resourceGroupName
public resourceGroupName: pulumi.Output<string>;The name of the resource group in which to create the scheduled query rule instance.
property severity
public severity: pulumi.Output<number | undefined>;Severity of the alert. Possible values include: 0, 1, 2, 3, or 4.
property tags
public tags: pulumi.Output<{[key: string]: string} | undefined>;property throttling
public throttling: pulumi.Output<number | undefined>;Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive).
property timeWindow
public timeWindow: pulumi.Output<number>;Time window for which data needs to be fetched for query (must be greater than or equal to frequency). Values must be between 5 and 2880 (inclusive).
property trigger
public trigger: pulumi.Output<ScheduledQueryRulesAlertTrigger>;The condition that results in the alert rule being run.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource ScheduledQueryRulesLog
class ScheduledQueryRulesLog extends CustomResourceManages a LogToMetricAction Scheduled Query Rules resource within Azure Monitor.
constructor
new ScheduledQueryRulesLog(name: string, args: ScheduledQueryRulesLogArgs, opts?: pulumi.CustomResourceOptions)Create a ScheduledQueryRulesLog resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ScheduledQueryRulesLogState, opts?: pulumi.CustomResourceOptions): ScheduledQueryRulesLogGet an existing ScheduledQueryRulesLog resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ScheduledQueryRulesLogReturns true if the given object is an instance of ScheduledQueryRulesLog. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property authorizedResourceIds
public authorizedResourceIds: pulumi.Output<string[] | undefined>;property criteria
public criteria: pulumi.Output<ScheduledQueryRulesLogCriteria>;A criteria block as defined below.
property dataSourceId
public dataSourceId: pulumi.Output<string>;The resource uri over which log search query is to be run.
property description
public description: pulumi.Output<string | undefined>;The description of the scheduled query rule.
property enabled
public enabled: pulumi.Output<boolean | undefined>;Whether this scheduled query rule is enabled. Default is true.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property location
public location: pulumi.Output<string>;property name
public name: pulumi.Output<string>;The name of the scheduled query rule. Changing this forces a new resource to be created.
property resourceGroupName
public resourceGroupName: pulumi.Output<string>;The name of the resource group in which to create the scheduled query rule instance.
property tags
public tags: pulumi.Output<{[key: string]: string} | undefined>;property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Functions
Function getActionGroup
getActionGroup(args: GetActionGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetActionGroupResult>Use this data source to access the properties of an Action Group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.monitoring.getActionGroup({
resourceGroupName: "example-rg",
name: "tfex-actiongroup",
});
export const actionGroupId = example.then(example => example.id);Function getDiagnosticCategories
getDiagnosticCategories(args: GetDiagnosticCategoriesArgs, opts?: pulumi.InvokeOptions): Promise<GetDiagnosticCategoriesResult>Use this data source to access information about the Monitor Diagnostics Categories supported by an existing Resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleKeyVault = azure.keyvault.getKeyVault({
name: azurerm_key_vault.example.name,
resourceGroupName: azurerm_key_vault.example.resource_group_name,
});
const exampleDiagnosticCategories = exampleKeyVault.then(exampleKeyVault => azure.monitoring.getDiagnosticCategories({
resourceId: exampleKeyVault.id,
}));Function getLogProfile
getLogProfile(args: GetLogProfileArgs, opts?: pulumi.InvokeOptions): Promise<GetLogProfileResult>Use this data source to access the properties of a Log Profile.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.monitoring.getLogProfile({
name: "test-logprofile",
});
export const logProfileStorageAccountId = example.then(example => example.storageAccountId);Function getScheduledQueryRulesAlert
getScheduledQueryRulesAlert(args: GetScheduledQueryRulesAlertArgs, opts?: pulumi.InvokeOptions): Promise<GetScheduledQueryRulesAlertResult>Use this data source to access the properties of an AlertingAction scheduled query rule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = pulumi.output(azure.monitoring.getScheduledQueryRulesAlert({
name: "tfex-queryrule",
resourceGroupName: "example-rg",
}, { async: true }));
export const queryRuleId = example.id;Function getScheduledQueryRulesLog
getScheduledQueryRulesLog(args: GetScheduledQueryRulesLogArgs, opts?: pulumi.InvokeOptions): Promise<GetScheduledQueryRulesLogResult>Use this data source to access the properties of a LogToMetricAction scheduled query rule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = pulumi.output(azure.monitoring.getScheduledQueryRulesLog({
name: "tfex-queryrule",
resourceGroupName: "example-rg",
}, { async: true }));
export const queryRuleId = example.id;Others
interface ActionGroupArgs
interface ActionGroupArgsThe set of arguments for constructing a ActionGroup resource.
property armRoleReceivers
armRoleReceivers?: pulumi.Input<pulumi.Input<ActionGroupArmRoleReceiver>[]>;One or more armRoleReceiver blocks as defined below.
property automationRunbookReceivers
automationRunbookReceivers?: pulumi.Input<pulumi.Input<ActionGroupAutomationRunbookReceiver>[]>;One or more automationRunbookReceiver blocks as defined below.
property azureAppPushReceivers
azureAppPushReceivers?: pulumi.Input<pulumi.Input<ActionGroupAzureAppPushReceiver>[]>;One or more azureAppPushReceiver blocks as defined below.
property azureFunctionReceivers
azureFunctionReceivers?: pulumi.Input<pulumi.Input<ActionGroupAzureFunctionReceiver>[]>;One or more azureFunctionReceiver blocks as defined below.
property emailReceivers
emailReceivers?: pulumi.Input<pulumi.Input<ActionGroupEmailReceiver>[]>;One or more emailReceiver blocks as defined below.
property enabled
enabled?: pulumi.Input<boolean>;Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.
property itsmReceivers
itsmReceivers?: pulumi.Input<pulumi.Input<ActionGroupItsmReceiver>[]>;One or more itsmReceiver blocks as defined below.
property logicAppReceivers
logicAppReceivers?: pulumi.Input<pulumi.Input<ActionGroupLogicAppReceiver>[]>;One or more logicAppReceiver blocks as defined below.
property name
name?: pulumi.Input<string>;The name of the Action Group. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName: pulumi.Input<string>;The name of the resource group in which to create the Action Group instance.
property shortName
shortName: pulumi.Input<string>;The short name of the action group. This will be used in SMS messages.
property smsReceivers
smsReceivers?: pulumi.Input<pulumi.Input<ActionGroupSmsReceiver>[]>;One or more smsReceiver blocks as defined below.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.
property voiceReceivers
voiceReceivers?: pulumi.Input<pulumi.Input<ActionGroupVoiceReceiver>[]>;One or more voiceReceiver blocks as defined below.
property webhookReceivers
webhookReceivers?: pulumi.Input<pulumi.Input<ActionGroupWebhookReceiver>[]>;One or more webhookReceiver blocks as defined below.
interface ActionGroupState
interface ActionGroupStateInput properties used for looking up and filtering ActionGroup resources.
property armRoleReceivers
armRoleReceivers?: pulumi.Input<pulumi.Input<ActionGroupArmRoleReceiver>[]>;One or more armRoleReceiver blocks as defined below.
property automationRunbookReceivers
automationRunbookReceivers?: pulumi.Input<pulumi.Input<ActionGroupAutomationRunbookReceiver>[]>;One or more automationRunbookReceiver blocks as defined below.
property azureAppPushReceivers
azureAppPushReceivers?: pulumi.Input<pulumi.Input<ActionGroupAzureAppPushReceiver>[]>;One or more azureAppPushReceiver blocks as defined below.
property azureFunctionReceivers
azureFunctionReceivers?: pulumi.Input<pulumi.Input<ActionGroupAzureFunctionReceiver>[]>;One or more azureFunctionReceiver blocks as defined below.
property emailReceivers
emailReceivers?: pulumi.Input<pulumi.Input<ActionGroupEmailReceiver>[]>;One or more emailReceiver blocks as defined below.
property enabled
enabled?: pulumi.Input<boolean>;Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.
property itsmReceivers
itsmReceivers?: pulumi.Input<pulumi.Input<ActionGroupItsmReceiver>[]>;One or more itsmReceiver blocks as defined below.
property logicAppReceivers
logicAppReceivers?: pulumi.Input<pulumi.Input<ActionGroupLogicAppReceiver>[]>;One or more logicAppReceiver blocks as defined below.
property name
name?: pulumi.Input<string>;The name of the Action Group. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName?: pulumi.Input<string>;The name of the resource group in which to create the Action Group instance.
property shortName
shortName?: pulumi.Input<string>;The short name of the action group. This will be used in SMS messages.
property smsReceivers
smsReceivers?: pulumi.Input<pulumi.Input<ActionGroupSmsReceiver>[]>;One or more smsReceiver blocks as defined below.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.
property voiceReceivers
voiceReceivers?: pulumi.Input<pulumi.Input<ActionGroupVoiceReceiver>[]>;One or more voiceReceiver blocks as defined below.
property webhookReceivers
webhookReceivers?: pulumi.Input<pulumi.Input<ActionGroupWebhookReceiver>[]>;One or more webhookReceiver blocks as defined below.
interface ActionRuleActionGroupArgs
interface ActionRuleActionGroupArgsThe set of arguments for constructing a ActionRuleActionGroup resource.
property actionGroupId
actionGroupId: pulumi.Input<string>;Specifies the resource id of monitor action group.
property condition
condition?: pulumi.Input<ActionRuleActionGroupCondition>;A condition block as defined below.
property description
description?: pulumi.Input<string>;Specifies a description for the Action Rule.
property enabled
enabled?: pulumi.Input<boolean>;Is the Action Rule enabled? Defaults to true.
property name
name?: pulumi.Input<string>;Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName: pulumi.Input<string>;Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
property scope
scope?: pulumi.Input<ActionRuleActionGroupScope>;A scope block as defined below.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.
interface ActionRuleActionGroupState
interface ActionRuleActionGroupStateInput properties used for looking up and filtering ActionRuleActionGroup resources.
property actionGroupId
actionGroupId?: pulumi.Input<string>;Specifies the resource id of monitor action group.
property condition
condition?: pulumi.Input<ActionRuleActionGroupCondition>;A condition block as defined below.
property description
description?: pulumi.Input<string>;Specifies a description for the Action Rule.
property enabled
enabled?: pulumi.Input<boolean>;Is the Action Rule enabled? Defaults to true.
property name
name?: pulumi.Input<string>;Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName?: pulumi.Input<string>;Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
property scope
scope?: pulumi.Input<ActionRuleActionGroupScope>;A scope block as defined below.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.
interface ActionRuleSuppressionArgs
interface ActionRuleSuppressionArgsThe set of arguments for constructing a ActionRuleSuppression resource.
property condition
condition?: pulumi.Input<ActionRuleSuppressionCondition>;A condition block as defined below.
property description
description?: pulumi.Input<string>;Specifies a description for the Action Rule.
property enabled
enabled?: pulumi.Input<boolean>;Is the Action Rule enabled? Defaults to true.
property name
name?: pulumi.Input<string>;Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName: pulumi.Input<string>;Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
property scope
scope?: pulumi.Input<ActionRuleSuppressionScope>;A scope block as defined below.
property suppression
suppression: pulumi.Input<ActionRuleSuppressionSuppression>;A suppression block as defined below.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.
interface ActionRuleSuppressionState
interface ActionRuleSuppressionStateInput properties used for looking up and filtering ActionRuleSuppression resources.
property condition
condition?: pulumi.Input<ActionRuleSuppressionCondition>;A condition block as defined below.
property description
description?: pulumi.Input<string>;Specifies a description for the Action Rule.
property enabled
enabled?: pulumi.Input<boolean>;Is the Action Rule enabled? Defaults to true.
property name
name?: pulumi.Input<string>;Specifies the name of the Monitor Action Rule. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName?: pulumi.Input<string>;Specifies the name of the resource group in which the Monitor Action Rule should exist. Changing this forces a new resource to be created.
property scope
scope?: pulumi.Input<ActionRuleSuppressionScope>;A scope block as defined below.
property suppression
suppression?: pulumi.Input<ActionRuleSuppressionSuppression>;A suppression block as defined below.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.
interface ActivityLogAlertArgs
interface ActivityLogAlertArgsThe set of arguments for constructing a ActivityLogAlert resource.
property actions
actions?: pulumi.Input<pulumi.Input<ActivityLogAlertAction>[]>;One or more action blocks as defined below.
property criteria
criteria: pulumi.Input<ActivityLogAlertCriteria>;A criteria block as defined below.
property description
description?: pulumi.Input<string>;The description of this activity log alert.
property enabled
enabled?: pulumi.Input<boolean>;Should this Activity Log Alert be enabled? Defaults to true.
property name
name?: pulumi.Input<string>;The name of the activity log alert. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName: pulumi.Input<string>;The name of the resource group in which to create the activity log alert instance.
property scopes
scopes: pulumi.Input<pulumi.Input<string>[]>;The Scope at which the Activity Log should be applied, for example a the Resource ID of a Subscription or a Resource (such as a Storage Account).
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.
interface ActivityLogAlertState
interface ActivityLogAlertStateInput properties used for looking up and filtering ActivityLogAlert resources.
property actions
actions?: pulumi.Input<pulumi.Input<ActivityLogAlertAction>[]>;One or more action blocks as defined below.
property criteria
criteria?: pulumi.Input<ActivityLogAlertCriteria>;A criteria block as defined below.
property description
description?: pulumi.Input<string>;The description of this activity log alert.
property enabled
enabled?: pulumi.Input<boolean>;Should this Activity Log Alert be enabled? Defaults to true.
property name
name?: pulumi.Input<string>;The name of the activity log alert. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName?: pulumi.Input<string>;The name of the resource group in which to create the activity log alert instance.
property scopes
scopes?: pulumi.Input<pulumi.Input<string>[]>;The Scope at which the Activity Log should be applied, for example a the Resource ID of a Subscription or a Resource (such as a Storage Account).
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.
interface AutoscaleSettingArgs
interface AutoscaleSettingArgsThe set of arguments for constructing a AutoscaleSetting resource.
property enabled
enabled?: pulumi.Input<boolean>;Specifies whether automatic scaling is enabled for the target resource. Defaults to true.
property location
location?: pulumi.Input<string>;Specifies the supported Azure location where the AutoScale Setting should exist. Changing this forces a new resource to be created.
property name
name?: pulumi.Input<string>;The name of the AutoScale Setting. Changing this forces a new resource to be created.
property notification
notification?: pulumi.Input<AutoscaleSettingNotification>;Specifies a notification block as defined below.
property profiles
profiles: pulumi.Input<pulumi.Input<AutoscaleSettingProfile>[]>;Specifies one or more (up to 20) profile blocks as defined below.
property resourceGroupName
resourceGroupName: pulumi.Input<string>;The name of the Resource Group in the AutoScale Setting should be created. Changing this forces a new resource to be created.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.
property targetResourceId
targetResourceId: pulumi.Input<string>;Specifies the resource ID of the resource that the autoscale setting should be added to.
interface AutoscaleSettingState
interface AutoscaleSettingStateInput properties used for looking up and filtering AutoscaleSetting resources.
property enabled
enabled?: pulumi.Input<boolean>;Specifies whether automatic scaling is enabled for the target resource. Defaults to true.
property location
location?: pulumi.Input<string>;Specifies the supported Azure location where the AutoScale Setting should exist. Changing this forces a new resource to be created.
property name
name?: pulumi.Input<string>;The name of the AutoScale Setting. Changing this forces a new resource to be created.
property notification
notification?: pulumi.Input<AutoscaleSettingNotification>;Specifies a notification block as defined below.
property profiles
profiles?: pulumi.Input<pulumi.Input<AutoscaleSettingProfile>[]>;Specifies one or more (up to 20) profile blocks as defined below.
property resourceGroupName
resourceGroupName?: pulumi.Input<string>;The name of the Resource Group in the AutoScale Setting should be created. Changing this forces a new resource to be created.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.
property targetResourceId
targetResourceId?: pulumi.Input<string>;Specifies the resource ID of the resource that the autoscale setting should be added to.
interface DiagnosticSettingArgs
interface DiagnosticSettingArgsThe set of arguments for constructing a DiagnosticSetting resource.
property eventhubAuthorizationRuleId
eventhubAuthorizationRuleId?: pulumi.Input<string>;Specifies the ID of an Event Hub Namespace Authorization Rule used to send Diagnostics Data. Changing this forces a new resource to be created.
property eventhubName
eventhubName?: pulumi.Input<string>;Specifies the name of the Event Hub where Diagnostics Data should be sent. Changing this forces a new resource to be created.
property logAnalyticsDestinationType
logAnalyticsDestinationType?: pulumi.Input<string>;When set to ‘Dedicated’ logs sent to a Log Analytics workspace will go into resource specific tables, instead of the legacy AzureDiagnostics table.
property logAnalyticsWorkspaceId
logAnalyticsWorkspaceId?: pulumi.Input<string>;Specifies the ID of a Log Analytics Workspace where Diagnostics Data should be sent. Changing this forces a new resource to be created.
property logs
logs?: pulumi.Input<pulumi.Input<DiagnosticSettingLog>[]>;One or more log blocks as defined below.
property metrics
metrics?: pulumi.Input<pulumi.Input<DiagnosticSettingMetric>[]>;One or more metric blocks as defined below.
property name
name?: pulumi.Input<string>;Specifies the name of the Diagnostic Setting. Changing this forces a new resource to be created.
property storageAccountId
storageAccountId?: pulumi.Input<string>;With this parameter you can specify a storage account which should be used to send the logs to. Parameter must be a valid Azure Resource ID. Changing this forces a new resource to be created.
property targetResourceId
targetResourceId: pulumi.Input<string>;The ID of an existing Resource on which to configure Diagnostic Settings. Changing this forces a new resource to be created.
interface DiagnosticSettingState
interface DiagnosticSettingStateInput properties used for looking up and filtering DiagnosticSetting resources.
property eventhubAuthorizationRuleId
eventhubAuthorizationRuleId?: pulumi.Input<string>;Specifies the ID of an Event Hub Namespace Authorization Rule used to send Diagnostics Data. Changing this forces a new resource to be created.
property eventhubName
eventhubName?: pulumi.Input<string>;Specifies the name of the Event Hub where Diagnostics Data should be sent. Changing this forces a new resource to be created.
property logAnalyticsDestinationType
logAnalyticsDestinationType?: pulumi.Input<string>;When set to ‘Dedicated’ logs sent to a Log Analytics workspace will go into resource specific tables, instead of the legacy AzureDiagnostics table.
property logAnalyticsWorkspaceId
logAnalyticsWorkspaceId?: pulumi.Input<string>;Specifies the ID of a Log Analytics Workspace where Diagnostics Data should be sent. Changing this forces a new resource to be created.
property logs
logs?: pulumi.Input<pulumi.Input<DiagnosticSettingLog>[]>;One or more log blocks as defined below.
property metrics
metrics?: pulumi.Input<pulumi.Input<DiagnosticSettingMetric>[]>;One or more metric blocks as defined below.
property name
name?: pulumi.Input<string>;Specifies the name of the Diagnostic Setting. Changing this forces a new resource to be created.
property storageAccountId
storageAccountId?: pulumi.Input<string>;With this parameter you can specify a storage account which should be used to send the logs to. Parameter must be a valid Azure Resource ID. Changing this forces a new resource to be created.
property targetResourceId
targetResourceId?: pulumi.Input<string>;The ID of an existing Resource on which to configure Diagnostic Settings. Changing this forces a new resource to be created.
interface GetActionGroupArgs
interface GetActionGroupArgsA collection of arguments for invoking getActionGroup.
property name
name: string;Specifies the name of the Action Group.
property resourceGroupName
resourceGroupName: string;Specifies the name of the resource group the Action Group is located in.
interface GetActionGroupResult
interface GetActionGroupResultA collection of values returned by getActionGroup.
property armRoleReceivers
armRoleReceivers: GetActionGroupArmRoleReceiver[];One or more armRoleReceiver blocks as defined below.
property automationRunbookReceivers
automationRunbookReceivers: GetActionGroupAutomationRunbookReceiver[];One or more automationRunbookReceiver blocks as defined below.
property azureAppPushReceivers
azureAppPushReceivers: GetActionGroupAzureAppPushReceiver[];One or more azureAppPushReceiver blocks as defined below.
property azureFunctionReceivers
azureFunctionReceivers: GetActionGroupAzureFunctionReceiver[];One or more azureFunctionReceiver blocks as defined below.
property emailReceivers
emailReceivers: GetActionGroupEmailReceiver[];One or more emailReceiver blocks as defined below.
property enabled
enabled: boolean;Whether this action group is enabled.
property id
id: string;The provider-assigned unique ID for this managed resource.
property itsmReceivers
itsmReceivers: GetActionGroupItsmReceiver[];One or more itsmReceiver blocks as defined below.
property logicAppReceivers
logicAppReceivers: GetActionGroupLogicAppReceiver[];One or more logicAppReceiver blocks as defined below.
property name
name: string;The name of the webhook receiver.
property resourceGroupName
resourceGroupName: string;property shortName
shortName: string;The short name of the action group.
property smsReceivers
smsReceivers: GetActionGroupSmsReceiver[];One or more smsReceiver blocks as defined below.
property voiceReceivers
voiceReceivers: GetActionGroupVoiceReceiver[];One or more voiceReceiver blocks as defined below.
property webhookReceivers
webhookReceivers: GetActionGroupWebhookReceiver[];One or more webhookReceiver blocks as defined below.
interface GetDiagnosticCategoriesArgs
interface GetDiagnosticCategoriesArgsA collection of arguments for invoking getDiagnosticCategories.
property resourceId
resourceId: string;The ID of an existing Resource which Monitor Diagnostics Categories should be retrieved for.
interface GetDiagnosticCategoriesResult
interface GetDiagnosticCategoriesResultA collection of values returned by getDiagnosticCategories.
property id
id: string;The provider-assigned unique ID for this managed resource.
property logs
logs: string[];A list of the Log Categories supported for this Resource.
property metrics
metrics: string[];A list of the Metric Categories supported for this Resource.
property resourceId
resourceId: string;interface GetLogProfileArgs
interface GetLogProfileArgsA collection of arguments for invoking getLogProfile.
property name
name: string;Specifies the Name of the Log Profile.
interface GetLogProfileResult
interface GetLogProfileResultA collection of values returned by getLogProfile.
property categories
categories: string[];List of categories of the logs.
property id
id: string;The provider-assigned unique ID for this managed resource.
property locations
locations: string[];List of regions for which Activity Log events are stored or streamed.
property name
name: string;property retentionPolicies
retentionPolicies: GetLogProfileRetentionPolicy[];property servicebusRuleId
servicebusRuleId: string;The service bus (or event hub) rule ID of the service bus (or event hub) namespace in which the Activity Log is streamed to.
property storageAccountId
storageAccountId: string;The resource id of the storage account in which the Activity Log is stored.
interface GetScheduledQueryRulesAlertArgs
interface GetScheduledQueryRulesAlertArgsA collection of arguments for invoking getScheduledQueryRulesAlert.
property name
name: string;Specifies the name of the scheduled query rule.
property resourceGroupName
resourceGroupName: string;Specifies the name of the resource group where the scheduled query rule is located.
interface GetScheduledQueryRulesAlertResult
interface GetScheduledQueryRulesAlertResultA collection of values returned by getScheduledQueryRulesAlert.
property actions
actions: GetScheduledQueryRulesAlertAction[];An action block as defined below.
property authorizedResourceIds
authorizedResourceIds: string[];List of Resource IDs referred into query.
property dataSourceId
dataSourceId: string;The resource URI over which log search query is to be run.
property description
description: string;The description of the scheduled query rule.
property enabled
enabled: boolean;Whether this scheduled query rule is enabled.
property frequency
frequency: number;Frequency at which rule condition should be evaluated.
property id
id: string;The provider-assigned unique ID for this managed resource.
property location
location: string;property name
name: string;property query
query: string;Log search query.
property queryType
queryType: string;property resourceGroupName
resourceGroupName: string;property severity
severity: number;Severity of the alert.
property tags
tags: {[key: string]: string};property throttling
throttling: number;Time for which alerts should be throttled or suppressed.
property timeWindow
timeWindow: number;Time window for which data needs to be fetched for query.
property triggers
triggers: GetScheduledQueryRulesAlertTrigger[];A trigger block as defined below.
interface GetScheduledQueryRulesLogArgs
interface GetScheduledQueryRulesLogArgsA collection of arguments for invoking getScheduledQueryRulesLog.
property name
name: string;Specifies the name of the scheduled query rule.
property resourceGroupName
resourceGroupName: string;Specifies the name of the resource group where the scheduled query rule is located.
interface GetScheduledQueryRulesLogResult
interface GetScheduledQueryRulesLogResultA collection of values returned by getScheduledQueryRulesLog.
property authorizedResourceIds
authorizedResourceIds: string[];property criterias
criterias: GetScheduledQueryRulesLogCriteria[];A criteria block as defined below.
property dataSourceId
dataSourceId: string;The resource URI over which log search query is to be run.
property description
description: string;The description of the scheduled query rule.
property enabled
enabled: boolean;Whether this scheduled query rule is enabled.
property id
id: string;The provider-assigned unique ID for this managed resource.
property location
location: string;property name
name: string;Name of the dimension.
property resourceGroupName
resourceGroupName: string;property tags
tags: {[key: string]: string};interface LogProfileArgs
interface LogProfileArgsThe set of arguments for constructing a LogProfile resource.
property categories
categories: pulumi.Input<pulumi.Input<string>[]>;List of categories of the logs.
property locations
locations: pulumi.Input<pulumi.Input<string>[]>;List of regions for which Activity Log events are stored or streamed.
property name
name?: pulumi.Input<string>;The name of the Log Profile. Changing this forces a new resource to be created.
property retentionPolicy
retentionPolicy: pulumi.Input<LogProfileRetentionPolicy>;A retentionPolicy block as documented below. A retention policy for how long Activity Logs are retained in the storage account.
property servicebusRuleId
servicebusRuleId?: pulumi.Input<string>;The service bus (or event hub) rule ID of the service bus (or event hub) namespace in which the Activity Log is streamed to. At least one of storageAccountId or servicebusRuleId must be set.
property storageAccountId
storageAccountId?: pulumi.Input<string>;The resource ID of the storage account in which the Activity Log is stored. At least one of storageAccountId or servicebusRuleId must be set.
interface LogProfileState
interface LogProfileStateInput properties used for looking up and filtering LogProfile resources.
property categories
categories?: pulumi.Input<pulumi.Input<string>[]>;List of categories of the logs.
property locations
locations?: pulumi.Input<pulumi.Input<string>[]>;List of regions for which Activity Log events are stored or streamed.
property name
name?: pulumi.Input<string>;The name of the Log Profile. Changing this forces a new resource to be created.
property retentionPolicy
retentionPolicy?: pulumi.Input<LogProfileRetentionPolicy>;A retentionPolicy block as documented below. A retention policy for how long Activity Logs are retained in the storage account.
property servicebusRuleId
servicebusRuleId?: pulumi.Input<string>;The service bus (or event hub) rule ID of the service bus (or event hub) namespace in which the Activity Log is streamed to. At least one of storageAccountId or servicebusRuleId must be set.
property storageAccountId
storageAccountId?: pulumi.Input<string>;The resource ID of the storage account in which the Activity Log is stored. At least one of storageAccountId or servicebusRuleId must be set.
interface MetricAlertArgs
interface MetricAlertArgsThe set of arguments for constructing a MetricAlert resource.
property actions
actions?: pulumi.Input<pulumi.Input<MetricAlertAction>[]>;One or more action blocks as defined below.
property autoMitigate
autoMitigate?: pulumi.Input<boolean>;Should the alerts in this Metric Alert be auto resolved? Defaults to true.
property criterias
criterias: pulumi.Input<pulumi.Input<MetricAlertCriteria>[]>;One or more criteria blocks as defined below.
property description
description?: pulumi.Input<string>;The description of this Metric Alert.
property enabled
enabled?: pulumi.Input<boolean>;Should this Metric Alert be enabled? Defaults to true.
property frequency
frequency?: pulumi.Input<string>;The evaluation frequency of this Metric Alert, represented in ISO 8601 duration format. Possible values are PT1M, PT5M, PT15M, PT30M and PT1H. Defaults to PT1M.
property name
name?: pulumi.Input<string>;The name of the Metric Alert. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName: pulumi.Input<string>;The name of the resource group in which to create the Metric Alert instance.
property scopes
scopes: pulumi.Input<string>;A set of strings of resource IDs at which the metric criteria should be applied.
property severity
severity?: pulumi.Input<number>;The severity of this Metric Alert. Possible values are 0, 1, 2, 3 and 4. Defaults to 3.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.
property windowSize
windowSize?: pulumi.Input<string>;The period of time that is used to monitor alert activity, represented in ISO 8601 duration format. This value must be greater than frequency. Possible values are PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H and P1D. Defaults to PT5M.
interface MetricAlertState
interface MetricAlertStateInput properties used for looking up and filtering MetricAlert resources.
property actions
actions?: pulumi.Input<pulumi.Input<MetricAlertAction>[]>;One or more action blocks as defined below.
property autoMitigate
autoMitigate?: pulumi.Input<boolean>;Should the alerts in this Metric Alert be auto resolved? Defaults to true.
property criterias
criterias?: pulumi.Input<pulumi.Input<MetricAlertCriteria>[]>;One or more criteria blocks as defined below.
property description
description?: pulumi.Input<string>;The description of this Metric Alert.
property enabled
enabled?: pulumi.Input<boolean>;Should this Metric Alert be enabled? Defaults to true.
property frequency
frequency?: pulumi.Input<string>;The evaluation frequency of this Metric Alert, represented in ISO 8601 duration format. Possible values are PT1M, PT5M, PT15M, PT30M and PT1H. Defaults to PT1M.
property name
name?: pulumi.Input<string>;The name of the Metric Alert. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName?: pulumi.Input<string>;The name of the resource group in which to create the Metric Alert instance.
property scopes
scopes?: pulumi.Input<string>;A set of strings of resource IDs at which the metric criteria should be applied.
property severity
severity?: pulumi.Input<number>;The severity of this Metric Alert. Possible values are 0, 1, 2, 3 and 4. Defaults to 3.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;A mapping of tags to assign to the resource.
property windowSize
windowSize?: pulumi.Input<string>;The period of time that is used to monitor alert activity, represented in ISO 8601 duration format. This value must be greater than frequency. Possible values are PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H and P1D. Defaults to PT5M.
interface ScheduledQueryRulesAlertArgs
interface ScheduledQueryRulesAlertArgsThe set of arguments for constructing a ScheduledQueryRulesAlert resource.
property action
action: pulumi.Input<ScheduledQueryRulesAlertAction>;An action block as defined below.
property authorizedResourceIds
authorizedResourceIds?: pulumi.Input<pulumi.Input<string>[]>;List of Resource IDs referred into query.
property dataSourceId
dataSourceId: pulumi.Input<string>;The resource URI over which log search query is to be run.
property description
description?: pulumi.Input<string>;The description of the scheduled query rule.
property enabled
enabled?: pulumi.Input<boolean>;Whether this scheduled query rule is enabled. Default is true.
property frequency
frequency: pulumi.Input<number>;Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive).
property location
location?: pulumi.Input<string>;property name
name?: pulumi.Input<string>;The name of the scheduled query rule. Changing this forces a new resource to be created.
property query
query: pulumi.Input<string>;Log search query.
property queryType
queryType?: pulumi.Input<string>;property resourceGroupName
resourceGroupName: pulumi.Input<string>;The name of the resource group in which to create the scheduled query rule instance.
property severity
severity?: pulumi.Input<number>;Severity of the alert. Possible values include: 0, 1, 2, 3, or 4.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;property throttling
throttling?: pulumi.Input<number>;Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive).
property timeWindow
timeWindow: pulumi.Input<number>;Time window for which data needs to be fetched for query (must be greater than or equal to frequency). Values must be between 5 and 2880 (inclusive).
property trigger
trigger: pulumi.Input<ScheduledQueryRulesAlertTrigger>;The condition that results in the alert rule being run.
interface ScheduledQueryRulesAlertState
interface ScheduledQueryRulesAlertStateInput properties used for looking up and filtering ScheduledQueryRulesAlert resources.
property action
action?: pulumi.Input<ScheduledQueryRulesAlertAction>;An action block as defined below.
property authorizedResourceIds
authorizedResourceIds?: pulumi.Input<pulumi.Input<string>[]>;List of Resource IDs referred into query.
property dataSourceId
dataSourceId?: pulumi.Input<string>;The resource URI over which log search query is to be run.
property description
description?: pulumi.Input<string>;The description of the scheduled query rule.
property enabled
enabled?: pulumi.Input<boolean>;Whether this scheduled query rule is enabled. Default is true.
property frequency
frequency?: pulumi.Input<number>;Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive).
property location
location?: pulumi.Input<string>;property name
name?: pulumi.Input<string>;The name of the scheduled query rule. Changing this forces a new resource to be created.
property query
query?: pulumi.Input<string>;Log search query.
property queryType
queryType?: pulumi.Input<string>;property resourceGroupName
resourceGroupName?: pulumi.Input<string>;The name of the resource group in which to create the scheduled query rule instance.
property severity
severity?: pulumi.Input<number>;Severity of the alert. Possible values include: 0, 1, 2, 3, or 4.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;property throttling
throttling?: pulumi.Input<number>;Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive).
property timeWindow
timeWindow?: pulumi.Input<number>;Time window for which data needs to be fetched for query (must be greater than or equal to frequency). Values must be between 5 and 2880 (inclusive).
property trigger
trigger?: pulumi.Input<ScheduledQueryRulesAlertTrigger>;The condition that results in the alert rule being run.
interface ScheduledQueryRulesLogArgs
interface ScheduledQueryRulesLogArgsThe set of arguments for constructing a ScheduledQueryRulesLog resource.
property authorizedResourceIds
authorizedResourceIds?: pulumi.Input<pulumi.Input<string>[]>;property criteria
criteria: pulumi.Input<ScheduledQueryRulesLogCriteria>;A criteria block as defined below.
property dataSourceId
dataSourceId: pulumi.Input<string>;The resource uri over which log search query is to be run.
property description
description?: pulumi.Input<string>;The description of the scheduled query rule.
property enabled
enabled?: pulumi.Input<boolean>;Whether this scheduled query rule is enabled. Default is true.
property location
location?: pulumi.Input<string>;property name
name?: pulumi.Input<string>;The name of the scheduled query rule. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName: pulumi.Input<string>;The name of the resource group in which to create the scheduled query rule instance.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;interface ScheduledQueryRulesLogState
interface ScheduledQueryRulesLogStateInput properties used for looking up and filtering ScheduledQueryRulesLog resources.
property authorizedResourceIds
authorizedResourceIds?: pulumi.Input<pulumi.Input<string>[]>;property criteria
criteria?: pulumi.Input<ScheduledQueryRulesLogCriteria>;A criteria block as defined below.
property dataSourceId
dataSourceId?: pulumi.Input<string>;The resource uri over which log search query is to be run.
property description
description?: pulumi.Input<string>;The description of the scheduled query rule.
property enabled
enabled?: pulumi.Input<boolean>;Whether this scheduled query rule is enabled. Default is true.
property location
location?: pulumi.Input<string>;property name
name?: pulumi.Input<string>;The name of the scheduled query rule. Changing this forces a new resource to be created.
property resourceGroupName
resourceGroupName?: pulumi.Input<string>;The name of the resource group in which to create the scheduled query rule instance.
property tags
tags?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;