UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

135 lines (134 loc) 4.11 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * The synthetic locations data source allows the location IDs to be retrieved based off of provided parameters. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const test = dynatrace.getSyntheticLocations({ * name: "Sydney", * }); * const _name_ = new dynatrace.HttpMonitor("#name#", { * enabled: true, * frequency: 60, * locations: [test.then(test => test.locations?.entityId)], * anomalyDetections: [{ * loadingTimeThresholds: [{ * enabled: true, * }], * outageHandlings: [{ * globalOutage: true, * localOutage: false, * retryOnError: false, * }], * }], * script: { * requests: [{ * description: "google.com", * method: "GET", * url: "https://www.google.com", * configuration: { * acceptAnyCertificate: true, * followRedirects: true, * }, * validation: { * rules: [{ * type: "httpStatusesList", * passIfFound: false, * value: ">=400", * }], * }, * }], * }, * }); * ``` */ export declare function getSyntheticLocations(args?: GetSyntheticLocationsArgs, opts?: pulumi.InvokeOptions): Promise<GetSyntheticLocationsResult>; /** * A collection of arguments for invoking getSyntheticLocations. */ export interface GetSyntheticLocationsArgs { /** * The ID of this resource. */ id?: string; locations?: inputs.GetSyntheticLocationsLocations; name?: string; } /** * A collection of values returned by getSyntheticLocations. */ export interface GetSyntheticLocationsResult { /** * The ID of this resource. */ readonly id?: string; readonly locations: outputs.GetSyntheticLocationsLocations; readonly name?: string; } /** * The synthetic locations data source allows the location IDs to be retrieved based off of provided parameters. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const test = dynatrace.getSyntheticLocations({ * name: "Sydney", * }); * const _name_ = new dynatrace.HttpMonitor("#name#", { * enabled: true, * frequency: 60, * locations: [test.then(test => test.locations?.entityId)], * anomalyDetections: [{ * loadingTimeThresholds: [{ * enabled: true, * }], * outageHandlings: [{ * globalOutage: true, * localOutage: false, * retryOnError: false, * }], * }], * script: { * requests: [{ * description: "google.com", * method: "GET", * url: "https://www.google.com", * configuration: { * acceptAnyCertificate: true, * followRedirects: true, * }, * validation: { * rules: [{ * type: "httpStatusesList", * passIfFound: false, * value: ">=400", * }], * }, * }], * }, * }); * ``` */ export declare function getSyntheticLocationsOutput(args?: GetSyntheticLocationsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSyntheticLocationsResult>; /** * A collection of arguments for invoking getSyntheticLocations. */ export interface GetSyntheticLocationsOutputArgs { /** * The ID of this resource. */ id?: pulumi.Input<string>; locations?: pulumi.Input<inputs.GetSyntheticLocationsLocationsArgs>; name?: pulumi.Input<string>; }