Skip to main content
Version: 2.9.0

Alarms (v1) - Retrieve Information About Alarms

Introduction

The Superna Eyeglass REST API - v1 Alarms provides endpoints to retrieve, manage, and monitor alarm states in Superna Eyeglass. This API allows you to view both active and historical alarms

Endpoints

GET /v1/alarms/active

Description: Returns all active alarms from Eyeglass.

Parameters:

ParameterValueDescriptionParameter TypeData Type
since(optional)Timestamp for filtering the active alarms newer thanquerylong
until(optional)Timestamp for filtering the active alarms older thanquerylong
limit(optional)Limits the number of returned alarmsquerylong

Response Codes:

  • 200 OK: Successfully retrieved active alarms.
  • default: Error payload, see response structure.

Model:

[
{
"code": "string",
"extra_data": "string",
"message": "string",
"severity": "string",
"source": "string",
"sync_group": "string",
"sync_key": "string",
"timestamp": 0
}
]

Response Messages:

  • default (Error)

    {
    "code": 0,
    "message": "string"
    }

GET /v1/alarms/historical

Description: Returns all historical alarms from Eyeglass.

Parameters:

ParameterValueDescriptionParameter TypeData Type
since(optional)Timestamp for filtering the active alarms newer thanquerylong
until(optional)Timestamp for filtering the active alarms older thanquerylong
limit(optional)Limits the number of returned alarmsquerylong

Response Codes:

  • 200 OK: Successfully retrieved historical alarms.
  • default: Error payload, see response structure.

Model:

[
{
"code": "string",
"extra_data": "string",
"message": "string",
"severity": "string",
"source": "string",
"sync_group": "string",
"sync_key": "string",
"timestamp": 0
}
]

Response Messages:

  • default (Error)

    {
    "code": 0,
    "message": "string"
    }