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.

Limits

An organization’s plan can limit how many events each device stores per day and per billing period. When the new events of a request would exceed a limit, Nexigon Hub rejects the whole request with a RateLimited error that states when to retry. A request with more new events than a limit allows fails with an Invalid error. Events sent again with the same ID do not count toward the limits. Settings → Usage & Limits shows the limits of your organization and how long Nexigon Hub keeps device events.

Querying Events

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