pub struct MetricsSnapshot {}Expand description
Point-in-time metric values.
Fields§
§classified: u64Successfully classified requests.
rejected: u64Requests rejected for malformed or ambiguous MCP headers.
unauthenticated: u64Requests refused for a missing, malformed, or unknown API key. Tracked
apart from rejected so credential stuffing is distinguishable from
clients that simply send bad protocol headers.
throttled: u64Requests refused because the authentication-failure budget was spent.
cache_hits: u64Responses served from cache.
cache_misses: u64Cacheable requests not served from cache.
billed: u64Delivered calls accepted by the recorder.
billed_units: u64Sum of delivered units accepted by the recorder.
free: u64Exchanges classified as free.
duplicates: u64Repeated once-only charges suppressed by the recorder.
record_failures: u64Local recorder failures.
deferred: u64Terminal accounting parked because it could not finish without awaiting. Only a durable task store produces these.
unrecognized_responses: u64Bodies that ended without a parseable terminal response.
Implementations§
Source§impl MetricsSnapshot
impl MetricsSnapshot
Sourcepub fn render_prometheus(self) -> String
pub fn render_prometheus(self) -> String
Render this snapshot in the Prometheus text exposition format.
Trait Implementations§
Source§impl Clone for MetricsSnapshot
impl Clone for MetricsSnapshot
Source§fn clone(&self) -> MetricsSnapshot
fn clone(&self) -> MetricsSnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more