Skip to main content
Documentation
Preview
You're viewing the Next docs — a rolling preview of in-development changes. The current release docs may differ.

Telemetry

Device events are structured messages emitted by a device and stored by Nexigon Hub. Use them for a history of device behavior; use properties for the latest reported state.

For examples, follow Device Telemetry.

Event Fields

FieldMeaning
BodyAny JSON value, including a message string or structured object.
SeverityImportance of the event; defaults to info.
CategoryOptional string identifying an event type. Keep the set of categories small.
AttributesAdditional named JSON values, such as version or sensor identifiers.

Severity Values

ValueMeaning
traceLow-level execution details.
debugDiagnostic information for debugging.
infoRoutine informational messages.
warningA potential problem that may need attention.
errorA problem that affects functionality.
criticalA severe problem requiring immediate attention.

Emission Interface

nexigon-agent events emit [OPTIONS] <BODY>

Options:
  --severity <SEVERITY>     Event severity [default: info]
  --category <CATEGORY>     Event category
  --attribute <ATTRIBUTE>   Event attribute; repeat for multiple attributes

Each attribute uses name=<JSON-value> syntax.

Nexigon Agent sends events immediately. It has no offline buffer; emission fails without a connection to Nexigon Hub.

Querying Events

Use devices_QueryEvents to query a device’s stored events. See Pagination for cursor handling, ordering, and consistency rules.