Repeat Snapshots JSON
SUSE Observability
Last updated
SUSE Observability
Last updated
This page describes the exact JSON messages that can be sent for the health synchronization Repeat Snapshots consistency model.
Health can be sent to the SUSE Observability Receiver API using the "health"
property of the .
Every health Repeat Snapshots data payload has the following details:
start_snapshot - Optional. A start of a snapshot needs to be processed before processing check_states
. This enables SUSE Observability to diff a stream snapshot with the previously received one and delete check states that are no longer present in the snapshot. It carries the following fields as snapshot metadata:
repeat_interval_s - Time in seconds. The frequency with which the external source will send health data to SUSE Observability. Max allowed value is 1800 (30 minutes).
expiry_interval_s - Time in seconds. The time to wait after the last update before an external check is deleted by SUSE Observability. Required when using sub streams.
stop_snapshot - Optional. An end of a snapshot will be processed after processing thecheck_states
.
stream - Object providing identification regarding which snapshots and check_states
belong together. It has the following fields:
sub_stream_id - Optional. Identifier for a subset of the stream health data. When the stream data is distributed and reported by several Agents, this allows snapshot lifecycles per sub_stream_id
check_states - A list of check states. Each check state can have the following fields:
checkStateId - Identifier for the check state in the external system
message - Optional. Message to display in SUSE Observability UI. Data will be interpreted as markdown allowing to have links to the external system check that generated the external check state.
health - One of the following SUSE Observability Health state values: Clear
, Deviating
, Critical
.
topologyElementIdentifier - Used to bind the check state to a SUSE Observability topology element.
name - Name of the external check state.
Health can be sent in one JSON message via HTTP POST. In the example below, a snapshot containing two check states is sent to SUSE Observability from a single external monitoring system.
urn - Data source and stream ID encoded as a SUSE Observability that matches the following convention: urn:health:<sourceId>:<streamId>
where <sourceId>
is the name if the external data source and <streamId>
is a unique identifier for the health data stream.