class Aws::IoT::Types::CreateFleetMetricRequest


@return [Array<Types::Tag>]
Metadata, which can be used to manage the fleet metric.
@!attribute [rw] tags
@return [String]<br>: docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html<br><br><br><br>The unit must be supported by [CW metric]. Default to null.
Used to support unit transformation such as milliseconds to seconds.
@!attribute [rw] unit
@return [String]
The name of the index to search.
@!attribute [rw] index_name
@return [String]
The query version.
@!attribute [rw] query_version
@return [String]
The fleet metric description.
@!attribute [rw] description
@return [String]
The field to aggregate.
@!attribute [rw] aggregation_field
@return [Integer]
min), 86400(1 day)] and must be multiple of 60.
The time in seconds between fleet metric emissions. Range [60(1
@!attribute [rw] period
@return [Types::AggregationType]
The type of the aggregation query.
@!attribute [rw] aggregation_type
@return [String]
The search query string.
@!attribute [rw] query_string
@return [String]
The name of the fleet metric to create.
@!attribute [rw] metric_name
}
],
},
value: “TagValue”,
key: “TagKey”, # required
{
tags: [
unit: “Seconds”, # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
index_name: “IndexName”,
query_version: “QueryVersion”,
description: “FleetMetricDescription”,
aggregation_field: “AggregationField”, # required
period: 1, # required
},
values: [“AggregationTypeValue”],
name: “Statistics”, # required, accepts Statistics, Percentiles, Cardinality
aggregation_type: { # required
query_string: “QueryString”, # required
metric_name: “FleetMetricName”, # required
{
data as a hash:
@note When making an API call, you may pass CreateFleetMetricRequest