ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
service_sample Struct Referencefinal

A single heartbeat received from a running domain service. More...

#include <service_sample.hpp>

Collaboration diagram for service_sample:
Collaboration graph

Public Attributes

std::chrono::system_clock::time_point sampled_at
 When this heartbeat was received by the telemetry service.
 
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").
 

Detailed Description

A single heartbeat received from a running domain service.

Each domain service embeds a heartbeat_publisher that fires every 15 seconds. The telemetry service subscribes to the heartbeat subject and persists one row per heartbeat to ores_telemetry_service_samples_tbl.

sampled_at is set by the telemetry service at receipt time, so it reflects when the heartbeat arrived rather than when it was sent.

Member Data Documentation

◆ service_name

std::string service_name

Canonical service name (e.g. "ores.compute.service").

Matches the name passed to ores::service::service::run().

◆ instance_id

std::string instance_id

Per-process UUID, generated once at service startup.

Allows distinguishing multiple instances of the same service. Stored as a string in canonical UUID format.