UsageMetricReport class final

Constructors

UsageMetricReport({required UsageMetric metric, required String unit, required double consumed, required double reserved, required double unknown, int? limit, double? remaining, required UsageMetricReportEnforcement enforcement})
const
UsageMetricReport.fromJson(Map<String, Object?> json)
factory

Properties

consumed → double
Consumption inside the window (counters) or current committed level (gauges).
final
enforcement → UsageMetricReportEnforcement
lease metrics hard-block at the limit; gauge metrics report without blocking (09 §5); reservation metrics admit complete durable vectors or nothing (unikraft 09 §7.1).
final
hashCode → int
The hash code for this object.
no setterinherited
limit → int?
final
metric → UsageMetric
Active platform usage metric (09 §2); reserved service names are excluded.
final
remaining → double?
final
reserved → double
Runtime capacity reserved for admitted-but-not-yet-active work; zero for metrics without reservations.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String
PoC: every row reads the exact QuotaDO ledger.
no setter
unit → String
The metric’s unit: operations, bytes, endUsers, connections, or messages.
final
unknown → double
Outcome-unknown runtime debt that stays charged until reconciled; never folded into consumed.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited