DUET PlatformDocs
API referenceRead APISensors and signals

List the latest value of each tag

available
GET
/platform/v1/signals/latest

Lists the newest value and last-sample time of each tag in a project, for each lane and resolution it has. Use it to check per-tag freshness.

Authorization

Bearer
headerAuthorizationBearer <token>

Query Parameters

project_id*string

The ID of the project to read from.

tag_class?string

Returns only tags of this class.

device_id?array<string>

Returns only performance rows of these DUET devices. raw_signal rows have no DUET device, so this filter leaves them out. Repeat the parameter for more than one device.

tag?array<string>

Returns only these tags, by sensor_tag. Repeat the parameter for more than one tag.

lane?string

Returns only rows from this lane. Both lanes by default.

Value in"raw_signal""performance"
resolution?string

Returns only rows of this resolution. Both resolutions by default.

Value in"raw""1m"

Response Body

The newest value of each tag, ordered by tag.

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://api.enurgen.com/platform/v1/signals/latest?project_id=string'
Example Response
[  {    "lane": "raw_signal",    "sensor_tag": "string",    "hierarchy_id": "string",    "device_id": "string",    "device_key": "string",    "device_name": "string",    "tag_class": "string",    "value_encoding": "float",    "unit": "string",    "resolution": "raw",    "last_sample_at": "2019-08-24T14:15:22Z",    "received_at": "2019-08-24T14:15:22Z",    "value": 0,    "raw_value": 0,    "value_int": 0,    "value_str": "string",    "quality": "good",    "status_code": 0,    "status_name": "string"  }]