stats

Returns the last value recorded of the check

When no valid recent record found (we check the last 5 * frequency seconds by default), the operation will return a 410 or 412 with the possible causes for this check state. 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>

get/stats/check/{checkId}

Request

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

Path parameters

checkIdstring required

Query parameters

returnIfConditionMetboolean

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

maxAgeinteger

Maximum age of the record in minutes, by default 5 * frequency

Response

Last recorded value of sensor

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.