SolvedAwareConsumptionMetricSerializer

Serializes SolvedAwareConsumptionMetric with all per-solved aggregates emitted as formatted strings carrying the unit from totalSolvedConsumption. Mirrors ConsumptionMetricSerializer for the solved-aware variant attached to iterateDataset stages.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Class descriptor with the total solved consumption, per-solved aggregates, and optional withRetries fields.

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): SolvedAwareConsumptionMetric

Parses the JSON object back into a SolvedAwareConsumptionMetric, reading n/a aggregates as null. JSON only.

Link copied to clipboard
open override fun serialize(encoder: Encoder, value: SolvedAwareConsumptionMetric)

Encodes value as a JSON object, emitting aggregates as unit-suffixed formatted strings. JSON only.