These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
azure-native.insights.getScheduledQueryRule
Explore with Pulumi AI
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
Gets an Log Search rule API Version: 2018-04-16.
Using getScheduledQueryRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getScheduledQueryRule(args: GetScheduledQueryRuleArgs, opts?: InvokeOptions): Promise<GetScheduledQueryRuleResult>
function getScheduledQueryRuleOutput(args: GetScheduledQueryRuleOutputArgs, opts?: InvokeOptions): Output<GetScheduledQueryRuleResult>
def get_scheduled_query_rule(resource_group_name: Optional[str] = None,
rule_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetScheduledQueryRuleResult
def get_scheduled_query_rule_output(resource_group_name: Optional[pulumi.Input[str]] = None,
rule_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetScheduledQueryRuleResult]
func LookupScheduledQueryRule(ctx *Context, args *LookupScheduledQueryRuleArgs, opts ...InvokeOption) (*LookupScheduledQueryRuleResult, error)
func LookupScheduledQueryRuleOutput(ctx *Context, args *LookupScheduledQueryRuleOutputArgs, opts ...InvokeOption) LookupScheduledQueryRuleResultOutput
> Note: This function is named LookupScheduledQueryRule
in the Go SDK.
public static class GetScheduledQueryRule
{
public static Task<GetScheduledQueryRuleResult> InvokeAsync(GetScheduledQueryRuleArgs args, InvokeOptions? opts = null)
public static Output<GetScheduledQueryRuleResult> Invoke(GetScheduledQueryRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetScheduledQueryRuleResult> getScheduledQueryRule(GetScheduledQueryRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:insights:getScheduledQueryRule
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Rule
Name string - The name of the rule.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Rule
Name string - The name of the rule.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- rule
Name String - The name of the rule.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- rule
Name string - The name of the rule.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- rule_
name str - The name of the rule.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- rule
Name String - The name of the rule.
getScheduledQueryRule Result
The following output properties are available:
- Action
Pulumi.
Azure | Pulumi.Native. Insights. Outputs. Alerting Action Response Azure Native. Insights. Outputs. Log To Metric Action Response - Action needs to be taken on rule execution.
- Created
With stringApi Version - The api-version used when creating this alert rule
- Etag string
- The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- Id string
- Azure resource Id
- Is
Legacy boolLog Analytics Rule - True if alert rule is legacy Log Analytic rule
- Kind string
- Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- Last
Updated stringTime - Last time the rule was updated in IS08601 format.
- Location string
- Resource location
- Name string
- Azure resource name
- Provisioning
State string - Provisioning state of the scheduled query rule
- Source
Pulumi.
Azure Native. Insights. Outputs. Source Response - Data Source against which rule will Query Data
- Type string
- Azure resource type
- Auto
Mitigate bool - The flag that indicates whether the alert should be automatically resolved or not. The default is false.
- Description string
- The description of the Log Search rule.
- Display
Name string - The display name of the alert rule
- Enabled string
- The flag which indicates whether the Log Search rule is enabled. Value should be true or false
- Schedule
Pulumi.
Azure Native. Insights. Outputs. Schedule Response - Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction
- Dictionary<string, string>
- Resource tags
- Action
Alerting
Action | LogResponse To Metric Action Response - Action needs to be taken on rule execution.
- Created
With stringApi Version - The api-version used when creating this alert rule
- Etag string
- The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- Id string
- Azure resource Id
- Is
Legacy boolLog Analytics Rule - True if alert rule is legacy Log Analytic rule
- Kind string
- Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- Last
Updated stringTime - Last time the rule was updated in IS08601 format.
- Location string
- Resource location
- Name string
- Azure resource name
- Provisioning
State string - Provisioning state of the scheduled query rule
- Source
Source
Response - Data Source against which rule will Query Data
- Type string
- Azure resource type
- Auto
Mitigate bool - The flag that indicates whether the alert should be automatically resolved or not. The default is false.
- Description string
- The description of the Log Search rule.
- Display
Name string - The display name of the alert rule
- Enabled string
- The flag which indicates whether the Log Search rule is enabled. Value should be true or false
- Schedule
Schedule
Response - Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction
- map[string]string
- Resource tags
- action
Alerting
Action | LogResponse To Metric Action Response - Action needs to be taken on rule execution.
- created
With StringApi Version - The api-version used when creating this alert rule
- etag String
- The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- id String
- Azure resource Id
- is
Legacy BooleanLog Analytics Rule - True if alert rule is legacy Log Analytic rule
- kind String
- Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- last
Updated StringTime - Last time the rule was updated in IS08601 format.
- location String
- Resource location
- name String
- Azure resource name
- provisioning
State String - Provisioning state of the scheduled query rule
- source
Source
Response - Data Source against which rule will Query Data
- type String
- Azure resource type
- auto
Mitigate Boolean - The flag that indicates whether the alert should be automatically resolved or not. The default is false.
- description String
- The description of the Log Search rule.
- display
Name String - The display name of the alert rule
- enabled String
- The flag which indicates whether the Log Search rule is enabled. Value should be true or false
- schedule
Schedule
Response - Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction
- Map<String,String>
- Resource tags
- action
Alerting
Action | LogResponse To Metric Action Response - Action needs to be taken on rule execution.
- created
With stringApi Version - The api-version used when creating this alert rule
- etag string
- The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- id string
- Azure resource Id
- is
Legacy booleanLog Analytics Rule - True if alert rule is legacy Log Analytic rule
- kind string
- Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- last
Updated stringTime - Last time the rule was updated in IS08601 format.
- location string
- Resource location
- name string
- Azure resource name
- provisioning
State string - Provisioning state of the scheduled query rule
- source
Source
Response - Data Source against which rule will Query Data
- type string
- Azure resource type
- auto
Mitigate boolean - The flag that indicates whether the alert should be automatically resolved or not. The default is false.
- description string
- The description of the Log Search rule.
- display
Name string - The display name of the alert rule
- enabled string
- The flag which indicates whether the Log Search rule is enabled. Value should be true or false
- schedule
Schedule
Response - Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction
- {[key: string]: string}
- Resource tags
- action
Alerting
Action | LogResponse To Metric Action Response - Action needs to be taken on rule execution.
- created_
with_ strapi_ version - The api-version used when creating this alert rule
- etag str
- The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- id str
- Azure resource Id
- is_
legacy_ boollog_ analytics_ rule - True if alert rule is legacy Log Analytic rule
- kind str
- Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- last_
updated_ strtime - Last time the rule was updated in IS08601 format.
- location str
- Resource location
- name str
- Azure resource name
- provisioning_
state str - Provisioning state of the scheduled query rule
- source
Source
Response - Data Source against which rule will Query Data
- type str
- Azure resource type
- auto_
mitigate bool - The flag that indicates whether the alert should be automatically resolved or not. The default is false.
- description str
- The description of the Log Search rule.
- display_
name str - The display name of the alert rule
- enabled str
- The flag which indicates whether the Log Search rule is enabled. Value should be true or false
- schedule
Schedule
Response - Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction
- Mapping[str, str]
- Resource tags
- action Property Map | Property Map
- Action needs to be taken on rule execution.
- created
With StringApi Version - The api-version used when creating this alert rule
- etag String
- The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- id String
- Azure resource Id
- is
Legacy BooleanLog Analytics Rule - True if alert rule is legacy Log Analytic rule
- kind String
- Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
- last
Updated StringTime - Last time the rule was updated in IS08601 format.
- location String
- Resource location
- name String
- Azure resource name
- provisioning
State String - Provisioning state of the scheduled query rule
- source Property Map
- Data Source against which rule will Query Data
- type String
- Azure resource type
- auto
Mitigate Boolean - The flag that indicates whether the alert should be automatically resolved or not. The default is false.
- description String
- The description of the Log Search rule.
- display
Name String - The display name of the alert rule
- enabled String
- The flag which indicates whether the Log Search rule is enabled. Value should be true or false
- schedule Property Map
- Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction
- Map<String>
- Resource tags
Supporting Types
AlertingActionResponse
- Severity string
- Severity of the alert
- Trigger
Pulumi.
Azure Native. Insights. Inputs. Trigger Condition Response - The trigger condition that results in the alert rule being.
- Azns
Action Pulumi.Azure Native. Insights. Inputs. Az Ns Action Group Response - Azure action group reference.
- Throttling
In intMin - time (in minutes) for which Alerts should be throttled or suppressed.
- Severity string
- Severity of the alert
- Trigger
Trigger
Condition Response - The trigger condition that results in the alert rule being.
- Azns
Action AzNs Action Group Response - Azure action group reference.
- Throttling
In intMin - time (in minutes) for which Alerts should be throttled or suppressed.
- severity String
- Severity of the alert
- trigger
Trigger
Condition Response - The trigger condition that results in the alert rule being.
- azns
Action AzNs Action Group Response - Azure action group reference.
- throttling
In IntegerMin - time (in minutes) for which Alerts should be throttled or suppressed.
- severity string
- Severity of the alert
- trigger
Trigger
Condition Response - The trigger condition that results in the alert rule being.
- azns
Action AzNs Action Group Response - Azure action group reference.
- throttling
In numberMin - time (in minutes) for which Alerts should be throttled or suppressed.
- severity str
- Severity of the alert
- trigger
Trigger
Condition Response - The trigger condition that results in the alert rule being.
- azns_
action AzNs Action Group Response - Azure action group reference.
- throttling_
in_ intmin - time (in minutes) for which Alerts should be throttled or suppressed.
- severity String
- Severity of the alert
- trigger Property Map
- The trigger condition that results in the alert rule being.
- azns
Action Property Map - Azure action group reference.
- throttling
In NumberMin - time (in minutes) for which Alerts should be throttled or suppressed.
AzNsActionGroupResponse
- Action
Group List<string> - Azure Action Group reference.
- Custom
Webhook stringPayload - Custom payload to be sent for all webhook URI in Azure action group
- Email
Subject string - Custom subject override for all email ids in Azure action group
- Action
Group []string - Azure Action Group reference.
- Custom
Webhook stringPayload - Custom payload to be sent for all webhook URI in Azure action group
- Email
Subject string - Custom subject override for all email ids in Azure action group
- action
Group List<String> - Azure Action Group reference.
- custom
Webhook StringPayload - Custom payload to be sent for all webhook URI in Azure action group
- email
Subject String - Custom subject override for all email ids in Azure action group
- action
Group string[] - Azure Action Group reference.
- custom
Webhook stringPayload - Custom payload to be sent for all webhook URI in Azure action group
- email
Subject string - Custom subject override for all email ids in Azure action group
- action_
group Sequence[str] - Azure Action Group reference.
- custom_
webhook_ strpayload - Custom payload to be sent for all webhook URI in Azure action group
- email_
subject str - Custom subject override for all email ids in Azure action group
- action
Group List<String> - Azure Action Group reference.
- custom
Webhook StringPayload - Custom payload to be sent for all webhook URI in Azure action group
- email
Subject String - Custom subject override for all email ids in Azure action group
CriteriaResponse
- Metric
Name string - Name of the metric
- Dimensions
List<Pulumi.
Azure Native. Insights. Inputs. Dimension Response> - List of Dimensions for creating metric
- Metric
Name string - Name of the metric
- Dimensions
[]Dimension
Response - List of Dimensions for creating metric
- metric
Name String - Name of the metric
- dimensions
List<Dimension
Response> - List of Dimensions for creating metric
- metric
Name string - Name of the metric
- dimensions
Dimension
Response[] - List of Dimensions for creating metric
- metric_
name str - Name of the metric
- dimensions
Sequence[Dimension
Response] - List of Dimensions for creating metric
- metric
Name String - Name of the metric
- dimensions List<Property Map>
- List of Dimensions for creating metric
DimensionResponse
LogMetricTriggerResponse
- Metric
Column string - Evaluation of metric on a particular column
- Metric
Trigger stringType - Metric Trigger Type - 'Consecutive' or 'Total'
- Threshold double
- The threshold of the metric trigger.
- Threshold
Operator string - Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.
- Metric
Column string - Evaluation of metric on a particular column
- Metric
Trigger stringType - Metric Trigger Type - 'Consecutive' or 'Total'
- Threshold float64
- The threshold of the metric trigger.
- Threshold
Operator string - Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.
- metric
Column String - Evaluation of metric on a particular column
- metric
Trigger StringType - Metric Trigger Type - 'Consecutive' or 'Total'
- threshold Double
- The threshold of the metric trigger.
- threshold
Operator String - Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.
- metric
Column string - Evaluation of metric on a particular column
- metric
Trigger stringType - Metric Trigger Type - 'Consecutive' or 'Total'
- threshold number
- The threshold of the metric trigger.
- threshold
Operator string - Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.
- metric_
column str - Evaluation of metric on a particular column
- metric_
trigger_ strtype - Metric Trigger Type - 'Consecutive' or 'Total'
- threshold float
- The threshold of the metric trigger.
- threshold_
operator str - Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.
- metric
Column String - Evaluation of metric on a particular column
- metric
Trigger StringType - Metric Trigger Type - 'Consecutive' or 'Total'
- threshold Number
- The threshold of the metric trigger.
- threshold
Operator String - Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.
LogToMetricActionResponse
- Criteria
List<Pulumi.
Azure Native. Insights. Inputs. Criteria Response> - Criteria of Metric
- Criteria
[]Criteria
Response - Criteria of Metric
- criteria
List<Criteria
Response> - Criteria of Metric
- criteria
Criteria
Response[] - Criteria of Metric
- criteria
Sequence[Criteria
Response] - Criteria of Metric
- criteria List<Property Map>
- Criteria of Metric
ScheduleResponse
- Frequency
In intMinutes - frequency (in minutes) at which rule condition should be evaluated.
- Time
Window intIn Minutes - Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).
- Frequency
In intMinutes - frequency (in minutes) at which rule condition should be evaluated.
- Time
Window intIn Minutes - Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).
- frequency
In IntegerMinutes - frequency (in minutes) at which rule condition should be evaluated.
- time
Window IntegerIn Minutes - Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).
- frequency
In numberMinutes - frequency (in minutes) at which rule condition should be evaluated.
- time
Window numberIn Minutes - Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).
- frequency_
in_ intminutes - frequency (in minutes) at which rule condition should be evaluated.
- time_
window_ intin_ minutes - Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).
- frequency
In NumberMinutes - frequency (in minutes) at which rule condition should be evaluated.
- time
Window NumberIn Minutes - Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes).
SourceResponse
- Data
Source stringId - The resource uri over which log search query is to be run.
- List<string>
- List of Resource referred into query
- Query string
- Log search query. Required for action type - AlertingAction
- Query
Type string - Set value to 'ResultCount' .
- Data
Source stringId - The resource uri over which log search query is to be run.
- []string
- List of Resource referred into query
- Query string
- Log search query. Required for action type - AlertingAction
- Query
Type string - Set value to 'ResultCount' .
- data
Source StringId - The resource uri over which log search query is to be run.
- List<String>
- List of Resource referred into query
- query String
- Log search query. Required for action type - AlertingAction
- query
Type String - Set value to 'ResultCount' .
- data
Source stringId - The resource uri over which log search query is to be run.
- string[]
- List of Resource referred into query
- query string
- Log search query. Required for action type - AlertingAction
- query
Type string - Set value to 'ResultCount' .
- data_
source_ strid - The resource uri over which log search query is to be run.
- Sequence[str]
- List of Resource referred into query
- query str
- Log search query. Required for action type - AlertingAction
- query_
type str - Set value to 'ResultCount' .
- data
Source StringId - The resource uri over which log search query is to be run.
- List<String>
- List of Resource referred into query
- query String
- Log search query. Required for action type - AlertingAction
- query
Type String - Set value to 'ResultCount' .
TriggerConditionResponse
- Threshold double
- Result or count threshold based on which rule should be triggered.
- Threshold
Operator string - Evaluation operation for rule - 'GreaterThan' or 'LessThan.
- Metric
Trigger Pulumi.Azure Native. Insights. Inputs. Log Metric Trigger Response - Trigger condition for metric query rule
- Threshold float64
- Result or count threshold based on which rule should be triggered.
- Threshold
Operator string - Evaluation operation for rule - 'GreaterThan' or 'LessThan.
- Metric
Trigger LogMetric Trigger Response - Trigger condition for metric query rule
- threshold Double
- Result or count threshold based on which rule should be triggered.
- threshold
Operator String - Evaluation operation for rule - 'GreaterThan' or 'LessThan.
- metric
Trigger LogMetric Trigger Response - Trigger condition for metric query rule
- threshold number
- Result or count threshold based on which rule should be triggered.
- threshold
Operator string - Evaluation operation for rule - 'GreaterThan' or 'LessThan.
- metric
Trigger LogMetric Trigger Response - Trigger condition for metric query rule
- threshold float
- Result or count threshold based on which rule should be triggered.
- threshold_
operator str - Evaluation operation for rule - 'GreaterThan' or 'LessThan.
- metric_
trigger LogMetric Trigger Response - Trigger condition for metric query rule
- threshold Number
- Result or count threshold based on which rule should be triggered.
- threshold
Operator String - Evaluation operation for rule - 'GreaterThan' or 'LessThan.
- metric
Trigger Property Map - Trigger condition for metric query rule
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi