import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to access the properties of an AlertingAction scheduled query rule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.monitoring.getScheduledQueryRulesAlert({ * resourceGroupName: "example-rg", * name: "tfex-queryrule", * }); * export const queryRuleId = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Insights` - 2018-04-16 */ export declare function getScheduledQueryRulesAlert(args: GetScheduledQueryRulesAlertArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getScheduledQueryRulesAlert. */ export interface GetScheduledQueryRulesAlertArgs { /** * Specifies the name of the scheduled query rule. */ name: string; /** * Specifies the name of the resource group where the scheduled query rule is located. */ resourceGroupName: string; } /** * A collection of values returned by getScheduledQueryRulesAlert. */ export interface GetScheduledQueryRulesAlertResult { /** * supports the following: */ readonly actions: outputs.monitoring.GetScheduledQueryRulesAlertAction[]; /** * The list of Resource IDs referred into query. */ readonly authorizedResourceIds: string[]; /** * The resource URI over which log search query is to be run. */ readonly dataSourceId: string; /** * The description of the scheduled query rule. */ readonly description: string; /** * Whether this scheduled query rule is enabled. */ readonly enabled: boolean; /** * Frequency at which rule condition should be evaluated. */ readonly frequency: number; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Specifies the Azure Region where the resource should exist. */ readonly location: string; readonly name: string; /** * Log search query. */ readonly query: string; /** * The type of query results. */ readonly queryType: string; readonly resourceGroupName: string; /** * Severity of the alert. */ readonly severity: number; readonly tags: { [key: string]: string; }; /** * Time for which alerts should be throttled or suppressed. */ readonly throttling: number; /** * Time window for which data needs to be fetched for query. */ readonly timeWindow: number; /** * A `trigger` block as defined below. */ readonly triggers: outputs.monitoring.GetScheduledQueryRulesAlertTrigger[]; } /** * Use this data source to access the properties of an AlertingAction scheduled query rule. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.monitoring.getScheduledQueryRulesAlert({ * resourceGroupName: "example-rg", * name: "tfex-queryrule", * }); * export const queryRuleId = example.then(example => example.id); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Insights` - 2018-04-16 */ export declare function getScheduledQueryRulesAlertOutput(args: GetScheduledQueryRulesAlertOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getScheduledQueryRulesAlert. */ export interface GetScheduledQueryRulesAlertOutputArgs { /** * Specifies the name of the scheduled query rule. */ name: pulumi.Input; /** * Specifies the name of the resource group where the scheduled query rule is located. */ resourceGroupName: pulumi.Input; }