Pristine.Core.ResultClassification (Pristine v0.3.0)

Copy Markdown View Source

Internal normalized classification for a single request outcome.

Summary

Types

breaker_outcome()

@type breaker_outcome() :: :success | :failure | :ignore

t()

@type t() :: %Pristine.Core.ResultClassification{
  breaker_outcome: breaker_outcome(),
  limiter_backoff_ms: non_neg_integer() | nil,
  retry?: boolean(),
  retry_after_ms: non_neg_integer() | nil,
  telemetry: map()
}

Functions

normalize(classification)

@spec normalize(t() | map() | keyword() | nil) :: t()