UNPKG

@lbrlabs/pulumi-dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

207 lines (206 loc) 9.4 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; export declare class OsServices extends pulumi.CustomResource { /** * Get an existing OsServices 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?: OsServicesState, opts?: pulumi.CustomResourceOptions): OsServices; /** * Returns true if the given object is an instance of OsServices. 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 OsServices; /** * The number of **10-second measurement cycles** before alerting is triggered */ readonly alertActivationDuration: pulumi.Output<number | undefined>; /** * Toggle the switch in order to enable or disable alerting for this policy */ readonly alerting: pulumi.Output<boolean>; /** * Detection rules */ readonly detectionConditionsLinux: pulumi.Output<outputs.OsServicesDetectionConditionsLinux | undefined>; /** * Detection rules */ readonly detectionConditionsWindows: pulumi.Output<outputs.OsServicesDetectionConditionsWindows | undefined>; /** * This setting is enabled (`true`) or disabled (`false`) */ readonly enabled: pulumi.Output<boolean>; /** * Set of additional key-value properties to be attached to the triggered event. */ readonly metadata: pulumi.Output<outputs.OsServicesMetadata | undefined>; /** * Toggle the switch in order to enable or disable availability metric monitoring for this policy. Availability metrics consume custom metrics (DDUs). Refer to [documentation](https://dt-url.net/vl03xzk) for DDU consumption examples. Each monitored service consumes one custom metric. */ readonly monitoring: pulumi.Output<boolean>; /** * Rule name */ readonly name: pulumi.Output<string>; /** * By default, Dynatrace does not alert if the service is not installed. Toggle the switch to enable or disable this feature */ readonly notInstalledAlerting: pulumi.Output<boolean | undefined>; /** * The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment. */ readonly scope: pulumi.Output<string | undefined>; /** * This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk). */ readonly statusConditionLinux: pulumi.Output<string | undefined>; /** * This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk). - `$eq(paused)` * – Matches services that are in paused state. Available logic operations: - `$not($eq(paused))` – Matches services * that are in state different from paused. - `$or($eq(paused),$eq(running))` – Matches services that are either in * paused or running state. Use one of the following values as a parameter for this condition: - `running` - `stopped` - * `start_pending` - `stop_pending` - `continue_pending` - `pause_pending` - `paused` */ readonly statusConditionWindows: pulumi.Output<string | undefined>; /** * Possible Values: `LINUX`, `WINDOWS` */ readonly system: pulumi.Output<string>; /** * Create a OsServices 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: OsServicesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OsServices resources. */ export interface OsServicesState { /** * The number of **10-second measurement cycles** before alerting is triggered */ alertActivationDuration?: pulumi.Input<number>; /** * Toggle the switch in order to enable or disable alerting for this policy */ alerting?: pulumi.Input<boolean>; /** * Detection rules */ detectionConditionsLinux?: pulumi.Input<inputs.OsServicesDetectionConditionsLinux>; /** * Detection rules */ detectionConditionsWindows?: pulumi.Input<inputs.OsServicesDetectionConditionsWindows>; /** * This setting is enabled (`true`) or disabled (`false`) */ enabled?: pulumi.Input<boolean>; /** * Set of additional key-value properties to be attached to the triggered event. */ metadata?: pulumi.Input<inputs.OsServicesMetadata>; /** * Toggle the switch in order to enable or disable availability metric monitoring for this policy. Availability metrics consume custom metrics (DDUs). Refer to [documentation](https://dt-url.net/vl03xzk) for DDU consumption examples. Each monitored service consumes one custom metric. */ monitoring?: pulumi.Input<boolean>; /** * Rule name */ name?: pulumi.Input<string>; /** * By default, Dynatrace does not alert if the service is not installed. Toggle the switch to enable or disable this feature */ notInstalledAlerting?: pulumi.Input<boolean>; /** * The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment. */ scope?: pulumi.Input<string>; /** * This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk). */ statusConditionLinux?: pulumi.Input<string>; /** * This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk). - `$eq(paused)` * – Matches services that are in paused state. Available logic operations: - `$not($eq(paused))` – Matches services * that are in state different from paused. - `$or($eq(paused),$eq(running))` – Matches services that are either in * paused or running state. Use one of the following values as a parameter for this condition: - `running` - `stopped` - * `start_pending` - `stop_pending` - `continue_pending` - `pause_pending` - `paused` */ statusConditionWindows?: pulumi.Input<string>; /** * Possible Values: `LINUX`, `WINDOWS` */ system?: pulumi.Input<string>; } /** * The set of arguments for constructing a OsServices resource. */ export interface OsServicesArgs { /** * The number of **10-second measurement cycles** before alerting is triggered */ alertActivationDuration?: pulumi.Input<number>; /** * Toggle the switch in order to enable or disable alerting for this policy */ alerting: pulumi.Input<boolean>; /** * Detection rules */ detectionConditionsLinux?: pulumi.Input<inputs.OsServicesDetectionConditionsLinux>; /** * Detection rules */ detectionConditionsWindows?: pulumi.Input<inputs.OsServicesDetectionConditionsWindows>; /** * This setting is enabled (`true`) or disabled (`false`) */ enabled: pulumi.Input<boolean>; /** * Set of additional key-value properties to be attached to the triggered event. */ metadata?: pulumi.Input<inputs.OsServicesMetadata>; /** * Toggle the switch in order to enable or disable availability metric monitoring for this policy. Availability metrics consume custom metrics (DDUs). Refer to [documentation](https://dt-url.net/vl03xzk) for DDU consumption examples. Each monitored service consumes one custom metric. */ monitoring: pulumi.Input<boolean>; /** * Rule name */ name?: pulumi.Input<string>; /** * By default, Dynatrace does not alert if the service is not installed. Toggle the switch to enable or disable this feature */ notInstalledAlerting?: pulumi.Input<boolean>; /** * The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment. */ scope?: pulumi.Input<string>; /** * This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk). */ statusConditionLinux?: pulumi.Input<string>; /** * This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk). - `$eq(paused)` * – Matches services that are in paused state. Available logic operations: - `$not($eq(paused))` – Matches services * that are in state different from paused. - `$or($eq(paused),$eq(running))` – Matches services that are either in * paused or running state. Use one of the following values as a parameter for this condition: - `running` - `stopped` - * `start_pending` - `stop_pending` - `continue_pending` - `pause_pending` - `paused` */ statusConditionWindows?: pulumi.Input<string>; /** * Possible Values: `LINUX`, `WINDOWS` */ system: pulumi.Input<string>; }