Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel3

Overview

DescriptionRetrieving the event count of a range facet
Resource Path

/analytics/rangecount

HTTP MethodPOST
Request/Response Formatapplication/json
AuthenticationBasic

Example

Code Block
languagetext
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
languagetext
 

REST API response

 

HTTP status code

200

For descriptions of the HTTP status codes, see HTTP Status Codes.