Table of Contents | ||
---|---|---|
|
Overview
Description | Retrieving the event count of a range facet |
Resource Path | /analytics/rangecount |
HTTP Method | POST |
Request/Response Format | application/json |
Authentication | Basic |
Example
Code Block | ||
---|---|---|
| ||
POST https://localhost:9443/analytics/rangecount
{
"tableName":"testtable",
"rangeField":"distance",
"ranges":[
{
"label":"1km - 3km",
"from":1000,
"to":3000
},
{
"label":"3km - 6km",
"from":3000,
"to":6000
}
],
"query": "location":"NYC"
} |
Sample output
Code Block | ||
---|---|---|
| ||
1km - 3km: 8
3km - 6km: 6 |
REST API response
HTTP status code | 200 For descriptions of the HTTP status codes, see HTTP Status Codes. |