import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * Manages a LogToMetricAction Scheduled Query Rules resource within Azure Monitor.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "monitoring-resources",
 *     location: "West Europe",
 * });
 * const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", {
 *     name: "loganalytics",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     sku: "PerGB2018",
 *     retentionInDays: 30,
 * });
 * const exampleActionGroup = new azure.monitoring.ActionGroup("example", {
 *     name: "example-actiongroup",
 *     resourceGroupName: example.name,
 *     shortName: "exampleact",
 *     webhookReceivers: [{
 *         name: "callmyapi",
 *         serviceUri: "http://example.com/alert",
 *     }],
 * });
 * // Example: Creates alert using the new Scheduled Query Rules metric
 * const exampleMetricAlert = new azure.monitoring.MetricAlert("example", {
 *     name: "example-metricalert",
 *     resourceGroupName: example.name,
 *     scopes: [exampleAnalyticsWorkspace.id],
 *     description: "Action will be triggered when Average_% Idle Time metric is less than 10.",
 *     frequency: "PT1M",
 *     windowSize: "PT5M",
 *     criterias: [{
 *         metricNamespace: "Microsoft.OperationalInsights/workspaces",
 *         metricName: "UsedCapacity",
 *         aggregation: "Average",
 *         operator: "LessThan",
 *         threshold: 10,
 *     }],
 *     actions: [{
 *         actionGroupId: exampleActionGroup.id,
 *     }],
 * });
 * // Example: LogToMetric Action for the named Computer
 * const exampleScheduledQueryRulesLog = new azure.monitoring.ScheduledQueryRulesLog("example", {
 *     name: "example",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     criteria: {
 *         metricName: "Average_% Idle Time",
 *         dimensions: [{
 *             name: "Computer",
 *             operator: "Include",
 *             values: ["targetVM"],
 *         }],
 *     },
 *     dataSourceId: exampleAnalyticsWorkspace.id,
 *     description: "Scheduled query rule LogToMetric example",
 *     enabled: true,
 *     tags: {
 *         foo: "bar",
 *     },
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.Insights` - 2018-04-16
 *
 * ## Import
 *
 * Scheduled Query Rule Log can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:monitoring/scheduledQueryRulesLog:ScheduledQueryRulesLog example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Insights/scheduledQueryRules/myrulename
 * ```
 */
export declare class ScheduledQueryRulesLog extends pulumi.CustomResource {
    /**
     * Get an existing ScheduledQueryRulesLog resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ScheduledQueryRulesLogState, opts?: pulumi.CustomResourceOptions): ScheduledQueryRulesLog;
    /**
     * Returns true if the given object is an instance of ScheduledQueryRulesLog.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj: any): obj is ScheduledQueryRulesLog;
    /**
     * A list of IDs of Resources referred into query.
     */
    readonly authorizedResourceIds: pulumi.Output<string[] | undefined>;
    /**
     * A `criteria` block as defined below.
     */
    readonly criteria: pulumi.Output<outputs.monitoring.ScheduledQueryRulesLogCriteria>;
    /**
     * The resource URI over which log search query is to be run. Changing this forces a new resource to be created.
     */
    readonly dataSourceId: pulumi.Output<string>;
    /**
     * The description of the scheduled query rule.
     */
    readonly description: pulumi.Output<string | undefined>;
    /**
     * Whether this scheduled query rule is enabled. Default is `true`.
     */
    readonly enabled: pulumi.Output<boolean | undefined>;
    /**
     * Specifies the Azure Region where the resource should exist. Changing this forces a new resource to be created.
     */
    readonly location: pulumi.Output<string>;
    /**
     * The name of the scheduled query rule. Changing this forces a new resource to be created.
     */
    readonly name: pulumi.Output<string>;
    /**
     * The name of the resource group in which to create the scheduled query rule instance. Changing this forces a new resource to be created.
     */
    readonly resourceGroupName: pulumi.Output<string>;
    /**
     * A mapping of tags to assign to the resource.
     */
    readonly tags: pulumi.Output<{
        [key: string]: string;
    } | undefined>;
    /**
     * Create a ScheduledQueryRulesLog resource with the given unique name, arguments, and options.
     *
     * @param name The _unique_ name of the resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param opts A bag of options that control this resource's behavior.
     */
    constructor(name: string, args: ScheduledQueryRulesLogArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering ScheduledQueryRulesLog resources.
 */
export interface ScheduledQueryRulesLogState {
    /**
     * A list of IDs of Resources referred into query.
     */
    authorizedResourceIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
    /**
     * A `criteria` block as defined below.
     */
    criteria?: pulumi.Input<inputs.monitoring.ScheduledQueryRulesLogCriteria | undefined>;
    /**
     * The resource URI over which log search query is to be run. Changing this forces a new resource to be created.
     */
    dataSourceId?: pulumi.Input<string | undefined>;
    /**
     * The description of the scheduled query rule.
     */
    description?: pulumi.Input<string | undefined>;
    /**
     * Whether this scheduled query rule is enabled. Default is `true`.
     */
    enabled?: pulumi.Input<boolean | undefined>;
    /**
     * Specifies the Azure Region where the resource should exist. Changing this forces a new resource to be created.
     */
    location?: pulumi.Input<string | undefined>;
    /**
     * The name of the scheduled query rule. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The name of the resource group in which to create the scheduled query rule instance. Changing this forces a new resource to be created.
     */
    resourceGroupName?: pulumi.Input<string | undefined>;
    /**
     * A mapping of tags to assign to the resource.
     */
    tags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
}
/**
 * The set of arguments for constructing a ScheduledQueryRulesLog resource.
 */
export interface ScheduledQueryRulesLogArgs {
    /**
     * A list of IDs of Resources referred into query.
     */
    authorizedResourceIds?: pulumi.Input<pulumi.Input<string>[] | undefined>;
    /**
     * A `criteria` block as defined below.
     */
    criteria: pulumi.Input<inputs.monitoring.ScheduledQueryRulesLogCriteria>;
    /**
     * The resource URI over which log search query is to be run. Changing this forces a new resource to be created.
     */
    dataSourceId: pulumi.Input<string>;
    /**
     * The description of the scheduled query rule.
     */
    description?: pulumi.Input<string | undefined>;
    /**
     * Whether this scheduled query rule is enabled. Default is `true`.
     */
    enabled?: pulumi.Input<boolean | undefined>;
    /**
     * Specifies the Azure Region where the resource should exist. Changing this forces a new resource to be created.
     */
    location?: pulumi.Input<string | undefined>;
    /**
     * The name of the scheduled query rule. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The name of the resource group in which to create the scheduled query rule instance. Changing this forces a new resource to be created.
     */
    resourceGroupName: pulumi.Input<string>;
    /**
     * A mapping of tags to assign to the resource.
     */
    tags?: pulumi.Input<{
        [key: string]: pulumi.Input<string>;
    } | undefined>;
}
//# sourceMappingURL=scheduledQueryRulesLog.d.ts.map