Skip to main content

Module model

Module model 

Source
Expand description

Unified data models for metrics, logs, and traces.

All backend responses are normalized to these models before output. The models are designed for AI Agent consumption (compact, deterministic, pre-computed statistics).

Re-exports§

pub use error::ErrorCategory;
pub use error::ErrorCode;
pub use error::ErrorDetail;
pub use error::ObzError;
pub use log::LogEntry;
pub use log::Severity;
pub use metric::DataPoint;
pub use metric::MetricInfoDetail;
pub use metric::MetricSeries;
pub use metric::MetricType;
pub use metric::SeriesStats;
pub use response::LabelValuesData;
pub use response::LogSearchData;
pub use response::MetricInfoData;
pub use response::MetricQueryData;
pub use response::QueryMetadata;
pub use response::Response;
pub use response::ResponseStatus;
pub use response::ScalarData;
pub use response::SeriesListData;
pub use response::StringListData;
pub use response::TimeRange;
pub use response::RESULT_TYPE_LABEL_LIST;
pub use response::RESULT_TYPE_LABEL_VALUES;
pub use response::RESULT_TYPE_LOG_ENTRIES;
pub use response::RESULT_TYPE_METRIC_INFO;
pub use response::RESULT_TYPE_METRIC_LIST;
pub use response::RESULT_TYPE_SERIES;
pub use response::RESULT_TYPE_SPANS;
pub use response::RESULT_TYPE_TRACE_DETAIL;
pub use trace::Span;
pub use trace::SpanEvent;
pub use trace::SpanKind;
pub use trace::SpanStatus;
pub use trace::TraceDetail;

Modules§

error
Error types for the obz response envelope.
log
Log data models.
metric
Metric data models.
response
Unified response envelope for all obz commands.
trace
Trace data models.