Service: Incidents

This page documents an earlier firmware release. Read this page for the latest release
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.

Table 1. Available methods
Method Request Response

List

IncidentsListRequest

IncidentsListResponse

Watch

IncidentsWatchRequest

IncidentsWatchResponseStream

Acknowledge

IncidentsAcknowledgeRequest

google.protobuf.Empty

List

Returns the incidents, the newest first

Request

Request to list the incidents

Table 2. Available fields in blickfeld.diagnostics.services.IncidentsListRequest
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

Table 3. Available fields in blickfeld.diagnostics.services.IncidentsListResponse
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

Table 4. Available fields in blickfeld.diagnostics.services.IncidentsWatchRequest
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

Table 5. Available fields in blickfeld.diagnostics.services.IncidentsWatchResponse
Field Type Default Unit

event

Event

-

-

What happened to the incident

incident

data.Incident

-

-

The incident as it is now

Event

What happened to the incident

Table 6. Available values for blickfeld.diagnostics.services.IncidentsWatchResponse.Event enum
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. end is when it stopped causing it.

EVENT_ACKNOWLEDGED

4

The incident was acknowledged

Acknowledge

Acknowledges incidents

Request

Request to acknowledge incidents

Table 7. Available fields in blickfeld.diagnostics.services.IncidentsAcknowledgeRequest
Field Type Default Unit

ids

repeated uint64

-

-

Identifiers of the incidents

comment

optional string

-

-

Comment of the user