public static final class CfnCustomMetric.Builder
extends java.lang.Object
CfnCustomMetric
.Modifier and Type | Method and Description |
---|---|
CfnCustomMetric |
build() |
static CfnCustomMetric.Builder |
create(Construct scope,
java.lang.String id) |
CfnCustomMetric.Builder |
displayName(java.lang.String displayName)
The friendly name in the console for the custom metric.
|
CfnCustomMetric.Builder |
metricName(java.lang.String metricName)
The name of the custom metric.
|
CfnCustomMetric.Builder |
metricType(java.lang.String metricType)
The type of the custom metric.
|
CfnCustomMetric.Builder |
tags(java.util.List<? extends CfnTag> tags)
Metadata that can be used to manage the custom metric.
|
public static CfnCustomMetric.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnCustomMetric.Builder
.public CfnCustomMetric.Builder metricType(java.lang.String metricType)
The type
number
only takes a single metric value as an input, but when you submit the metrics value in the DeviceMetrics report, you must pass it as an array with a single value.
metricType
- The type of the custom metric. Types include `string-list` , `ip-address-list` , `number-list` , and `number` . This parameter is required.this
public CfnCustomMetric.Builder displayName(java.lang.String displayName)
This name doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. You can update the friendly name after you define it.
displayName
- The friendly name in the console for the custom metric. This parameter is required.this
public CfnCustomMetric.Builder metricName(java.lang.String metricName)
This will be used in the metric report submitted from the device/thing. The name can't begin with aws:
. You can’t change the name after you define it.
metricName
- The name of the custom metric. This parameter is required.this
public CfnCustomMetric.Builder tags(java.util.List<? extends CfnTag> tags)
tags
- Metadata that can be used to manage the custom metric. This parameter is required.this
public CfnCustomMetric build()