azure-native.databoxedge.MonitoringConfig
Explore with Pulumi AI
The metric setting details for the role API Version: 2020-12-01.
Example Usage
PutMonitoringConfig
using System.Collections.Generic;
using System.Linq;
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 main
import (
databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databoxedge.NewMonitoringConfig(ctx, "monitoringConfig", &databoxedge.MonitoringConfigArgs{
DeviceName: pulumi.String("testedgedevice"),
MetricConfigurations: []databoxedge.MetricConfigurationArgs{
{
CounterSets: databoxedge.MetricCounterSetArray{
{
Counters: databoxedge.MetricCounterArray{
{
Name: pulumi.String("test"),
},
},
},
},
MdmAccount: pulumi.String("test"),
MetricNameSpace: pulumi.String("test"),
ResourceId: pulumi.String("test"),
},
},
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
RoleName: pulumi.String("testrole"),
})
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.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 pulumi
import pulumi_azure_native as azure_native
monitoring_config = azure_native.databoxedge.MonitoringConfig("monitoringConfig",
device_name="testedgedevice",
metric_configurations=[{
"counterSets": [{
"counters": [azure_native.databoxedge.MetricCounterArgs(
name="test",
)],
}],
"mdmAccount": "test",
"metricNameSpace": "test",
"resourceId": "test",
}],
resource_group_name="GroupForEdgeAutomation",
role_name="testrole")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const monitoringConfig = new azure_native.databoxedge.MonitoringConfig("monitoringConfig", {
deviceName: "testedgedevice",
metricConfigurations: [{
counterSets: [{
counters: [{
name: "test",
}],
}],
mdmAccount: "test",
metricNameSpace: "test",
resourceId: "test",
}],
resourceGroupName: "GroupForEdgeAutomation",
roleName: "testrole",
});
resources:
monitoringConfig:
type: azure-native:databoxedge:MonitoringConfig
properties:
deviceName: testedgedevice
metricConfigurations:
- counterSets:
- counters:
- name: test
mdmAccount: test
metricNameSpace: test
resourceId: test
resourceGroupName: GroupForEdgeAutomation
roleName: testrole
Create MonitoringConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitoringConfig(name: string, args: MonitoringConfigArgs, opts?: CustomResourceOptions);
@overload
def MonitoringConfig(resource_name: str,
args: MonitoringConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitoringConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
device_name: Optional[str] = None,
metric_configurations: Optional[Sequence[MetricConfigurationArgs]] = None,
resource_group_name: Optional[str] = None,
role_name: Optional[str] = None)
func NewMonitoringConfig(ctx *Context, name string, args MonitoringConfigArgs, opts ...ResourceOption) (*MonitoringConfig, error)
public MonitoringConfig(string name, MonitoringConfigArgs args, CustomResourceOptions? opts = null)
public MonitoringConfig(String name, MonitoringConfigArgs args)
public MonitoringConfig(String name, MonitoringConfigArgs args, CustomResourceOptions options)
type: azure-native:databoxedge:MonitoringConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MonitoringConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MonitoringConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MonitoringConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitoringConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitoringConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var monitoringConfigResource = new AzureNative.Databoxedge.MonitoringConfig("monitoringConfigResource", new()
{
DeviceName = "string",
MetricConfigurations = new[]
{
{
{ "counterSets", new[]
{
{
{ "counters", new[]
{
{
{ "name", "string" },
{ "additionalDimensions", new[]
{
{
{ "sourceName", "string" },
{ "sourceType", "string" },
},
} },
{ "dimensionFilter", new[]
{
{
{ "sourceName", "string" },
{ "sourceType", "string" },
},
} },
{ "instance", "string" },
},
} },
},
} },
{ "resourceId", "string" },
{ "mdmAccount", "string" },
{ "metricNameSpace", "string" },
},
},
ResourceGroupName = "string",
RoleName = "string",
});
example, err := databoxedge.NewMonitoringConfig(ctx, "monitoringConfigResource", &databoxedge.MonitoringConfigArgs{
DeviceName: "string",
MetricConfigurations: []map[string]interface{}{
map[string]interface{}{
"counterSets": []map[string]interface{}{
map[string]interface{}{
"counters": []map[string]interface{}{
map[string]interface{}{
"name": "string",
"additionalDimensions": []map[string]interface{}{
map[string]interface{}{
"sourceName": "string",
"sourceType": "string",
},
},
"dimensionFilter": []map[string]interface{}{
map[string]interface{}{
"sourceName": "string",
"sourceType": "string",
},
},
"instance": "string",
},
},
},
},
"resourceId": "string",
"mdmAccount": "string",
"metricNameSpace": "string",
},
},
ResourceGroupName: "string",
RoleName: "string",
})
var monitoringConfigResource = new MonitoringConfig("monitoringConfigResource", MonitoringConfigArgs.builder()
.deviceName("string")
.metricConfigurations(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.resourceGroupName("string")
.roleName("string")
.build());
monitoring_config_resource = azure_native.databoxedge.MonitoringConfig("monitoringConfigResource",
device_name=string,
metric_configurations=[{
counterSets: [{
counters: [{
name: string,
additionalDimensions: [{
sourceName: string,
sourceType: string,
}],
dimensionFilter: [{
sourceName: string,
sourceType: string,
}],
instance: string,
}],
}],
resourceId: string,
mdmAccount: string,
metricNameSpace: string,
}],
resource_group_name=string,
role_name=string)
const monitoringConfigResource = new azure_native.databoxedge.MonitoringConfig("monitoringConfigResource", {
deviceName: "string",
metricConfigurations: [{
counterSets: [{
counters: [{
name: "string",
additionalDimensions: [{
sourceName: "string",
sourceType: "string",
}],
dimensionFilter: [{
sourceName: "string",
sourceType: "string",
}],
instance: "string",
}],
}],
resourceId: "string",
mdmAccount: "string",
metricNameSpace: "string",
}],
resourceGroupName: "string",
roleName: "string",
});
type: azure-native:databoxedge:MonitoringConfig
properties:
deviceName: string
metricConfigurations:
- counterSets:
- counters:
- additionalDimensions:
- sourceName: string
sourceType: string
dimensionFilter:
- sourceName: string
sourceType: string
instance: string
name: string
mdmAccount: string
metricNameSpace: string
resourceId: string
resourceGroupName: string
roleName: string
MonitoringConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The MonitoringConfig resource accepts the following input properties:
- Device
Name string - The device name.
- Metric
Configurations List<Pulumi.Azure Native. Data Box Edge. Inputs. Metric Configuration> - The metrics configuration details
- Resource
Group stringName - The resource group name.
- Role
Name string - The role name.
- Device
Name string - The device name.
- Metric
Configurations []MetricConfiguration Args - The metrics configuration details
- Resource
Group stringName - The resource group name.
- Role
Name string - The role name.
- device
Name String - The device name.
- metric
Configurations List<MetricConfiguration> - The metrics configuration details
- resource
Group StringName - The resource group name.
- role
Name String - The role name.
- device
Name string - The device name.
- metric
Configurations MetricConfiguration[] - The metrics configuration details
- resource
Group stringName - The resource group name.
- role
Name string - The role name.
- device_
name str - The device name.
- metric_
configurations Sequence[MetricConfiguration Args] - The metrics configuration details
- resource_
group_ strname - The resource group name.
- role_
name str - The role name.
- device
Name String - The device name.
- metric
Configurations List<Property Map> - The metrics configuration details
- resource
Group StringName - The resource group name.
- role
Name String - The role name.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitoringConfig resource produces the following output properties:
Supporting Types
MetricConfiguration, MetricConfigurationArgs
- Counter
Sets List<Pulumi.Azure Native. Data Box Edge. Inputs. Metric Counter Set> - Host name for the IoT hub associated to the device.
- Resource
Id string - The Resource ID on which the metrics should be pushed.
- Mdm
Account string - The MDM account to which the counters should be pushed.
- Metric
Name stringSpace - The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
- Counter
Sets []MetricCounter Set - Host name for the IoT hub associated to the device.
- Resource
Id string - The Resource ID on which the metrics should be pushed.
- Mdm
Account string - The MDM account to which the counters should be pushed.
- Metric
Name stringSpace - The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
- counter
Sets List<MetricCounter Set> - Host name for the IoT hub associated to the device.
- resource
Id String - The Resource ID on which the metrics should be pushed.
- mdm
Account String - The MDM account to which the counters should be pushed.
- metric
Name StringSpace - The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
- counter
Sets MetricCounter Set[] - Host name for the IoT hub associated to the device.
- resource
Id string - The Resource ID on which the metrics should be pushed.
- mdm
Account string - The MDM account to which the counters should be pushed.
- metric
Name stringSpace - The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
- counter_
sets Sequence[MetricCounter Set] - Host name for the IoT hub associated to the device.
- resource_
id str - The Resource ID on which the metrics should be pushed.
- mdm_
account str - The MDM account to which the counters should be pushed.
- metric_
name_ strspace - The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
- counter
Sets List<Property Map> - Host name for the IoT hub associated to the device.
- resource
Id String - The Resource ID on which the metrics should be pushed.
- mdm
Account String - The MDM account to which the counters should be pushed.
- metric
Name StringSpace - The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
MetricConfigurationResponse, MetricConfigurationResponseArgs
- Counter
Sets List<Pulumi.Azure Native. Data Box Edge. Inputs. Metric Counter Set Response> - Host name for the IoT hub associated to the device.
- Resource
Id string - The Resource ID on which the metrics should be pushed.
- Mdm
Account string - The MDM account to which the counters should be pushed.
- Metric
Name stringSpace - The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
- Counter
Sets []MetricCounter Set Response - Host name for the IoT hub associated to the device.
- Resource
Id string - The Resource ID on which the metrics should be pushed.
- Mdm
Account string - The MDM account to which the counters should be pushed.
- Metric
Name stringSpace - The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
- counter
Sets List<MetricCounter Set Response> - Host name for the IoT hub associated to the device.
- resource
Id String - The Resource ID on which the metrics should be pushed.
- mdm
Account String - The MDM account to which the counters should be pushed.
- metric
Name StringSpace - The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
- counter
Sets MetricCounter Set Response[] - Host name for the IoT hub associated to the device.
- resource
Id string - The Resource ID on which the metrics should be pushed.
- mdm
Account string - The MDM account to which the counters should be pushed.
- metric
Name stringSpace - The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
- counter_
sets Sequence[MetricCounter Set Response] - Host name for the IoT hub associated to the device.
- resource_
id str - The Resource ID on which the metrics should be pushed.
- mdm_
account str - The MDM account to which the counters should be pushed.
- metric_
name_ strspace - The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
- counter
Sets List<Property Map> - Host name for the IoT hub associated to the device.
- resource
Id String - The Resource ID on which the metrics should be pushed.
- mdm
Account String - The MDM account to which the counters should be pushed.
- metric
Name StringSpace - The MDM namespace to which the counters should be pushed. This is required if MDMAccount is specified
MetricCounter, MetricCounterArgs
- Name string
- The counter name.
- Additional
Dimensions List<Pulumi.Azure Native. Data Box Edge. Inputs. Metric Dimension> - The additional dimensions to be added to metric.
- Dimension
Filter List<Pulumi.Azure Native. Data Box Edge. Inputs. Metric Dimension> - The dimension filter.
- Instance string
- The instance from which counter should be collected.
- Name string
- The counter name.
- Additional
Dimensions []MetricDimension - The additional dimensions to be added to metric.
- Dimension
Filter []MetricDimension - The dimension filter.
- Instance string
- The instance from which counter should be collected.
- name String
- The counter name.
- additional
Dimensions List<MetricDimension> - The additional dimensions to be added to metric.
- dimension
Filter List<MetricDimension> - The dimension filter.
- instance String
- The instance from which counter should be collected.
- name string
- The counter name.
- additional
Dimensions MetricDimension[] - The additional dimensions to be added to metric.
- dimension
Filter MetricDimension[] - The dimension filter.
- instance string
- The instance from which counter should be collected.
- name str
- The counter name.
- additional_
dimensions Sequence[MetricDimension] - The additional dimensions to be added to metric.
- dimension_
filter Sequence[MetricDimension] - The dimension filter.
- instance str
- The instance from which counter should be collected.
- name String
- The counter name.
- additional
Dimensions List<Property Map> - The additional dimensions to be added to metric.
- dimension
Filter List<Property Map> - The dimension filter.
- instance String
- The instance from which counter should be collected.
MetricCounterResponse, MetricCounterResponseArgs
- Name string
- The counter name.
- Additional
Dimensions List<Pulumi.Azure Native. Data Box Edge. Inputs. Metric Dimension Response> - The additional dimensions to be added to metric.
- Dimension
Filter List<Pulumi.Azure Native. Data Box Edge. Inputs. Metric Dimension Response> - The dimension filter.
- Instance string
- The instance from which counter should be collected.
- Name string
- The counter name.
- Additional
Dimensions []MetricDimension Response - The additional dimensions to be added to metric.
- Dimension
Filter []MetricDimension Response - The dimension filter.
- Instance string
- The instance from which counter should be collected.
- name String
- The counter name.
- additional
Dimensions List<MetricDimension Response> - The additional dimensions to be added to metric.
- dimension
Filter List<MetricDimension Response> - The dimension filter.
- instance String
- The instance from which counter should be collected.
- name string
- The counter name.
- additional
Dimensions MetricDimension Response[] - The additional dimensions to be added to metric.
- dimension
Filter MetricDimension Response[] - The dimension filter.
- instance string
- The instance from which counter should be collected.
- name str
- The counter name.
- additional_
dimensions Sequence[MetricDimension Response] - The additional dimensions to be added to metric.
- dimension_
filter Sequence[MetricDimension Response] - The dimension filter.
- instance str
- The instance from which counter should be collected.
- name String
- The counter name.
- additional
Dimensions List<Property Map> - The additional dimensions to be added to metric.
- dimension
Filter List<Property Map> - The dimension filter.
- instance String
- The instance from which counter should be collected.
MetricCounterSet, MetricCounterSetArgs
- Counters
List<Pulumi.
Azure Native. Data Box Edge. Inputs. Metric Counter> - The counters that should be collected in this set.
- Counters
[]Metric
Counter - The counters that should be collected in this set.
- counters
List<Metric
Counter> - The counters that should be collected in this set.
- counters
Metric
Counter[] - The counters that should be collected in this set.
- counters
Sequence[Metric
Counter] - The counters that should be collected in this set.
- counters List<Property Map>
- The counters that should be collected in this set.
MetricCounterSetResponse, MetricCounterSetResponseArgs
- Counters
List<Pulumi.
Azure Native. Data Box Edge. Inputs. Metric Counter Response> - The counters that should be collected in this set.
- Counters
[]Metric
Counter Response - The counters that should be collected in this set.
- counters
List<Metric
Counter Response> - The counters that should be collected in this set.
- counters
Metric
Counter Response[] - The counters that should be collected in this set.
- counters
Sequence[Metric
Counter Response] - The counters that should be collected in this set.
- counters List<Property Map>
- The counters that should be collected in this set.
MetricDimension, MetricDimensionArgs
- Source
Name string - The dimension value.
- Source
Type string - The dimension type.
- Source
Name string - The dimension value.
- Source
Type string - The dimension type.
- source
Name String - The dimension value.
- source
Type String - The dimension type.
- source
Name string - The dimension value.
- source
Type string - The dimension type.
- source_
name str - The dimension value.
- source_
type str - The dimension type.
- source
Name String - The dimension value.
- source
Type String - The dimension type.
MetricDimensionResponse, MetricDimensionResponseArgs
- Source
Name string - The dimension value.
- Source
Type string - The dimension type.
- Source
Name string - The dimension value.
- Source
Type string - The dimension type.
- source
Name String - The dimension value.
- source
Type String - The dimension type.
- source
Name string - The dimension value.
- source
Type string - The dimension type.
- source_
name str - The dimension value.
- source_
type str - The dimension type.
- source
Name String - The dimension value.
- source
Type String - The dimension type.
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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0