iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
iceberg::InitializingReporter Class Reference
Inheritance diagram for iceberg::InitializingReporter:
iceberg::MetricsReporter

Public Member Functions

Status Initialize (const std::unordered_map< std::string, std::string > &props) override
 Initialize the reporter with catalog properties after construction.
 
Status Report (const MetricsReport &) override
 Report a metrics report.
 
bool initialized () const
 
const std::unordered_map< std::string, std::string > & init_props () const
 

Static Public Member Functions

static Result< std::unique_ptr< MetricsReporter > > Make (const std::unordered_map< std::string, std::string > &)
 

Member Function Documentation

◆ Initialize()

Status iceberg::InitializingReporter::Initialize ( const std::unordered_map< std::string, std::string > &  properties)
inlineoverridevirtual

Initialize the reporter with catalog properties after construction.

Called by MetricsReporters::Load() before the first Report() invocation. The default implementation is a no-op. Override to perform property-based setup (e.g., configure endpoints, credentials, sampling rates).

Reimplemented from iceberg::MetricsReporter.

◆ Report()

Status iceberg::InitializingReporter::Report ( const MetricsReport &  report)
inlineoverridevirtual

Report a metrics report.

Implementations should handle the report according to their purpose (e.g., logging, sending to a metrics service, etc.).

Parameters
reportThe metrics report to process.

Implements iceberg::MetricsReporter.


The documentation for this class was generated from the following file: