pub struct Stale {
pub since: String,
pub class: Option<String>,
}Expand description
Why an entry is being served through a failure, and since when.
Fields§
§since: StringWhen the producer first failed to refresh this entry, RFC3339.
Distinct from fetched_at, which is when the served reading was
obtained. The gap between them is how long the producer has been unable
to look, which is the quantity a staleness policy actually wants: a
reading can be minutes old with the producer perfectly healthy, or
seconds old with the producer failing since just after it was taken.
class: Option<String>The failure class, using the same vocabulary as error_class on a
degraded entry.
Carried so a consumer can tell a flapping upstream from a credential that has started refusing, without branching on prose. Optional because a producer may preserve a reading for a reason it cannot classify.