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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnFleetMetricProps
static final class
An implementation forCfnFleetMetricProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnFleetMetricProps.Builder
builder()
default String
The field to aggregate.default Object
The type of the aggregation query.default String
The fleet metric description.default String
The name of the index to search.The name of the fleet metric to create.default Number
The time in seconds between fleet metric emissions.default String
The search query string.default String
The query version.getTags()
Metadata which can be used to manage the fleet metric.default String
getUnit()
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.Builder
ofCfnFleetMetricProps
-