{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-iot-core/refs/heads/main/json-schema/iot-core-get-buckets-aggregation-response-schema.json", "title": "GetBucketsAggregationResponse", "description": "GetBucketsAggregationResponse schema", "type": "object", "properties": { "totalCount": { "allOf": [ { "$ref": "#/components/schemas/Count" }, { "description": "The total number of things that fit the query string criteria." } ] }, "buckets": { "allOf": [ { "$ref": "#/components/schemas/Buckets" }, { "description": "

The main part of the response with a list of buckets. Each bucket contains a keyValue and a count.

keyValue: The aggregation field value counted for the particular bucket.

count: The number of documents that have that value.

" } ] } } }