@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
213 lines (212 loc) • 7.62 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
export declare class Slo extends pulumi.CustomResource {
/**
* Get an existing Slo 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?: SloState, opts?: pulumi.CustomResourceOptions): Slo;
/**
* Returns true if the given object is an instance of Slo. 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 Slo;
/**
* The total count metric (the denominator in rate calculation)
*/
readonly denominator: pulumi.Output<string | undefined>;
/**
* The custom description of the SLO (optional)
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The SLO is enabled (`false`) or disabled (`true`)
*/
readonly disabled: pulumi.Output<boolean | undefined>;
/**
* Error budget burn rate configuration of a service-level objective (SLO).
*/
readonly errorBudgetBurnRate: pulumi.Output<outputs.SloErrorBudgetBurnRate | undefined>;
/**
* The evaluation type of the SLO. Currently only `AGGREGATE` is supported
*/
readonly evaluation: pulumi.Output<string>;
/**
* The entity filter for the SLO evaluation. Use the [syntax of entity selector](https://dt-url.net/entityselector)
*/
readonly filter: pulumi.Output<string | undefined>;
/**
* The percentage-based metric expression for the calculation of the SLO
*/
readonly metricExpression: pulumi.Output<string | undefined>;
/**
* The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
*/
readonly metricName: pulumi.Output<string | undefined>;
/**
* The name of the rule
*/
readonly name: pulumi.Output<string>;
/**
* The metric for the count of successes (the numerator in rate calculation)
*
* @deprecated `numerator` and `denominator` have been replaced by `metricExpression`
*/
readonly numerator: pulumi.Output<string | undefined>;
/**
* The percentage-based metric for the calculation of the SLO
*/
readonly rate: pulumi.Output<string | undefined>;
/**
* The target value of the SLO
*/
readonly target: pulumi.Output<number>;
/**
* The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
*/
readonly timeframe: pulumi.Output<string>;
/**
* The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
*/
readonly warning: pulumi.Output<number>;
/**
* Create a Slo 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: SloArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Slo resources.
*/
export interface SloState {
/**
* The total count metric (the denominator in rate calculation)
*/
denominator?: pulumi.Input<string>;
/**
* The custom description of the SLO (optional)
*/
description?: pulumi.Input<string>;
/**
* The SLO is enabled (`false`) or disabled (`true`)
*/
disabled?: pulumi.Input<boolean>;
/**
* Error budget burn rate configuration of a service-level objective (SLO).
*/
errorBudgetBurnRate?: pulumi.Input<inputs.SloErrorBudgetBurnRate>;
/**
* The evaluation type of the SLO. Currently only `AGGREGATE` is supported
*/
evaluation?: pulumi.Input<string>;
/**
* The entity filter for the SLO evaluation. Use the [syntax of entity selector](https://dt-url.net/entityselector)
*/
filter?: pulumi.Input<string>;
/**
* The percentage-based metric expression for the calculation of the SLO
*/
metricExpression?: pulumi.Input<string>;
/**
* The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
*/
metricName?: pulumi.Input<string>;
/**
* The name of the rule
*/
name?: pulumi.Input<string>;
/**
* The metric for the count of successes (the numerator in rate calculation)
*
* @deprecated `numerator` and `denominator` have been replaced by `metricExpression`
*/
numerator?: pulumi.Input<string>;
/**
* The percentage-based metric for the calculation of the SLO
*/
rate?: pulumi.Input<string>;
/**
* The target value of the SLO
*/
target?: pulumi.Input<number>;
/**
* The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
*/
timeframe?: pulumi.Input<string>;
/**
* The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
*/
warning?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a Slo resource.
*/
export interface SloArgs {
/**
* The total count metric (the denominator in rate calculation)
*/
denominator?: pulumi.Input<string>;
/**
* The custom description of the SLO (optional)
*/
description?: pulumi.Input<string>;
/**
* The SLO is enabled (`false`) or disabled (`true`)
*/
disabled?: pulumi.Input<boolean>;
/**
* Error budget burn rate configuration of a service-level objective (SLO).
*/
errorBudgetBurnRate?: pulumi.Input<inputs.SloErrorBudgetBurnRate>;
/**
* The evaluation type of the SLO. Currently only `AGGREGATE` is supported
*/
evaluation: pulumi.Input<string>;
/**
* The entity filter for the SLO evaluation. Use the [syntax of entity selector](https://dt-url.net/entityselector)
*/
filter?: pulumi.Input<string>;
/**
* The percentage-based metric expression for the calculation of the SLO
*/
metricExpression?: pulumi.Input<string>;
/**
* The name that is used to create SLO func metrics keys. Once created, metric name cannot be changed.
*/
metricName?: pulumi.Input<string>;
/**
* The name of the rule
*/
name?: pulumi.Input<string>;
/**
* The metric for the count of successes (the numerator in rate calculation)
*
* @deprecated `numerator` and `denominator` have been replaced by `metricExpression`
*/
numerator?: pulumi.Input<string>;
/**
* The percentage-based metric for the calculation of the SLO
*/
rate?: pulumi.Input<string>;
/**
* The target value of the SLO
*/
target: pulumi.Input<number>;
/**
* The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector
*/
timeframe: pulumi.Input<string>;
/**
* The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure
*/
warning: pulumi.Input<number>;
}