Opencast

Statistics Service REST Documentation

/statistics
This service provides statistics.

General Notes

Table of Contents

Read methods

Method / Path: GET /providers.json
Description: Returns active providers
Path params: NONE
Optional (query) params: NONE
Response formats: application/json
Status codes: 200: OK, The active providers.
Notes:
  • Return value description: Returns the active providers JSON document
Testing:
Sample: /providers.json
/statistics/providers.json
Method / Path: GET /timeseries/{providerId:.+}.json
Description: Returns the time series data for the given providerId
Path params: providerId: The provider identifier
Required (form) params: resourceId: The id of the resource to get the data for. E.g. episode id.
from: Start of the time series as ISO 8601 UTC date string
to: End of the time series as ISO 8601 UTC date string
resolution: Data aggregation level. Must be one of 'daily', 'weekly', 'monthly', 'yearly'
zoneId: The time zone id to use for calculations
Optional (query) params: NONE
Response formats: application/json
Status codes: 200: OK, The time series data.
Notes:
  • Return value description: Returns the time series data JSON document
Testing:
Sample: /timeseries/{providerId:.+}.json
Testing form (click to reveal)
Method / Path: GET /writeDuration
Description: Writes a duration
Path params: NONE
Optional (query) params: NONE
Response formats: application/json
Status codes: 204: No Content, Writing worked
Testing:
Sample: /writeDuration
/statistics/writeDuration