stats

Returns aggregated data (averaged, max, min) over an interval of time for a set of sensors.

The sensors should all be of the same (sensor) type (or all web checks).

post/stats/aggregate

Request

  • Base URL: https://api.30mhz.com/api
  • URL: https://api.30mhz.com/api/stats/aggregate
  • Auth: API key in header Authorization

Query parameters

locationstring

Optionally filter only the data from one location. Leave empty or set to 'all' to get all locations

timezoneOffsetinteger

The timezone offset, in hours, for which to return the data. For example, 2 for Europe/Amsterdam. -3 for America/Argentina/Buenos_Aires. If empty, then UTC/GMT time is assumed, but it's probably not what you want. See list of timezones: <a>https://en.wikipedia.org/wiki/List_of_tz_database_time_zones</a>

fieldsstring

Optional - list of json fields for which the values should be returned. Separated by comma (,).

Request body

checkIdsstring[]
collectionIdsPerFieldobject

Filter/group values based on fields and collection ids

cumulativeboolean
intervalstring
intervalFromstring
intervalSizestring
intervalTostring
organizationIdstring
partOfDay'ALLTIME' | 'DAYTIME' | 'NIGHTTIME'
sensorTypestring
statisticTypestring
tagsstring[]
tagsOperatorstring

Response

Checks statistic

object required

Changes

No recorded changes to this operation across all 1 revision of this API.