import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * !> This resource API endpoint has been deprecated, please use dynatrace.Alerting instead. * * > This resource requires the API token scopes **Read configuration** (`ReadConfig`) and **Write configuration** (`WriteConfig`) * * ## Dynatrace Documentation * * - Alerting profiles - https://www.dynatrace.com/support/help/how-to-use-dynatrace/problem-detection-and-analysis/notifications-and-alerting/alerting-profiles * * - Alerting profiles API - https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/alerting-profiles-api * * ## Resource Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const _name_ = new dynatrace.AlertingProfile("#name#", { * displayName: "#name#", * mzId: "", * rules: [ * { * delayInMinutes: 0, * severityLevel: "AVAILABILITY", * tagFilters: [{ * includeMode: "INCLUDE_ALL", * tagFilters: [ * { * context: "CONTEXTLESS", * key: "EnvironmentA", * value: "production", * }, * { * context: "CONTEXTLESS", * key: "Team", * value: "test", * }, * ], * }], * }, * { * delayInMinutes: 0, * severityLevel: "CUSTOM_ALERT", * tagFilters: [{ * includeMode: "INCLUDE_ALL", * tagFilters: [ * { * context: "CONTEXTLESS", * key: "EnvironmentB", * value: "production", * }, * { * context: "CONTEXTLESS", * key: "Team", * value: "test", * }, * ], * }], * }, * { * delayInMinutes: 0, * severityLevel: "ERROR", * tagFilters: [{ * includeMode: "INCLUDE_ALL", * tagFilters: [ * { * context: "CONTEXTLESS", * key: "EnvironmentC", * value: "production", * }, * { * context: "CONTEXTLESS", * key: "Team", * value: "test", * }, * ], * }], * }, * { * delayInMinutes: 0, * severityLevel: "MONITORING_UNAVAILABLE", * tagFilters: [{ * includeMode: "INCLUDE_ALL", * tagFilters: [ * { * context: "CONTEXTLESS", * key: "EnvironmentD", * value: "production", * }, * { * context: "CONTEXTLESS", * key: "Team", * value: "test", * }, * ], * }], * }, * { * delayInMinutes: 0, * severityLevel: "PERFORMANCE", * tagFilters: [{ * includeMode: "INCLUDE_ALL", * tagFilters: [ * { * context: "CONTEXTLESS", * key: "EnvironmentE", * value: "production", * }, * { * context: "CONTEXTLESS", * key: "Team", * value: "test", * }, * ], * }], * }, * { * delayInMinutes: 0, * severityLevel: "RESOURCE_CONTENTION", * tagFilters: [{ * includeMode: "INCLUDE_ALL", * tagFilters: [ * { * context: "CONTEXTLESS", * key: "EnvironmentF", * value: "production", * }, * { * context: "CONTEXTLESS", * key: "Team", * value: "test", * }, * ], * }], * }, * ], * }); * ``` */ export declare class AlertingProfile extends pulumi.CustomResource { /** * Get an existing AlertingProfile 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, state?: AlertingProfileState, opts?: pulumi.CustomResourceOptions): AlertingProfile; /** * Returns true if the given object is an instance of AlertingProfile. 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 AlertingProfile; /** * The name of the alerting profile, displayed in the UI */ readonly displayName: pulumi.Output; /** * The list of event filters. For all filters that are *negated* inside of these event filters, that is all `Predefined` as well as `Custom` (Title and/or Description) ones the AND logic applies. For all *non-negated* ones the OR logic applies. Between these two groups, negated and non-negated, the AND logic applies. If you specify both severity rule and event filter, the AND logic applies */ readonly eventTypeFilters: pulumi.Output; /** * `metadata` exists for backwards compatibility but shouldn't get specified anymore * * @deprecated `metadata` exists for backwards compatibility but shouldn't get specified anymore */ readonly metadata: pulumi.Output; /** * The ID of the management zone to which the alerting profile applies */ readonly mzId: pulumi.Output; /** * A list of rules for management zone usage. Each rule is evaluated independently of all other rules */ readonly rules: pulumi.Output; /** * allows for configuring properties that are not explicitly supported by the current version of this provider */ readonly unknowns: pulumi.Output; /** * Create a AlertingProfile 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: AlertingProfileArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AlertingProfile resources. */ export interface AlertingProfileState { /** * The name of the alerting profile, displayed in the UI */ displayName?: pulumi.Input; /** * The list of event filters. For all filters that are *negated* inside of these event filters, that is all `Predefined` as well as `Custom` (Title and/or Description) ones the AND logic applies. For all *non-negated* ones the OR logic applies. Between these two groups, negated and non-negated, the AND logic applies. If you specify both severity rule and event filter, the AND logic applies */ eventTypeFilters?: pulumi.Input[]>; /** * `metadata` exists for backwards compatibility but shouldn't get specified anymore * * @deprecated `metadata` exists for backwards compatibility but shouldn't get specified anymore */ metadata?: pulumi.Input; /** * The ID of the management zone to which the alerting profile applies */ mzId?: pulumi.Input; /** * A list of rules for management zone usage. Each rule is evaluated independently of all other rules */ rules?: pulumi.Input[]>; /** * allows for configuring properties that are not explicitly supported by the current version of this provider */ unknowns?: pulumi.Input; } /** * The set of arguments for constructing a AlertingProfile resource. */ export interface AlertingProfileArgs { /** * The name of the alerting profile, displayed in the UI */ displayName: pulumi.Input; /** * The list of event filters. For all filters that are *negated* inside of these event filters, that is all `Predefined` as well as `Custom` (Title and/or Description) ones the AND logic applies. For all *non-negated* ones the OR logic applies. Between these two groups, negated and non-negated, the AND logic applies. If you specify both severity rule and event filter, the AND logic applies */ eventTypeFilters?: pulumi.Input[]>; /** * `metadata` exists for backwards compatibility but shouldn't get specified anymore * * @deprecated `metadata` exists for backwards compatibility but shouldn't get specified anymore */ metadata?: pulumi.Input; /** * The ID of the management zone to which the alerting profile applies */ mzId?: pulumi.Input; /** * A list of rules for management zone usage. Each rule is evaluated independently of all other rules */ rules?: pulumi.Input[]>; /** * allows for configuring properties that are not explicitly supported by the current version of this provider */ unknowns?: pulumi.Input; }