UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

124 lines 4.1 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getSyntheticLocationsOutput = exports.getSyntheticLocations = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * 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", * }], * }, * }], * }, * }); * ``` */ function getSyntheticLocations(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getSyntheticLocations:getSyntheticLocations", { "id": args.id, "locations": args.locations, "name": args.name, }, opts); } exports.getSyntheticLocations = getSyntheticLocations; /** * 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", * }], * }, * }], * }, * }); * ``` */ function getSyntheticLocationsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("dynatrace:index/getSyntheticLocations:getSyntheticLocations", { "id": args.id, "locations": args.locations, "name": args.name, }, opts); } exports.getSyntheticLocationsOutput = getSyntheticLocationsOutput; //# sourceMappingURL=getSyntheticLocations.js.map