import * as pulumi from "@pulumi/pulumi"; /** * This data source provides details about a specific Alert Rule resource in Oracle Cloud Infrastructure Budget service. * * Gets an Alert Rule for a specified budget. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAlertRule = oci.budget.getAlertRule({ * alertRuleId: testAlertRuleOciBudgetAlertRule.id, * budgetId: testBudget.id, * }); * ``` */ export declare function getAlertRule(args: GetAlertRuleArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAlertRule. */ export interface GetAlertRuleArgs { /** * The unique Alert Rule OCID. */ alertRuleId: string; /** * The unique budget OCID. */ budgetId: string; } /** * A collection of values returned by getAlertRule. */ export interface GetAlertRuleResult { readonly alertRuleId: string; /** * The OCID of the budget. */ readonly budgetId: string; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: { [key: string]: string; }; /** * The description of the alert rule. */ readonly description: string; /** * The name of the alert rule. Avoid entering confidential information. */ readonly displayName: string; /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: { [key: string]: string; }; /** * The OCID of the alert rule. */ readonly id: string; /** * The custom message that will be sent when the alert is triggered. */ readonly message: string; /** * The delimited list of email addresses to receive the alert when it triggers. Delimiter characters can be a comma, space, TAB, or semicolon. */ readonly recipients: string; /** * The current state of the alert rule. */ readonly state: string; /** * The threshold for triggering the alert. If the thresholdType is PERCENTAGE, the maximum value is 10000. */ readonly threshold: number; /** * The type of threshold. */ readonly thresholdType: string; /** * The time when the budget was created. */ readonly timeCreated: string; /** * The time when the budget was updated. */ readonly timeUpdated: string; /** * The type of the alert. Valid values are ACTUAL (the alert triggers based on actual usage), or FORECAST (the alert triggers based on predicted usage). */ readonly type: string; /** * The version of the alert rule. Starts from 1 and increments by 1. */ readonly version: number; } /** * This data source provides details about a specific Alert Rule resource in Oracle Cloud Infrastructure Budget service. * * Gets an Alert Rule for a specified budget. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAlertRule = oci.budget.getAlertRule({ * alertRuleId: testAlertRuleOciBudgetAlertRule.id, * budgetId: testBudget.id, * }); * ``` */ export declare function getAlertRuleOutput(args: GetAlertRuleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAlertRule. */ export interface GetAlertRuleOutputArgs { /** * The unique Alert Rule OCID. */ alertRuleId: pulumi.Input; /** * The unique budget OCID. */ budgetId: pulumi.Input; } //# sourceMappingURL=getAlertRule.d.ts.map