alarms/short_name

The alarms/short_name URI manipulates a web services alarm record.

URI path

alarms/short_name

Alarm configuration records

Alarm configuration records include:

Note In the initial release, only vehicle data URIs support alarms. The interface is defined such that other URIs can be added to alarms without changing the registration methods.

Supported request methods

GET

Queries the system for the record associated with the specified short name. The short name was supplied by the user when the record was first stored in the device.

PUT

If the requested record does not yet exist, a new record (with the requested URI) is added to the system. If the requested record already exists in the system, the existing record is modified to match the supplied record data.

DELETE

Removes the specified record from the system.

Supported content types

XML

The GET and PUT forms use an alarm record. For example:

<alarm>
         <uri>vehicle/data/EngineSpeed</uri>
         <type>above</type>
         <buffer>discard</buffer>
         <threshold>8000.0</threshold>
         <interval>60</interval>
</alarm>

JSON

The GET and PUT forms create an object assigned to an alarm field. In PUT requests, numeric fields need not be quoted, but GET responses will feature all fields and values as quoted strings, regardless of type. For example:

{ “alarm” : { “uri” :  “vehicle/data/EngineSpeed”,
              “type” : “above”,  “buffer” : “discard”,
              “threshold” : “8000.0”,  “interval” : “60” } }

 

© 2019 Digi International Inc. All rights reserved.
alarms/short_name updated on 18 Oct 2017 09:43 AM