CustomMetricArgs

data class CustomMetricArgs(val displayName: Output<String>? = null, val metricName: Output<String>? = null, val metricType: Output<CustomMetricMetricType>? = null, val tags: Output<List<TagArgs>>? = null) : ConvertibleToJava<CustomMetricArgs>

A custom metric published by your devices to Device Defender.

Example Usage

Example

No Java example available.

Constructors

Link copied to clipboard
constructor(displayName: Output<String>? = null, metricName: Output<String>? = null, metricType: Output<CustomMetricMetricType>? = null, tags: Output<List<TagArgs>>? = null)

Properties

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

Field represents a friendly name in the console for the custom metric; it doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated once defined.

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

The name of the custom metric. This will be used in the metric report submitted from the device/thing. Shouldn't begin with aws: . Cannot be updated once defined.

Link copied to clipboard
val metricType: Output<CustomMetricMetricType>? = null

The type of the custom metric. Types include string-list, ip-address-list, number-list, and number.

Link copied to clipboard
val tags: Output<List<TagArgs>>? = null

An array of key-value pairs to apply to this resource.

Functions

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