import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Data source for retrieving a Harness AutoStopping alert by ID. Use the id (identifier) returned by the API when the alert was created. * * ## Example Usage */ export declare function getAlert(args: GetAlertArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAlert. */ export interface GetAlertArgs { /** * When true, the alert applies to all AutoStopping rules in the account (leave `ruleIdList` empty). Mutually exclusive with `ruleIdList`. */ applicableToAllRules?: boolean; /** * Whether the alert is enabled. */ enabled?: boolean; /** * List of event types that trigger the alert. */ events: string[]; /** * Name of the alert. */ name: string; /** * Notification recipients (email and/or slack). */ recipients: inputs.autostopping.GetAlertRecipients; /** * List of AutoStopping rule IDs to apply the alert to. Required when `applicableToAllRules` is false. Mutually exclusive with `applicableToAllRules` = true. */ ruleIdLists?: number[]; } /** * A collection of values returned by getAlert. */ export interface GetAlertResult { /** * When true, the alert applies to all AutoStopping rules in the account (leave `ruleIdList` empty). Mutually exclusive with `ruleIdList`. */ readonly applicableToAllRules?: boolean; /** * Whether the alert is enabled. */ readonly enabled?: boolean; /** * List of event types that trigger the alert. */ readonly events: string[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Unique identifier of the alert. */ readonly identifier: string; /** * Name of the alert. */ readonly name: string; /** * Notification recipients (email and/or slack). */ readonly recipients: outputs.autostopping.GetAlertRecipients; /** * List of AutoStopping rule IDs to apply the alert to. Required when `applicableToAllRules` is false. Mutually exclusive with `applicableToAllRules` = true. */ readonly ruleIdLists?: number[]; } /** * Data source for retrieving a Harness AutoStopping alert by ID. Use the id (identifier) returned by the API when the alert was created. * * ## Example Usage */ export declare function getAlertOutput(args: GetAlertOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAlert. */ export interface GetAlertOutputArgs { /** * When true, the alert applies to all AutoStopping rules in the account (leave `ruleIdList` empty). Mutually exclusive with `ruleIdList`. */ applicableToAllRules?: pulumi.Input; /** * Whether the alert is enabled. */ enabled?: pulumi.Input; /** * List of event types that trigger the alert. */ events: pulumi.Input[]>; /** * Name of the alert. */ name: pulumi.Input; /** * Notification recipients (email and/or slack). */ recipients: pulumi.Input; /** * List of AutoStopping rule IDs to apply the alert to. Required when `applicableToAllRules` is false. Mutually exclusive with `applicableToAllRules` = true. */ ruleIdLists?: pulumi.Input[] | undefined>; } //# sourceMappingURL=getAlert.d.ts.map