v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-142381,278956.3 KB

Updates the data for a fleet metric.

Requires permission to access the UpdateFleetMetric action.

patch/fleet-metric/{metricName}

Path parameters

metricNamestring required

The name of the fleet metric to update.

Request body

queryStringstring

The search query string.

periodinteger

The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.

aggregationFieldstring

The field to aggregate.

descriptionstring

The description of the fleet metric.

queryVersionstring

The version of the query.

indexNamestring required

The name of the index to search.

unit'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'

Used to support unit transformation such as milliseconds to seconds. The unit must be supported by <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">CW metric</a>.

expectedVersioninteger

The expected version of the fleet metric record in the registry.

Response

Success