MonitoringConfig

The metric setting details for the role API Version: 2020-12-01.

Example Usage

PutMonitoringConfig

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var monitoringConfig = new AzureNative.DataBoxEdge.MonitoringConfig("monitoringConfig", new()
{
DeviceName = "testedgedevice",
MetricConfigurations = new[]
{
new AzureNative.DataBoxEdge.Inputs.MetricConfigurationArgs
{
CounterSets = new[]
{
new AzureNative.DataBoxEdge.Inputs.MetricCounterSetArgs
{
Counters = new[]
{
new AzureNative.DataBoxEdge.Inputs.MetricCounterArgs
{
Name = "test",
},
},
},
},
MdmAccount = "test",
MetricNameSpace = "test",
ResourceId = "test",
},
},
ResourceGroupName = "GroupForEdgeAutomation",
RoleName = "testrole",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.databoxedge.MonitoringConfig;
import com.pulumi.azurenative.databoxedge.MonitoringConfigArgs;
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 monitoringConfig = new MonitoringConfig("monitoringConfig", MonitoringConfigArgs.builder()
.deviceName("testedgedevice")
.metricConfigurations(Map.ofEntries(
Map.entry("counterSets", Map.of("counters", Map.of("name", "test"))),
Map.entry("mdmAccount", "test"),
Map.entry("metricNameSpace", "test"),
Map.entry("resourceId", "test")
))
.resourceGroupName("GroupForEdgeAutomation")
.roleName("testrole")
.build());
}
}

Import

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

$ pulumi import azure-native:databoxedge:MonitoringConfig myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{roleName}/monitoringConfig/default

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The metrics configuration details

Link copied to clipboard
val name: Output<String>

The object name.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

The hierarchical type of the object.

Link copied to clipboard
val urn: Output<String>