morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::observe::MetricEvent Struct Reference

One metric observation delivered to the installed MetricSink. More...

#include <observability.hpp>

Public Attributes

Metric metric
 Which metric this observation is for.
double value
 The observed value (a duration, a count, or a gauge level).
std::span< const std::pair< std::string_view, std::string_view > > tags
 Dimensions for this observation (e.g. modelType, actionType, outcome), without baking them into Metric itself. Empty for metrics that carry no dimensions.

Detailed Description

One metric observation delivered to the installed MetricSink.

Definition at line 42 of file observability.hpp.

Member Data Documentation

◆ metric

Metric morph::observe::MetricEvent::metric

Which metric this observation is for.

Definition at line 44 of file observability.hpp.

◆ value

double morph::observe::MetricEvent::value

The observed value (a duration, a count, or a gauge level).

Definition at line 46 of file observability.hpp.

◆ tags

std::span<const std::pair<std::string_view, std::string_view> > morph::observe::MetricEvent::tags

Dimensions for this observation (e.g. modelType, actionType, outcome), without baking them into Metric itself. Empty for metrics that carry no dimensions.

Definition at line 50 of file observability.hpp.


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