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


DescriptionRetrieving aggregated values of given records
Resource Path


Request/Response Formatapplication/json
Parameter description
The name of the event table for which this query should be run.
This specifies whether the aggregate should be calculated for a child category within a specific category. When you specify a parent path, everything that is not included in that path is ignored when the groupBy operation is executed. Therefore, this parameter also plays the role of a filter.
This specifies the level up to which the aggregation should be done. This is specified relative to the parent path.
This represents the GROUP BY equivalent in SQL, and specifies the field by which the retrieved values should be grouped.

This is an array of JSON objects. Each object represents the field that you want to aggregate.

  • fieldName: This is the field that should be aggregated.
  • aggregate: This is the aggregate function that should be used.
  • alias: This is the field name that is used for the aggregated result.


GET https://localhost:9443/analytics/aggregates
"parentPath": [],
"aggregateLevel": 0,

Sample output

        "single_valued_facet_field":[engineering] //This should be a facet with a single value.
        "single_valued_facet_field":[marketing] //This should be a facet with a single value.

REST API response

HTTP status code


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