Data Source: azurermMonitorScheduledQueryRulesLog
Use this data source to access the properties of a LogToMetricAction scheduled query rule.
Example Usage
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermMonitorScheduledQueryRulesLogExample =
new azurerm.dataAzurermMonitorScheduledQueryRulesLog.DataAzurermMonitorScheduledQueryRulesLog(
this,
"example",
{
name: "tfex-queryrule",
resource_group_name: "terraform-example-rg",
}
);
new cdktf.TerraformOutput(this, "query_rule_id", {
value: dataAzurermMonitorScheduledQueryRulesLogExample.id,
});
Argument Reference
name
- (Required) Specifies the name of the scheduled query rule.resourceGroupName
- (Required) Specifies the name of the resource group where the scheduled query rule is located.
Attributes Reference
id
- The ID of the scheduled query rule.location
- Specifies the Azure Region where the resource should exist.authorizedResourceIds
- A list of IDs of Resources referred into query.criteria
- Acriteria
block as defined below.dataSourceId
- The resource URI over which log search query is to be run.description
- The description of the scheduled query rule.enabled
- Whether this scheduled query rule is enabled.
criteria
supports the following:
dimension
- Adimension
block as defined below.metricName
- Name of the metric.
dimension
supports the following:
name
- Name of the dimension.operator
- Operator for dimension values.values
- List of dimension values.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the App Service Environment.