UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

56 lines 2.15 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.getCalculatedServiceMetricOutput = exports.getCalculatedServiceMetric = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The calculated service metric data source allows the metric ID to be retrieved by its name. * * - `name` (String) - The name of the calculated service metric * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * * const example = dynatrace.getCalculatedServiceMetric({ * name: "Terraform Example", * }); * export const groups = example.then(example => example.id); * ``` */ function getCalculatedServiceMetric(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("dynatrace:index/getCalculatedServiceMetric:getCalculatedServiceMetric", { "name": args.name, }, opts); } exports.getCalculatedServiceMetric = getCalculatedServiceMetric; /** * The calculated service metric data source allows the metric ID to be retrieved by its name. * * - `name` (String) - The name of the calculated service metric * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * * const example = dynatrace.getCalculatedServiceMetric({ * name: "Terraform Example", * }); * export const groups = example.then(example => example.id); * ``` */ function getCalculatedServiceMetricOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("dynatrace:index/getCalculatedServiceMetric:getCalculatedServiceMetric", { "name": args.name, }, opts); } exports.getCalculatedServiceMetricOutput = getCalculatedServiceMetricOutput; //# sourceMappingURL=getCalculatedServiceMetric.js.map