UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

90 lines 3.69 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.getIstioCanonicalServiceOutput = exports.getIstioCanonicalService = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * A Monitoring Service is the root resource under which operational aspects of a * generic service are accessible. A service is some discrete, autonomous, and * network-accessible unit, designed to solve an individual concern * * A monitoring Istio Canonical Service is automatically created by GCP to monitor * Istio Canonical Services. * * To get more information about Service, see: * * * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) * * How-to Guides * * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) * * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) * * ## Example Usage * * ### Monitoring Istio Canonical Service * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * // Monitors the default MeshIstio service * const _default = gcp.monitoring.getIstioCanonicalService({ * meshUid: "proj-573164786102", * canonicalServiceNamespace: "istio-system", * canonicalService: "prometheus", * }); * ``` */ function getIstioCanonicalService(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService", { "canonicalService": args.canonicalService, "canonicalServiceNamespace": args.canonicalServiceNamespace, "meshUid": args.meshUid, "project": args.project, }, opts); } exports.getIstioCanonicalService = getIstioCanonicalService; /** * A Monitoring Service is the root resource under which operational aspects of a * generic service are accessible. A service is some discrete, autonomous, and * network-accessible unit, designed to solve an individual concern * * A monitoring Istio Canonical Service is automatically created by GCP to monitor * Istio Canonical Services. * * To get more information about Service, see: * * * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services) * * How-to Guides * * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring) * * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/) * * ## Example Usage * * ### Monitoring Istio Canonical Service * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * // Monitors the default MeshIstio service * const _default = gcp.monitoring.getIstioCanonicalService({ * meshUid: "proj-573164786102", * canonicalServiceNamespace: "istio-system", * canonicalService: "prometheus", * }); * ``` */ function getIstioCanonicalServiceOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService", { "canonicalService": args.canonicalService, "canonicalServiceNamespace": args.canonicalServiceNamespace, "meshUid": args.meshUid, "project": args.project, }, opts); } exports.getIstioCanonicalServiceOutput = getIstioCanonicalServiceOutput; //# sourceMappingURL=getIstioCanonicalService.js.map