curl --location -g --request POST 'https://api.iotwireless.{region}.amazonaws.com/indices/buckets' \
--header 'Content-Type: application/json' \
--data-raw '{
"indexName": "string",
"queryString": "string",
"aggregationField": "string",
"queryVersion": "string",
"bucketsAggregationType": {
"termsAggregation": {
"maxBuckets": 0
}
}
}'
{
"totalCount": 0,
"buckets": []
}
keyValue
and a count
.keyValue
: The aggregation field value counted for the particular bucket.count
: The number of documents that have that value.