20#ifndef ORES_COMPUTE_DOMAIN_GRID_SAMPLE_HPP
21#define ORES_COMPUTE_DOMAIN_GRID_SAMPLE_HPP
24#include "ores.utility/uuid/tenant_id.hpp"
26namespace ores::compute::domain {
95 int outcomes_success{0};
96 int outcomes_client_error{0};
97 int outcomes_no_reply{0};
A single point-in-time snapshot of server-side compute grid metrics.
Definition grid_sample.hpp:35
int active_batches
Batches that have at least one InProgress result.
Definition grid_sample.hpp:88
std::chrono::system_clock::time_point sampled_at
When this sample was taken (hypertable partition key).
Definition grid_sample.hpp:37
int results_unsent
Results in state 2 (Unsent).
Definition grid_sample.hpp:67
int results_inactive
Results in state 1 (Inactive).
Definition grid_sample.hpp:64
int results_in_progress
Results in state 4 (InProgress).
Definition grid_sample.hpp:70
int results_done
Results in state 5 (Done).
Definition grid_sample.hpp:73
int online_hosts
Hosts whose last heartbeat is within the 5-minute reaper window.
Definition grid_sample.hpp:52
int total_workunits
Total workunits.
Definition grid_sample.hpp:80
int total_hosts
Total registered hosts (all versions).
Definition grid_sample.hpp:47
int total_batches
Total batches.
Definition grid_sample.hpp:83
utility::uuid::tenant_id tenant_id
Tenant this sample belongs to.
Definition grid_sample.hpp:40
int idle_hosts
Online hosts that have no InProgress result assigned to them.
Definition grid_sample.hpp:57
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