import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Dynatrace monitor. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleMonitor = new azure.dynatrace.Monitor("example", { * name: "exmpledynatracemonitor", * resourceGroupName: example.name, * location: test.location, * monitoringEnabled: true, * marketplaceSubscriptionStatus: "Active", * identity: { * type: "SystemAssigned", * }, * user: { * firstName: "Alice", * lastName: "Bobab", * email: "alice@microsoft.com", * phoneNumber: "123456", * country: "westus", * }, * plan: { * usageType: "COMMITTED", * billingCycle: "MONTHLY", * plan: "azureportalintegration_privatepreview@TIDhjdtn7tfnxcy", * effectiveDate: "2019-08-30T15:14:33Z", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Dynatrace.Observability` - 2023-04-27 * * ## Import * * Dynatrace monitor can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:dynatrace/monitor:Monitor example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Dynatrace.Observability/monitors/monitor1 * ``` */ export declare class Monitor extends pulumi.CustomResource { /** * Get an existing Monitor 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?: MonitorState, opts?: pulumi.CustomResourceOptions): Monitor; /** * Returns true if the given object is an instance of Monitor. 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 Monitor; /** * Properties of the Dynatrace environment. An `environmentProperties` block as defined below. */ readonly environmentProperties: pulumi.Output; /** * The kind of managed identity assigned to this resource. A `identity` block as defined below. */ readonly identity: pulumi.Output; /** * The Azure Region where the Dynatrace monitor should exist. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. Possible values are `Active` and `Suspended`. Changing this forces a new resource to be created. */ readonly marketplaceSubscription: pulumi.Output; /** * Flag specifying if the resource monitoring is enabled or disabled. Default is `true`. Changing this forces a new resource to be created. */ readonly monitoringEnabled: pulumi.Output; /** * Name of the Dynatrace monitor. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Billing plan information. A `plan` block as defined below. Changing this forces a new resource to be created. */ readonly plan: pulumi.Output; /** * The name of the Resource Group where the Dynatrace monitor should exist. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A mapping of tags to assign to the resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * User's information. A `user` block as defined below. Changing this forces a new resource to be created. */ readonly user: pulumi.Output; /** * Create a Monitor 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: MonitorArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Monitor resources. */ export interface MonitorState { /** * Properties of the Dynatrace environment. An `environmentProperties` block as defined below. */ environmentProperties?: pulumi.Input[]>; /** * The kind of managed identity assigned to this resource. A `identity` block as defined below. */ identity?: pulumi.Input; /** * The Azure Region where the Dynatrace monitor should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. Possible values are `Active` and `Suspended`. Changing this forces a new resource to be created. */ marketplaceSubscription?: pulumi.Input; /** * Flag specifying if the resource monitoring is enabled or disabled. Default is `true`. Changing this forces a new resource to be created. */ monitoringEnabled?: pulumi.Input; /** * Name of the Dynatrace monitor. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Billing plan information. A `plan` block as defined below. Changing this forces a new resource to be created. */ plan?: pulumi.Input; /** * The name of the Resource Group where the Dynatrace monitor should exist. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * User's information. A `user` block as defined below. Changing this forces a new resource to be created. */ user?: pulumi.Input; } /** * The set of arguments for constructing a Monitor resource. */ export interface MonitorArgs { /** * Properties of the Dynatrace environment. An `environmentProperties` block as defined below. */ environmentProperties?: pulumi.Input[]>; /** * The kind of managed identity assigned to this resource. A `identity` block as defined below. */ identity: pulumi.Input; /** * The Azure Region where the Dynatrace monitor should exist. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. Possible values are `Active` and `Suspended`. Changing this forces a new resource to be created. */ marketplaceSubscription: pulumi.Input; /** * Flag specifying if the resource monitoring is enabled or disabled. Default is `true`. Changing this forces a new resource to be created. */ monitoringEnabled?: pulumi.Input; /** * Name of the Dynatrace monitor. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Billing plan information. A `plan` block as defined below. Changing this forces a new resource to be created. */ plan: pulumi.Input; /** * The name of the Resource Group where the Dynatrace monitor should exist. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * User's information. A `user` block as defined below. Changing this forces a new resource to be created. */ user: pulumi.Input; }