Interface CfnFleetMetricProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFleetMetricProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:57.546Z")
@Stability(Stable)
public interface CfnFleetMetricProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnFleetMetric.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;
CfnFleetMetricProps cfnFleetMetricProps = CfnFleetMetricProps.builder()
.metricName("metricName")
// the properties below are optional
.aggregationField("aggregationField")
.aggregationType(AggregationTypeProperty.builder()
.name("name")
.values(List.of("values"))
.build())
.description("description")
.indexName("indexName")
.period(123)
.queryString("queryString")
.queryVersion("queryVersion")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.unit("unit")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFleetMetricPropsstatic final classAn implementation forCfnFleetMetricProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnFleetMetricProps.Builderbuilder()default StringThe field to aggregate.default ObjectThe type of the aggregation query.default StringThe fleet metric description.default StringThe name of the index to search.The name of the fleet metric to create.default NumberThe time in seconds between fleet metric emissions.default StringThe search query string.default StringThe query version.getTags()Metadata which can be used to manage the fleet metric.default StringgetUnit()Used to support unit transformation such as milliseconds to seconds.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMetricName
The name of the fleet metric to create. -
getAggregationField
The field to aggregate. -
getAggregationType
The type of the aggregation query. -
getDescription
The fleet metric description. -
getIndexName
The name of the index to search. -
getPeriod
The time in seconds between fleet metric emissions.Range [60(1 min), 86400(1 day)] and must be multiple of 60.
-
getQueryString
The search query string. -
getQueryVersion
The query version. -
getTags
Metadata which can be used to manage the fleet metric. -
getUnit
Used to support unit transformation such as milliseconds to seconds.Must be a unit supported by CW metric. Default to null.
-
builder
- Returns:
- a
CfnFleetMetricProps.BuilderofCfnFleetMetricProps
-