ScheduledQueryRulesLog
Manages a LogToMetricAction Scheduled Query Rules resource within Azure Monitor.
Create a ScheduledQueryRulesLog Resource
new ScheduledQueryRulesLog(name: string, args: ScheduledQueryRulesLogArgs, opts?: CustomResourceOptions);def ScheduledQueryRulesLog(resource_name, opts=None, authorized_resource_ids=None, criteria=None, data_source_id=None, description=None, enabled=None, location=None, name=None, resource_group_name=None, tags=None, __props__=None);func NewScheduledQueryRulesLog(ctx *Context, name string, args ScheduledQueryRulesLogArgs, opts ...ResourceOption) (*ScheduledQueryRulesLog, error)public ScheduledQueryRulesLog(string name, ScheduledQueryRulesLogArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ScheduledQueryRulesLogArgs
- 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 ScheduledQueryRulesLogArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduledQueryRulesLogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ScheduledQueryRulesLog Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ScheduledQueryRulesLog resource accepts the following input properties:
- Criteria
Scheduled
Query Rules Log Criteria Args A
criteriablock as defined below.- Data
Source stringId The resource uri over which log search query is to be run.
- Resource
Group stringName The name of the resource group in which to create the scheduled query rule instance.
- List<string>
- 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.
- Dictionary<string, string>
- Criteria
Scheduled
Query Rules Log Criteria A
criteriablock as defined below.- Data
Source stringId The resource uri over which log search query is to be run.
- Resource
Group stringName The name of the resource group in which to create the scheduled query rule instance.
- []string
- 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.
- map[string]string
- criteria
Scheduled
Query Rules Log Criteria A
criteriablock as defined below.- data
Source stringId The resource uri over which log search query is to be run.
- resource
Group stringName The name of the resource group in which to create the scheduled query rule instance.
- string[]
- 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.
- {[key: string]: string}
- criteria
Dict[Scheduled
Query Rules Log Criteria] A
criteriablock as defined below.- data_
source_ strid The resource uri over which log search query is to be run.
- resource_
group_ strname The name of the resource group in which to create the scheduled query rule instance.
- List[str]
- 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.
- Dict[str, str]
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduledQueryRulesLog resource produces the following output properties:
Look up an Existing ScheduledQueryRulesLog Resource
Get an existing ScheduledQueryRulesLog 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?: ScheduledQueryRulesLogState, opts?: CustomResourceOptions): ScheduledQueryRulesLogstatic get(resource_name, id, opts=None, authorized_resource_ids=None, criteria=None, data_source_id=None, description=None, enabled=None, location=None, name=None, resource_group_name=None, tags=None, __props__=None);func GetScheduledQueryRulesLog(ctx *Context, name string, id IDInput, state *ScheduledQueryRulesLogState, opts ...ResourceOption) (*ScheduledQueryRulesLog, error)public static ScheduledQueryRulesLog Get(string name, Input<string> id, ScheduledQueryRulesLogState? 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:
- List<string>
- Criteria
Scheduled
Query Rules Log Criteria Args A
criteriablock as defined below.- 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.- Location string
- Name string
The name of the scheduled query rule. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the scheduled query rule instance.
- Dictionary<string, string>
- []string
- Criteria
Scheduled
Query Rules Log Criteria A
criteriablock as defined below.- 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.- Location string
- Name string
The name of the scheduled query rule. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the scheduled query rule instance.
- map[string]string
- string[]
- criteria
Scheduled
Query Rules Log Criteria A
criteriablock as defined below.- 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.- location string
- name string
The name of the scheduled query rule. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which to create the scheduled query rule instance.
- {[key: string]: string}
- List[str]
- criteria
Dict[Scheduled
Query Rules Log Criteria] A
criteriablock as defined below.- 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.- location str
- name str
The name of the scheduled query rule. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which to create the scheduled query rule instance.
- Dict[str, str]
Supporting Types
ScheduledQueryRulesLogCriteria
- Dimensions
List<Scheduled
Query Rules Log Criteria Dimension Args> A
dimensionblock as defined below.- Metric
Name string Name of the metric. Supported metrics are listed in the Azure Monitor Microsoft.OperationalInsights/workspaces metrics namespace.
- Dimensions
[]Scheduled
Query Rules Log Criteria Dimension A
dimensionblock as defined below.- Metric
Name string Name of the metric. Supported metrics are listed in the Azure Monitor Microsoft.OperationalInsights/workspaces metrics namespace.
- dimensions
Scheduled
Query Rules Log Criteria Dimension[] A
dimensionblock as defined below.- metric
Name string Name of the metric. Supported metrics are listed in the Azure Monitor Microsoft.OperationalInsights/workspaces metrics namespace.
- dimensions
List[Scheduled
Query Rules Log Criteria Dimension] A
dimensionblock as defined below.- metric
Name str Name of the metric. Supported metrics are listed in the Azure Monitor Microsoft.OperationalInsights/workspaces metrics namespace.
ScheduledQueryRulesLogCriteriaDimension
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.