ScheduledQueryRulesLog

Manages a LogToMetricAction Scheduled Query Rules resource within Azure Monitor.

Create a ScheduledQueryRulesLog Resource

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);
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 ScheduledQueryRulesLogCriteriaArgs

A criteria block as defined below.

DataSourceId string

The resource uri over which log search query is to be run.

ResourceGroupName string

The name of the resource group in which to create the scheduled query rule instance.

AuthorizedResourceIds 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.

Tags Dictionary<string, string>
Criteria ScheduledQueryRulesLogCriteria

A criteria block as defined below.

DataSourceId string

The resource uri over which log search query is to be run.

ResourceGroupName string

The name of the resource group in which to create the scheduled query rule instance.

AuthorizedResourceIds []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.

Tags map[string]string
criteria ScheduledQueryRulesLogCriteria

A criteria block as defined below.

dataSourceId string

The resource uri over which log search query is to be run.

resourceGroupName string

The name of the resource group in which to create the scheduled query rule instance.

authorizedResourceIds 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.

tags {[key: string]: string}
criteria Dict[ScheduledQueryRulesLogCriteria]

A criteria block as defined below.

data_source_id str

The resource uri over which log search query is to be run.

resource_group_name str

The name of the resource group in which to create the scheduled query rule instance.

authorized_resource_ids 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.

tags Dict[str, str]

Outputs

All input properties are implicitly available as output properties. Additionally, the ScheduledQueryRulesLog resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

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.

static 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)
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:

AuthorizedResourceIds List<string>
Criteria ScheduledQueryRulesLogCriteriaArgs

A criteria block as defined below.

DataSourceId string

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.

ResourceGroupName string

The name of the resource group in which to create the scheduled query rule instance.

Tags Dictionary<string, string>
AuthorizedResourceIds []string
Criteria ScheduledQueryRulesLogCriteria

A criteria block as defined below.

DataSourceId string

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.

ResourceGroupName string

The name of the resource group in which to create the scheduled query rule instance.

Tags map[string]string
authorizedResourceIds string[]
criteria ScheduledQueryRulesLogCriteria

A criteria block as defined below.

dataSourceId string

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.

resourceGroupName string

The name of the resource group in which to create the scheduled query rule instance.

tags {[key: string]: string}
authorized_resource_ids List[str]
criteria Dict[ScheduledQueryRulesLogCriteria]

A criteria block as defined below.

data_source_id str

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_name str

The name of the resource group in which to create the scheduled query rule instance.

tags Dict[str, str]

Supporting Types

ScheduledQueryRulesLogCriteria

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Dimensions List<ScheduledQueryRulesLogCriteriaDimensionArgs>

A dimension block as defined below.

MetricName string

Name of the metric. Supported metrics are listed in the Azure Monitor Microsoft.OperationalInsights/workspaces metrics namespace.

Dimensions []ScheduledQueryRulesLogCriteriaDimension

A dimension block as defined below.

MetricName string

Name of the metric. Supported metrics are listed in the Azure Monitor Microsoft.OperationalInsights/workspaces metrics namespace.

dimensions ScheduledQueryRulesLogCriteriaDimension[]

A dimension block as defined below.

metricName string

Name of the metric. Supported metrics are listed in the Azure Monitor Microsoft.OperationalInsights/workspaces metrics namespace.

dimensions List[ScheduledQueryRulesLogCriteriaDimension]

A dimension block as defined below.

metricName str

Name of the metric. Supported metrics are listed in the Azure Monitor Microsoft.OperationalInsights/workspaces metrics namespace.

ScheduledQueryRulesLogCriteriaDimension

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string

Name of the dimension.

Values List<string>

List of dimension values.

Operator string

Operator for dimension values, - ‘Include’.

Name string

Name of the dimension.

Values []string

List of dimension values.

Operator string

Operator for dimension values, - ‘Include’.

name string

Name of the dimension.

values string[]

List of dimension values.

operator string

Operator for dimension values, - ‘Include’.

name str

Name of the dimension.

values List[str]

List of dimension values.

operator str

Operator for dimension values, - ‘Include’.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.