stats

Returns the information about the more recent value for one or more sensors.

For each sensor, it returns the last recent value, or if none an indication of the possible causes For example: 1000: Check is currently paused<br>1001: Check is not scheduled to run at this time. Check [cron] property.<br>1003: There is no recent data for the sensor. Mother might be powered off or not connected to the Internet, or sensor might be out of reach or off.<br>1004: The check is configured with an invalid schedule/cron.<br>1005: The data we have for the sensor is old.<br>1006: Problem communicating with sensor. No data available.<br>

post/stats

Request

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

Query parameters

fieldsstring

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

tagsstring

Optional - Set tags to automatically select checks based on their tags (if tags are provided, organization id and sensor type should also be set. Separated by comma (,)

tagsoperatorstring

Optional - Tags boolean operator (and/or)

organizationidstring

Optional - The id of an organization (when tags are set)

sensortypestring

Optional - The id of a sensor type (when tags are set)

returnIfConditionMetboolean

Set to true if you want to know if condition for the checks are met. False by default.

Request body

string[] required

Response

The most recent values of the sensors, or an indication of their state

batteryStatusstring

Sensor's battery status, if applies.

checkIdstring

Id of the check

codeinteger

Error code.

jsonobject

Event's data for webchecks.

lastRecordedStatsobject

Event's data

matchConditionboolean

Whether the condition is matched, if applies.

messagestring

Error message.

timestampstring

Event's UTC timestamp in ISO 8601 format e.g. 2017-01-17T19:23:02Z

Changes

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