com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Retrieving the Event Count of Range Facets

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.

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.