MonitorArgs

data class MonitorArgs(val identity: Output<IdentityPropertiesArgs>? = null, val location: Output<String>? = null, val monitorName: Output<String>? = null, val properties: Output<MonitorPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<ResourceSkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<MonitorArgs>

Monitor resource. Uses Azure REST API version 2024-03-01. In version 2.x of the Azure Native provider, it used API version 2023-06-01. Other available API versions: 2023-06-01, 2023-06-15-preview, 2023-07-01-preview, 2023-10-01-preview, 2023-11-01-preview, 2024-01-01-preview, 2024-05-01-preview, 2024-06-15-preview, 2024-10-01-preview, 2025-01-15-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native elastic [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Monitors_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var monitor = new AzureNative.Elastic.Monitor("monitor", new()
{
MonitorName = "myMonitor",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
elastic "github.com/pulumi/pulumi-azure-native-sdk/elastic/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elastic.NewMonitor(ctx, "monitor", &elastic.MonitorArgs{
MonitorName: pulumi.String("myMonitor"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.elastic.Monitor;
import com.pulumi.azurenative.elastic.MonitorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var monitor = new Monitor("monitor", MonitorArgs.builder()
.monitorName("myMonitor")
.resourceGroupName("myResourceGroup")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:elastic:Monitor myMonitor /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}

Constructors

Link copied to clipboard
constructor(identity: Output<IdentityPropertiesArgs>? = null, location: Output<String>? = null, monitorName: Output<String>? = null, properties: Output<MonitorPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, sku: Output<ResourceSkuArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val identity: Output<IdentityPropertiesArgs>? = null

Identity properties of the monitor resource.

Link copied to clipboard
val location: Output<String>? = null

The location of the monitor resource

Link copied to clipboard
val monitorName: Output<String>? = null

Monitor resource name

Link copied to clipboard
val properties: Output<MonitorPropertiesArgs>? = null

Properties of the monitor resource.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val sku: Output<ResourceSkuArgs>? = null

SKU of the monitor resource.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

The tags of the monitor resource.

Functions

Link copied to clipboard
open override fun toJava(): MonitorArgs