20#ifndef ORES_COMPUTE_DOMAIN_NODE_SAMPLE_HPP
21#define ORES_COMPUTE_DOMAIN_NODE_SAMPLE_HPP
25#include <boost/uuid/uuid.hpp>
26#include "ores.utility/uuid/tenant_id.hpp"
28namespace ores::compute::domain {
50 int tasks_completed{0};
57 int tasks_since_last{0};
A single point-in-time sample of per-node execution metrics.
Definition node_sample.hpp:36
std::chrono::system_clock::time_point sampled_at
When this sample was taken (hypertable partition key).
Definition node_sample.hpp:38
std::int64_t max_task_duration_ms
Peak task duration for tasks_since_last (milliseconds).
Definition node_sample.hpp:63
std::int64_t avg_task_duration_ms
Average task duration for tasks_since_last (milliseconds).
Definition node_sample.hpp:60
int seconds_since_hb
Seconds since the last heartbeat was received for this host.
Definition node_sample.hpp:72
boost::uuids::uuid host_id
FK to ores_compute_hosts_tbl.
Definition node_sample.hpp:44
std::int64_t output_bytes_uploaded
Total output bytes uploaded for tasks_since_last.
Definition node_sample.hpp:69
utility::uuid::tenant_id tenant_id
Tenant this node belongs to.
Definition node_sample.hpp:41
std::int64_t input_bytes_fetched
Total input bytes fetched for tasks_since_last.
Definition node_sample.hpp:66
A strongly-typed wrapper around a UUID representing a tenant identifier.
Definition tenant_id.hpp:66
static tenant_id system()
Creates a tenant_id representing the system tenant.
Definition tenant_id.cpp:41