ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | Static Public Attributes | List of all members
service_heartbeat_message Struct Reference

Fire-and-forget heartbeat published by every domain service. More...

#include <service_samples_protocol.hpp>

Collaboration diagram for service_heartbeat_message:
Collaboration graph

Public Attributes

std::string service_name
 Canonical service name (e.g. "ores.compute.service").
 
std::string instance_id
 Per-process UUID, generated once at service startup.
 
std::string version
 Service version string (e.g. "1.0").
 

Static Public Attributes

static constexpr std::string_view nats_subject
 

Detailed Description

Fire-and-forget heartbeat published by every domain service.

Each service embeds a heartbeat_publisher that fires every 15 seconds and publishes this message to telemetry.v1.services.heartbeat. The telemetry service subscribes, timestamps the receipt, and persists a service_sample row to ores_telemetry_service_samples_tbl.

There is no response type — this is a one-way publish, not a request.

Member Data Documentation

◆ nats_subject

constexpr std::string_view nats_subject
staticconstexpr
Initial value:
=
"telemetry.v1.services.heartbeat"

◆ instance_id

std::string instance_id

Per-process UUID, generated once at service startup.

Allows distinguishing multiple instances of the same service.