iceberg-cpp
Loading...
Searching...
No Matches
Classes | Typedefs
metrics_types.h File Reference

Serialisable snapshot types shared across scan and commit metrics. More...

#include <chrono>
#include <cstdint>
#include <string>
#include "iceberg/iceberg_export.h"
#include "iceberg/metrics/counter.h"

Go to the source code of this file.

Classes

struct  iceberg::CounterResult
 Serialisable snapshot of a single Counter measurement. More...
 
struct  iceberg::TimerResult
 Serialisable snapshot of a single Timer measurement. More...
 

Typedefs

using iceberg::DurationNs = std::chrono::nanoseconds
 Duration type for metrics reporting (nanosecond precision).
 

Detailed Description

Serialisable snapshot types shared across scan and commit metrics.

CounterResult, TimerResult, and DurationNs are primitive result types used by ScanMetricsResult, CommitMetricsResult, and the JSON serde layer. Defining them here keeps ScanReport and CommitReport headers independent of each other.