Returns historical data for the sensor or web check with given check id, for the interval indicated.
Authentication required. User should be part of the check's organization. <br><br>For example: <br><tab><code>/stats/check/9cca5615-b654-4e6e-96d2-f5db89805a83/1d </code><br>returns a date histogram with the data for the given sensor for the past day, for example: <br>
Request
- Base URL: https://api.30mhz.com/api
- URL: https://api.30mhz.com/api/stats/check/{checkId}/interval/{interval}
- Auth: API key in header Authorization
Path parameters
The check id of the sensor
Intervals allowed : c, today, (f)1h, (f)2h, ..., (f)xh, (f)1d, (f)2d, ..., (f)xd, (f)1w, (f)2w, ..., (f)xw, (f)1M, (f)2M, ..., (f)xM.
Query parameters
Current statistics supported : averages, counts, maxs, mins, sums.
Size of the time intervals in which to aggregate the data. This parameter is given as a number of minutes, hours, days or weeks, or monthly, e.g. '5m' is five minutes, '1h' is one hour, '5d' is five days, '2w' is two weeks and 'M' is monthly. The optional 'f' prefix is used to retrieve the full interval according to the provided unit, e.g. 'f1w' will retrieve the last full week (Mon to Sun), 'f2d' will retrieve the last two full days (Wed and Thu if it is Fri).
Optional - accumulate the values.
Optional - derivative of the values.
Optionally filter only the data from one location. Leave empty or set to 'all' to get all locations
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>
Optional - list of json fields for which the values should be returned. Separated by comma (,).
Send debug info in the response, such as timestamp in a user friendly format.
Optional - filter by daytime or nighttime.
Optional - filter data by returning datapoints for when the data source is in the cultivation.
Response
Historical data of the check in the requested interval
Changes
No recorded changes to this operation across all 1 revision of this API.