The latest version for DAS is WSO2 Data Analytics Server 3.2.0. View documentation for the latest release.
WSO2 Data Analytics Server is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.
||
Skip to end of metadata
Go to start of metadata

Overview

DescriptionRetrieving the event count of a range facet
Resource Path

/analytics/rangecount

HTTP MethodPOST
Request/Response Formatapplication/json
AuthenticationBasic

Example

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

 1km - 3km: 8
 3km - 6km: 6

REST API response

 

HTTP status code

200

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

  • No labels
  • Download PDF icon Download PDF
  • Download a PDF file of the documentation