NetworkEvent
A single observed network request outcome, for telemetry/analytics. The Kotlin counterpart of Novalingo's NetworkTelemetryEvent, kept transport-agnostic so any analytics backend can consume it.
Constructors
Properties
wall-clock duration of the attempt(s).
a normalized, low-cardinality endpoint identifier (e.g. videos/:id).
whether this event is the last one for its logical request — true for a success, or for a failure the RetryPolicy declined to retry; false for a failed attempt that's about to be retried. Lets a metrics bridge emit exactly one request-duration observation per logical request (filter on isFinalAttempt) while still using every event, including non-final ones, for a per-attempt/retry-count counter.
whether the failure is considered transient.
the final HTTP status, or null if the request never completed.
Functions
Preserves the copy method and copy$default bridge generated by the pre-0.4 data class.
Copies an event while explicitly changing whether it is the final attempt.