@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.39 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get a specific Smart Detector alert rule.
*
* Uses Azure REST API version 2021-04-01.
*
* Other available API versions: 2019-06-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native alertsmanagement [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getSmartDetectorAlertRule(args: GetSmartDetectorAlertRuleArgs, opts?: pulumi.InvokeOptions): Promise<GetSmartDetectorAlertRuleResult>;
export interface GetSmartDetectorAlertRuleArgs {
/**
* The name of the alert rule.
*/
alertRuleName: string;
/**
* Indicates if Smart Detector should be expanded.
*/
expandDetector?: boolean;
/**
* The name of the resource group.
*/
resourceGroupName: string;
}
/**
* The alert rule information
*/
export interface GetSmartDetectorAlertRuleResult {
/**
* The alert rule actions.
*/
readonly actionGroups: outputs.alertsmanagement.ActionGroupsInformationResponse;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The alert rule description.
*/
readonly description?: string;
/**
* The alert rule's detector.
*/
readonly detector: outputs.alertsmanagement.DetectorResponse;
/**
* The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 1 minute, depending on the detector.
*/
readonly frequency: string;
/**
* The resource ID.
*/
readonly id: string;
/**
* The resource location.
*/
readonly location?: string;
/**
* The resource name.
*/
readonly name: string;
/**
* The alert rule resources scope.
*/
readonly scope: string[];
/**
* The alert rule severity.
*/
readonly severity: string;
/**
* The alert rule state.
*/
readonly state: string;
/**
* The resource tags.
*/
readonly tags?: {
[key: string]: string;
};
/**
* The alert rule throttling information.
*/
readonly throttling?: outputs.alertsmanagement.ThrottlingInformationResponse;
/**
* The resource type.
*/
readonly type: string;
}
/**
* Get a specific Smart Detector alert rule.
*
* Uses Azure REST API version 2021-04-01.
*
* Other available API versions: 2019-06-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native alertsmanagement [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getSmartDetectorAlertRuleOutput(args: GetSmartDetectorAlertRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSmartDetectorAlertRuleResult>;
export interface GetSmartDetectorAlertRuleOutputArgs {
/**
* The name of the alert rule.
*/
alertRuleName: pulumi.Input<string>;
/**
* Indicates if Smart Detector should be expanded.
*/
expandDetector?: pulumi.Input<boolean>;
/**
* The name of the resource group.
*/
resourceGroupName: pulumi.Input<string>;
}