@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
183 lines (182 loc) • 7.08 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
export declare class SloV2 extends pulumi.CustomResource {
/**
* Get an existing SloV2 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?: SloV2State, opts?: pulumi.CustomResourceOptions): SloV2;
/**
* Returns true if the given object is an instance of SloV2. 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 SloV2;
/**
* The description of the SLO
*/
readonly customDescription: pulumi.Output<string | undefined>;
/**
* This setting is enabled (`true`) or disabled (`false`)
*/
readonly enabled: pulumi.Output<boolean>;
/**
* ### Error budget burn rate
*/
readonly errorBudgetBurnRate: pulumi.Output<outputs.SloV2ErrorBudgetBurnRate>;
/**
* Possible Values: `AGGREGATE`
*/
readonly evaluationType: pulumi.Output<string>;
/**
* Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
*/
readonly evaluationWindow: pulumi.Output<string>;
/**
* Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the [Entity Selector documentation](https://dt-url.net/entityselector).
*/
readonly filter: pulumi.Output<string>;
/**
* The ID of this setting when referred to by the Config REST API V1
*/
readonly legacyId: pulumi.Output<string>;
/**
* For details, see the [Metrics page](https://www.terraform.io/ui/metrics).
*/
readonly metricExpression: pulumi.Output<string>;
/**
* Metric name
*/
readonly metricName: pulumi.Output<string>;
/**
* SLO name
*/
readonly name: pulumi.Output<string>;
/**
* Set the target value of the SLO. A percentage below this value indicates a failure.
*/
readonly targetSuccess: pulumi.Output<number>;
/**
* Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
*/
readonly targetWarning: pulumi.Output<number>;
/**
* Create a SloV2 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: SloV2Args, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering SloV2 resources.
*/
export interface SloV2State {
/**
* The description of the SLO
*/
customDescription?: pulumi.Input<string>;
/**
* This setting is enabled (`true`) or disabled (`false`)
*/
enabled?: pulumi.Input<boolean>;
/**
* ### Error budget burn rate
*/
errorBudgetBurnRate?: pulumi.Input<inputs.SloV2ErrorBudgetBurnRate>;
/**
* Possible Values: `AGGREGATE`
*/
evaluationType?: pulumi.Input<string>;
/**
* Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
*/
evaluationWindow?: pulumi.Input<string>;
/**
* Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the [Entity Selector documentation](https://dt-url.net/entityselector).
*/
filter?: pulumi.Input<string>;
/**
* The ID of this setting when referred to by the Config REST API V1
*/
legacyId?: pulumi.Input<string>;
/**
* For details, see the [Metrics page](https://www.terraform.io/ui/metrics).
*/
metricExpression?: pulumi.Input<string>;
/**
* Metric name
*/
metricName?: pulumi.Input<string>;
/**
* SLO name
*/
name?: pulumi.Input<string>;
/**
* Set the target value of the SLO. A percentage below this value indicates a failure.
*/
targetSuccess?: pulumi.Input<number>;
/**
* Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
*/
targetWarning?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a SloV2 resource.
*/
export interface SloV2Args {
/**
* The description of the SLO
*/
customDescription?: pulumi.Input<string>;
/**
* This setting is enabled (`true`) or disabled (`false`)
*/
enabled: pulumi.Input<boolean>;
/**
* ### Error budget burn rate
*/
errorBudgetBurnRate: pulumi.Input<inputs.SloV2ErrorBudgetBurnRate>;
/**
* Possible Values: `AGGREGATE`
*/
evaluationType: pulumi.Input<string>;
/**
* Define the timeframe during which the SLO is to be evaluated. For the timeframe you can enter expressions like -1h (last hour), -1w (last week) or complex expressions like -2d to now (last two days), -1d/d to now/d (beginning of yesterday to beginning of today).
*/
evaluationWindow: pulumi.Input<string>;
/**
* Set a filter parameter (entitySelector) on any GET call to evaluate this SLO against specific services only (for example, type("SERVICE")). For details, see the [Entity Selector documentation](https://dt-url.net/entityselector).
*/
filter: pulumi.Input<string>;
/**
* The ID of this setting when referred to by the Config REST API V1
*/
legacyId?: pulumi.Input<string>;
/**
* For details, see the [Metrics page](https://www.terraform.io/ui/metrics).
*/
metricExpression: pulumi.Input<string>;
/**
* Metric name
*/
metricName?: pulumi.Input<string>;
/**
* SLO name
*/
name?: pulumi.Input<string>;
/**
* Set the target value of the SLO. A percentage below this value indicates a failure.
*/
targetSuccess: pulumi.Input<number>;
/**
* Set the warning value of the SLO. At the warning state the SLO is fulfilled. However, it is getting close to a failure.
*/
targetWarning: pulumi.Input<number>;
}