Service: Incidents
| This API is officially released and maintained. |
The incidents of the device, on a swarm leader of the swarm, as they start and end.
They are kept on the device for 90 days, at most 1000 of them.
| Method | Request | Response |
|---|---|---|
IncidentsWatchResponseStream |
||
List
Returns the incidents, the newest first
Request
Request to list the incidents
| Field | Type | Default | Unit |
|---|---|---|---|
time_span |
optional uint32 |
- |
s |
Requested time span up to now. An incident which ended before is not listed. Default: 7 days |
|||
ongoing |
optional bool |
- |
- |
List only the incidents which are ongoing |
|||
unacknowledged |
optional bool |
- |
- |
List only the incidents which are not acknowledged |
|||
Response
Response to list the incidents
| Field | Type | Default | Unit |
|---|---|---|---|
incidents |
repeated data.Incident |
- |
- |
Incidents, the newest first |
|||
Watch
Streams the incidents as they start, change and end.
The ongoing incidents are sent at the start of the stream.
Request
Request to watch the incidents
| Field | Type | Default | Unit |
|---|---|---|---|
delay |
optional uint32 |
- |
s |
Time an incident has to last before it is reported as started. An incident which ends or is acknowledged before is never reported as started, only as it ends or is acknowledged. Default: 0 s |
|||
Response Stream
Stream response of the incidents
| Field | Type | Default | Unit |
|---|---|---|---|
event |
- |
- |
|
What happened to the incident |
|||
incident |
- |
- |
|
The incident as it is now |
|||
Event
What happened to the incident
| Name | Value | Description |
|---|---|---|
EVENT_UNSPECIFIED |
0 |
Not specified |
EVENT_STARTED |
1 |
The incident started, or its module is a cause again within a minute after it ended, and it lasted the requested delay since |
EVENT_CHANGED |
2 |
The incident got worse or affects more modules |
EVENT_ENDED |
3 |
The incident ended: its module is no cause any more. |
EVENT_ACKNOWLEDGED |
4 |
The incident was acknowledged |