ScheduledQueryRulesAlert
Manages an AlertingAction Scheduled Query Rules resource within Azure Monitor.
Create a ScheduledQueryRulesAlert Resource
new ScheduledQueryRulesAlert(name: string, args: ScheduledQueryRulesAlertArgs, opts?: CustomResourceOptions);def ScheduledQueryRulesAlert(resource_name, opts=None, action=None, authorized_resource_ids=None, data_source_id=None, description=None, enabled=None, frequency=None, location=None, name=None, query=None, query_type=None, resource_group_name=None, severity=None, tags=None, throttling=None, time_window=None, trigger=None, __props__=None);func NewScheduledQueryRulesAlert(ctx *Context, name string, args ScheduledQueryRulesAlertArgs, opts ...ResourceOption) (*ScheduledQueryRulesAlert, error)public ScheduledQueryRulesAlert(string name, ScheduledQueryRulesAlertArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ScheduledQueryRulesAlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ScheduledQueryRulesAlertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduledQueryRulesAlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ScheduledQueryRulesAlert Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ScheduledQueryRulesAlert resource accepts the following input properties:
- Action
Scheduled
Query Rules Alert Action Args An
actionblock as defined below.- Data
Source stringId The resource URI over which log search query is to be run.
- Frequency int
Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive).
- Query string
Log search query.
- Resource
Group stringName The name of the resource group in which to create the scheduled query rule instance.
- Time
Window int 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).- Trigger
Scheduled
Query Rules Alert Trigger Args The condition that results in the alert rule being run.
- List<string>
List of Resource IDs referred into query.
- Description string
The description of the scheduled query rule.
- Enabled bool
Whether this scheduled query rule is enabled. Default is
true.- Location string
- Name string
The name of the scheduled query rule. Changing this forces a new resource to be created.
- Query
Type string - Severity int
Severity of the alert. Possible values include: 0, 1, 2, 3, or 4.
- Dictionary<string, string>
- Throttling int
Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive).
- Action
Scheduled
Query Rules Alert Action An
actionblock as defined below.- Data
Source stringId The resource URI over which log search query is to be run.
- Frequency int
Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive).
- Query string
Log search query.
- Resource
Group stringName The name of the resource group in which to create the scheduled query rule instance.
- Time
Window int 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).- Trigger
Scheduled
Query Rules Alert Trigger The condition that results in the alert rule being run.
- []string
List of Resource IDs referred into query.
- Description string
The description of the scheduled query rule.
- Enabled bool
Whether this scheduled query rule is enabled. Default is
true.- Location string
- Name string
The name of the scheduled query rule. Changing this forces a new resource to be created.
- Query
Type string - Severity int
Severity of the alert. Possible values include: 0, 1, 2, 3, or 4.
- map[string]string
- Throttling int
Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive).
- action
Scheduled
Query Rules Alert Action An
actionblock as defined below.- data
Source stringId The resource URI over which log search query is to be run.
- frequency number
Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive).
- query string
Log search query.
- resource
Group stringName The name of the resource group in which to create the scheduled query rule instance.
- time
Window 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).- trigger
Scheduled
Query Rules Alert Trigger The condition that results in the alert rule being run.
- string[]
List of Resource IDs referred into query.
- description string
The description of the scheduled query rule.
- enabled boolean
Whether this scheduled query rule is enabled. Default is
true.- location string
- name string
The name of the scheduled query rule. Changing this forces a new resource to be created.
- query
Type string - severity number
Severity of the alert. Possible values include: 0, 1, 2, 3, or 4.
- {[key: string]: string}
- throttling number
Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive).
- action
Dict[Scheduled
Query Rules Alert Action] An
actionblock as defined below.- data_
source_ strid The resource URI over which log search query is to be run.
- frequency float
Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive).
- query str
Log search query.
- resource_
group_ strname The name of the resource group in which to create the scheduled query rule instance.
- time_
window float 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).- trigger
Dict[Scheduled
Query Rules Alert Trigger] The condition that results in the alert rule being run.
- List[str]
List of Resource IDs referred into query.
- description str
The description of the scheduled query rule.
- enabled bool
Whether this scheduled query rule is enabled. Default is
true.- location str
- name str
The name of the scheduled query rule. Changing this forces a new resource to be created.
- query_
type str - severity float
Severity of the alert. Possible values include: 0, 1, 2, 3, or 4.
- Dict[str, str]
- throttling float
Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive).
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduledQueryRulesAlert resource produces the following output properties:
Look up an Existing ScheduledQueryRulesAlert Resource
Get an existing ScheduledQueryRulesAlert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ScheduledQueryRulesAlertState, opts?: CustomResourceOptions): ScheduledQueryRulesAlertstatic get(resource_name, id, opts=None, action=None, authorized_resource_ids=None, data_source_id=None, description=None, enabled=None, frequency=None, location=None, name=None, query=None, query_type=None, resource_group_name=None, severity=None, tags=None, throttling=None, time_window=None, trigger=None, __props__=None);func GetScheduledQueryRulesAlert(ctx *Context, name string, id IDInput, state *ScheduledQueryRulesAlertState, opts ...ResourceOption) (*ScheduledQueryRulesAlert, error)public static ScheduledQueryRulesAlert Get(string name, Input<string> id, ScheduledQueryRulesAlertState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Action
Scheduled
Query Rules Alert Action Args An
actionblock as defined below.- List<string>
List of Resource IDs referred into query.
- Data
Source stringId The resource URI over which log search query is to be run.
- Description string
The description of the scheduled query rule.
- Enabled bool
Whether this scheduled query rule is enabled. Default is
true.- Frequency int
Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive).
- Location string
- Name string
The name of the scheduled query rule. Changing this forces a new resource to be created.
- Query string
Log search query.
- Query
Type string - Resource
Group stringName The name of the resource group in which to create the scheduled query rule instance.
- Severity int
Severity of the alert. Possible values include: 0, 1, 2, 3, or 4.
- Dictionary<string, string>
- Throttling int
Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive).
- Time
Window int 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).- Trigger
Scheduled
Query Rules Alert Trigger Args The condition that results in the alert rule being run.
- Action
Scheduled
Query Rules Alert Action An
actionblock as defined below.- []string
List of Resource IDs referred into query.
- Data
Source stringId The resource URI over which log search query is to be run.
- Description string
The description of the scheduled query rule.
- Enabled bool
Whether this scheduled query rule is enabled. Default is
true.- Frequency int
Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive).
- Location string
- Name string
The name of the scheduled query rule. Changing this forces a new resource to be created.
- Query string
Log search query.
- Query
Type string - Resource
Group stringName The name of the resource group in which to create the scheduled query rule instance.
- Severity int
Severity of the alert. Possible values include: 0, 1, 2, 3, or 4.
- map[string]string
- Throttling int
Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive).
- Time
Window int 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).- Trigger
Scheduled
Query Rules Alert Trigger The condition that results in the alert rule being run.
- action
Scheduled
Query Rules Alert Action An
actionblock as defined below.- string[]
List of Resource IDs referred into query.
- data
Source stringId The resource URI over which log search query is to be run.
- description string
The description of the scheduled query rule.
- enabled boolean
Whether this scheduled query rule is enabled. Default is
true.- frequency number
Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive).
- location string
- name string
The name of the scheduled query rule. Changing this forces a new resource to be created.
- query string
Log search query.
- query
Type string - resource
Group stringName The name of the resource group in which to create the scheduled query rule instance.
- severity number
Severity of the alert. Possible values include: 0, 1, 2, 3, or 4.
- {[key: string]: string}
- throttling number
Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive).
- time
Window 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).- trigger
Scheduled
Query Rules Alert Trigger The condition that results in the alert rule being run.
- action
Dict[Scheduled
Query Rules Alert Action] An
actionblock as defined below.- List[str]
List of Resource IDs referred into query.
- data_
source_ strid The resource URI over which log search query is to be run.
- description str
The description of the scheduled query rule.
- enabled bool
Whether this scheduled query rule is enabled. Default is
true.- frequency float
Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive).
- location str
- name str
The name of the scheduled query rule. Changing this forces a new resource to be created.
- query str
Log search query.
- query_
type str - resource_
group_ strname The name of the resource group in which to create the scheduled query rule instance.
- severity float
Severity of the alert. Possible values include: 0, 1, 2, 3, or 4.
- Dict[str, str]
- throttling float
Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive).
- time_
window float 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).- trigger
Dict[Scheduled
Query Rules Alert Trigger] The condition that results in the alert rule being run.
Supporting Types
ScheduledQueryRulesAlertAction
- Action
Groups List<string> List of action group reference resource IDs.
- Custom
Webhook stringPayload Custom payload to be sent for all webhook payloads in alerting action.
- Email
Subject string Custom subject override for all email ids in Azure action group.
- Action
Groups []string List of action group reference resource IDs.
- Custom
Webhook stringPayload Custom payload to be sent for all webhook payloads in alerting action.
- Email
Subject string Custom subject override for all email ids in Azure action group.
- action
Groups string[] List of action group reference resource IDs.
- custom
Webhook stringPayload Custom payload to be sent for all webhook payloads in alerting action.
- email
Subject string Custom subject override for all email ids in Azure action group.
- action
Groups List[str] List of action group reference resource IDs.
- custom
Webhook strPayload Custom payload to be sent for all webhook payloads in alerting action.
- email
Subject str Custom subject override for all email ids in Azure action group.
ScheduledQueryRulesAlertTrigger
- Operator string
Evaluation operation for rule - ‘Equal’, ‘GreaterThan’ or ‘LessThan’.
- Threshold double
Result or count threshold based on which rule should be triggered. Values must be between 0 and 10000 inclusive.
- Metric
Trigger ScheduledQuery Rules Alert Trigger Metric Trigger Args
- Operator string
Evaluation operation for rule - ‘Equal’, ‘GreaterThan’ or ‘LessThan’.
- Threshold float64
Result or count threshold based on which rule should be triggered. Values must be between 0 and 10000 inclusive.
- Metric
Trigger ScheduledQuery Rules Alert Trigger Metric Trigger
- operator string
Evaluation operation for rule - ‘Equal’, ‘GreaterThan’ or ‘LessThan’.
- threshold number
Result or count threshold based on which rule should be triggered. Values must be between 0 and 10000 inclusive.
- metric
Trigger ScheduledQuery Rules Alert Trigger Metric Trigger
- operator str
Evaluation operation for rule - ‘Equal’, ‘GreaterThan’ or ‘LessThan’.
- threshold float
Result or count threshold based on which rule should be triggered. Values must be between 0 and 10000 inclusive.
- metric
Trigger Dict[ScheduledQuery Rules Alert Trigger Metric Trigger]
ScheduledQueryRulesAlertTriggerMetricTrigger
- Metric
Column string - Metric
Trigger stringType - Operator string
Evaluation operation for rule - ‘Equal’, ‘GreaterThan’ or ‘LessThan’.
- Threshold double
The threshold of the metric trigger. Values must be between 0 and 10000 inclusive.
- Metric
Column string - Metric
Trigger stringType - Operator string
Evaluation operation for rule - ‘Equal’, ‘GreaterThan’ or ‘LessThan’.
- Threshold float64
The threshold of the metric trigger. Values must be between 0 and 10000 inclusive.
- metric
Column string - metric
Trigger stringType - operator string
Evaluation operation for rule - ‘Equal’, ‘GreaterThan’ or ‘LessThan’.
- threshold number
The threshold of the metric trigger. Values must be between 0 and 10000 inclusive.
- metric
Column str - metric
Trigger strType - operator str
Evaluation operation for rule - ‘Equal’, ‘GreaterThan’ or ‘LessThan’.
- threshold float
The threshold of the metric trigger. Values must be between 0 and 10000 inclusive.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.