@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
216 lines (215 loc) • 10.5 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
export declare class CalculatedServiceMetric extends pulumi.CustomResource {
/**
* Get an existing CalculatedServiceMetric 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?: CalculatedServiceMetricState, opts?: pulumi.CustomResourceOptions): CalculatedServiceMetric;
/**
* Returns true if the given object is an instance of CalculatedServiceMetric. 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 CalculatedServiceMetric;
/**
* The set of conditions for the metric usage. **All** the specified conditions must be fulfilled to use the metric
*/
readonly conditions: pulumi.Output<outputs.CalculatedServiceMetricCondition[] | undefined>;
/**
* The displayed description of the metric
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Parameters of a definition of a calculated service metric
*/
readonly dimensionDefinition: pulumi.Output<outputs.CalculatedServiceMetricDimensionDefinition | undefined>;
/**
* The metric is enabled (`true`) or disabled (`false`)
*/
readonly enabled: pulumi.Output<boolean | undefined>;
/**
* Restricts the metric usage to the specified service. This field is mutually exclusive with the `managementZones` field
*/
readonly entityId: pulumi.Output<string | undefined>;
/**
* Metric should (true) or not (false) ignore muted requests.
*/
readonly ignoreMutedRequests: pulumi.Output<boolean | undefined>;
/**
* Restricts the metric usage to specified management zones. This field is mutually exclusive with the `entityId` field
*/
readonly managementZones: pulumi.Output<string[] | undefined>;
/**
* The definition of a calculated service metric
*/
readonly metricDefinition: pulumi.Output<outputs.CalculatedServiceMetricMetricDefinition | undefined>;
/**
* The key of the calculated service metric
*/
readonly metricKey: pulumi.Output<string>;
/**
* The displayed name of the metric
*/
readonly name: pulumi.Output<string>;
/**
* The unit of the metric. Possible values are `BIT`, `BIT_PER_HOUR`, `BIT_PER_MINUTE`, `BIT_PER_SECOND`, `BYTE`,
* `BYTE_PER_HOUR`, `BYTE_PER_MINUTE`, `BYTE_PER_SECOND`, `CORES`, `COUNT`, `DAY`, `DECIBEL_MILLI_WATT`, `GIBI_BYTE`,
* `GIGA`, `GIGA_BYTE`, `HOUR`, `KIBI_BYTE`, `KIBI_BYTE_PER_HOUR`, `KIBI_BYTE_PER_MINUTE`, `KIBI_BYTE_PER_SECOND`, `KILO`,
* `KILO_BYTE`, `KILO_BYTE_PER_HOUR`, `KILO_BYTE_PER_MINUTE`, `KILO_BYTE_PER_SECOND`, `MEBI_BYTE`, `MEBI_BYTE_PER_HOUR`,
* `MEBI_BYTE_PER_MINUTE`, `MEBI_BYTE_PER_SECOND`, `MEGA`, `MEGA_BYTE`, `MEGA_BYTE_PER_HOUR`, `MEGA_BYTE_PER_MINUTE`,
* `MEGA_BYTE_PER_SECOND`, `MICRO_SECOND`, `MILLI_CORES`, `MILLI_SECOND`, `MILLI_SECOND_PER_MINUTE`, `MINUTE`, `MONTH`,
* `MSU`, `NANO_SECOND`, `NANO_SECOND_PER_MINUTE`, `NOT_APPLICABLE`, `PERCENT`, `PER_HOUR`, `PER_MINUTE`, `PER_SECOND`,
* `PIXEL`, `PROMILLE`, `RATIO`, `SECOND`, `STATE`, `UNSPECIFIED`, `WEEK` and `YEAR`
*/
readonly unit: pulumi.Output<string>;
/**
* The display name of the metric's unit. Only applicable when the **unit** parameter is set to `UNSPECIFIED`
*/
readonly unitDisplayName: pulumi.Output<string | undefined>;
/**
* allows for configuring properties that are not explicitly supported by the current version of this provider
*/
readonly unknowns: pulumi.Output<string | undefined>;
/**
* Create a CalculatedServiceMetric 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: CalculatedServiceMetricArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering CalculatedServiceMetric resources.
*/
export interface CalculatedServiceMetricState {
/**
* The set of conditions for the metric usage. **All** the specified conditions must be fulfilled to use the metric
*/
conditions?: pulumi.Input<pulumi.Input<inputs.CalculatedServiceMetricCondition>[]>;
/**
* The displayed description of the metric
*/
description?: pulumi.Input<string>;
/**
* Parameters of a definition of a calculated service metric
*/
dimensionDefinition?: pulumi.Input<inputs.CalculatedServiceMetricDimensionDefinition>;
/**
* The metric is enabled (`true`) or disabled (`false`)
*/
enabled?: pulumi.Input<boolean>;
/**
* Restricts the metric usage to the specified service. This field is mutually exclusive with the `managementZones` field
*/
entityId?: pulumi.Input<string>;
/**
* Metric should (true) or not (false) ignore muted requests.
*/
ignoreMutedRequests?: pulumi.Input<boolean>;
/**
* Restricts the metric usage to specified management zones. This field is mutually exclusive with the `entityId` field
*/
managementZones?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The definition of a calculated service metric
*/
metricDefinition?: pulumi.Input<inputs.CalculatedServiceMetricMetricDefinition>;
/**
* The key of the calculated service metric
*/
metricKey?: pulumi.Input<string>;
/**
* The displayed name of the metric
*/
name?: pulumi.Input<string>;
/**
* The unit of the metric. Possible values are `BIT`, `BIT_PER_HOUR`, `BIT_PER_MINUTE`, `BIT_PER_SECOND`, `BYTE`,
* `BYTE_PER_HOUR`, `BYTE_PER_MINUTE`, `BYTE_PER_SECOND`, `CORES`, `COUNT`, `DAY`, `DECIBEL_MILLI_WATT`, `GIBI_BYTE`,
* `GIGA`, `GIGA_BYTE`, `HOUR`, `KIBI_BYTE`, `KIBI_BYTE_PER_HOUR`, `KIBI_BYTE_PER_MINUTE`, `KIBI_BYTE_PER_SECOND`, `KILO`,
* `KILO_BYTE`, `KILO_BYTE_PER_HOUR`, `KILO_BYTE_PER_MINUTE`, `KILO_BYTE_PER_SECOND`, `MEBI_BYTE`, `MEBI_BYTE_PER_HOUR`,
* `MEBI_BYTE_PER_MINUTE`, `MEBI_BYTE_PER_SECOND`, `MEGA`, `MEGA_BYTE`, `MEGA_BYTE_PER_HOUR`, `MEGA_BYTE_PER_MINUTE`,
* `MEGA_BYTE_PER_SECOND`, `MICRO_SECOND`, `MILLI_CORES`, `MILLI_SECOND`, `MILLI_SECOND_PER_MINUTE`, `MINUTE`, `MONTH`,
* `MSU`, `NANO_SECOND`, `NANO_SECOND_PER_MINUTE`, `NOT_APPLICABLE`, `PERCENT`, `PER_HOUR`, `PER_MINUTE`, `PER_SECOND`,
* `PIXEL`, `PROMILLE`, `RATIO`, `SECOND`, `STATE`, `UNSPECIFIED`, `WEEK` and `YEAR`
*/
unit?: pulumi.Input<string>;
/**
* The display name of the metric's unit. Only applicable when the **unit** parameter is set to `UNSPECIFIED`
*/
unitDisplayName?: pulumi.Input<string>;
/**
* allows for configuring properties that are not explicitly supported by the current version of this provider
*/
unknowns?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a CalculatedServiceMetric resource.
*/
export interface CalculatedServiceMetricArgs {
/**
* The set of conditions for the metric usage. **All** the specified conditions must be fulfilled to use the metric
*/
conditions?: pulumi.Input<pulumi.Input<inputs.CalculatedServiceMetricCondition>[]>;
/**
* The displayed description of the metric
*/
description?: pulumi.Input<string>;
/**
* Parameters of a definition of a calculated service metric
*/
dimensionDefinition?: pulumi.Input<inputs.CalculatedServiceMetricDimensionDefinition>;
/**
* The metric is enabled (`true`) or disabled (`false`)
*/
enabled?: pulumi.Input<boolean>;
/**
* Restricts the metric usage to the specified service. This field is mutually exclusive with the `managementZones` field
*/
entityId?: pulumi.Input<string>;
/**
* Metric should (true) or not (false) ignore muted requests.
*/
ignoreMutedRequests?: pulumi.Input<boolean>;
/**
* Restricts the metric usage to specified management zones. This field is mutually exclusive with the `entityId` field
*/
managementZones?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The definition of a calculated service metric
*/
metricDefinition?: pulumi.Input<inputs.CalculatedServiceMetricMetricDefinition>;
/**
* The key of the calculated service metric
*/
metricKey: pulumi.Input<string>;
/**
* The displayed name of the metric
*/
name?: pulumi.Input<string>;
/**
* The unit of the metric. Possible values are `BIT`, `BIT_PER_HOUR`, `BIT_PER_MINUTE`, `BIT_PER_SECOND`, `BYTE`,
* `BYTE_PER_HOUR`, `BYTE_PER_MINUTE`, `BYTE_PER_SECOND`, `CORES`, `COUNT`, `DAY`, `DECIBEL_MILLI_WATT`, `GIBI_BYTE`,
* `GIGA`, `GIGA_BYTE`, `HOUR`, `KIBI_BYTE`, `KIBI_BYTE_PER_HOUR`, `KIBI_BYTE_PER_MINUTE`, `KIBI_BYTE_PER_SECOND`, `KILO`,
* `KILO_BYTE`, `KILO_BYTE_PER_HOUR`, `KILO_BYTE_PER_MINUTE`, `KILO_BYTE_PER_SECOND`, `MEBI_BYTE`, `MEBI_BYTE_PER_HOUR`,
* `MEBI_BYTE_PER_MINUTE`, `MEBI_BYTE_PER_SECOND`, `MEGA`, `MEGA_BYTE`, `MEGA_BYTE_PER_HOUR`, `MEGA_BYTE_PER_MINUTE`,
* `MEGA_BYTE_PER_SECOND`, `MICRO_SECOND`, `MILLI_CORES`, `MILLI_SECOND`, `MILLI_SECOND_PER_MINUTE`, `MINUTE`, `MONTH`,
* `MSU`, `NANO_SECOND`, `NANO_SECOND_PER_MINUTE`, `NOT_APPLICABLE`, `PERCENT`, `PER_HOUR`, `PER_MINUTE`, `PER_SECOND`,
* `PIXEL`, `PROMILLE`, `RATIO`, `SECOND`, `STATE`, `UNSPECIFIED`, `WEEK` and `YEAR`
*/
unit: pulumi.Input<string>;
/**
* The display name of the metric's unit. Only applicable when the **unit** parameter is set to `UNSPECIFIED`
*/
unitDisplayName?: pulumi.Input<string>;
/**
* allows for configuring properties that are not explicitly supported by the current version of this provider
*/
unknowns?: pulumi.Input<string>;
}