import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * > This resource is excluded by default in the export utility. * * > This resource requires the API token scopes **Read configuration** (`ReadConfig`) and **Write configuration** (`WriteConfig`) * * ## Dynatrace Documentation * * - Microsoft Azure monitoring - https://www.dynatrace.com/support/help/how-to-use-dynatrace/infrastructure-monitoring/cloud-platform-monitoring/microsoft-azure-services-monitoring * * - The dimensions for metrics for individual services - https://docs.dynatrace.com/docs/ingest-from/microsoft-azure-services/azure-integrations/azure-cloud-services-metrics * * - Azure credentials API - https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/azure-credentials-api * * ## Resource Example Usage * * This example utilizes the data source `dynatrace.getAzureSupportedServices` in order to query for a full list of all supported services. * The `forEach` loop within the resource `dynatrace.AzureService` configures each of these services to get utilized with the default metrics recommended by Dynatrace (`useRecommendedMetrics`). * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * export = async () => { * const tERRAFORMSAMPLE = new dynatrace.AzureCredentials("tERRAFORMSAMPLE", { * active: false, * appId: "ABCDE", * autoTagging: true, * directoryId: "ABCDE", * label: "TERRAFORM_SAMPLE", * key: "aaaa", * monitorOnlyTaggedEntities: true, * monitorOnlyTagPairs: [{ * name: "string", * value: "string", * }], * }); * const supportedServices = await dynatrace.getAzureSupportedServices({ * excepts: ["AZURE_STORAGE_ACCOUNT"], * }); * const tERRAFORMSAMPLEServices: dynatrace.AzureService[] = []; * for (const range of Object.entries(supportedServices.services).map(([k, v]) => ({key: k, value: v}))) { * tERRAFORMSAMPLEServices.push(new dynatrace.AzureService(`tERRAFORMSAMPLEServices-${range.key}`, { * credentialsId: tERRAFORMSAMPLE.id, * useRecommendedMetrics: true, * })); * } * } * ``` * * If you want to configure a different set of metrics for a specific service, a separate resource `dynatrace.AzureService` will be necessary for that. That allows you to configure the `metric` blocks according to your wishes. * Just be aware of the fact, that Dynatrace enforces for most services a recommended set of metrics. All of them need to be part of your configuration in order to end up with a non-empty plan. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const example = new dynatrace.AzureCredentials("example", { * active: true, * appId: "123456789", * autoTagging: true, * directoryId: "123456789", * key: "123456789", * label: "#name#", * monitorOnlyTaggedEntities: false, * }); * const containerService = new dynatrace.AzureService("containerService", { * credentialsId: example.id, * metrics: [ * { * name: "kube_pod_status_ready", * dimensions: [], * }, * { * name: "kube_node_status_condition", * dimensions: [ * "condition", * "status", * "node", * ], * }, * { * name: "kube_pod_status_phase", * dimensions: [ * "phase", * "namespace", * ], * }, * ], * }); * ``` */ export declare class AzureService extends pulumi.CustomResource { /** * Get an existing AzureService 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, state?: AzureServiceState, opts?: pulumi.CustomResourceOptions): AzureService; /** * Returns true if the given object is an instance of AzureService. 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 AzureService; /** * This attribute is automatically set to `true` if Dynatrace considers the supporting service with the given name to be a built-in service */ readonly builtIn: pulumi.Output; /** * the ID of the Azure credentials this supported service belongs to */ readonly credentialsId: pulumi.Output; readonly metrics: pulumi.Output; /** * The name of the supporting service. */ readonly name: pulumi.Output; readonly requiredMetrics: pulumi.Output; readonly useRecommendedMetrics: pulumi.Output; /** * Create a AzureService 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: AzureServiceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AzureService resources. */ export interface AzureServiceState { /** * This attribute is automatically set to `true` if Dynatrace considers the supporting service with the given name to be a built-in service */ builtIn?: pulumi.Input; /** * the ID of the Azure credentials this supported service belongs to */ credentialsId?: pulumi.Input; metrics?: pulumi.Input[]>; /** * The name of the supporting service. */ name?: pulumi.Input; requiredMetrics?: pulumi.Input; useRecommendedMetrics?: pulumi.Input; } /** * The set of arguments for constructing a AzureService resource. */ export interface AzureServiceArgs { /** * the ID of the Azure credentials this supported service belongs to */ credentialsId: pulumi.Input; metrics?: pulumi.Input[]>; /** * The name of the supporting service. */ name?: pulumi.Input; useRecommendedMetrics?: pulumi.Input; }