ExternalService.Insights.Report (ExternalService v3.1.0)

Copy Markdown View Source

What ExternalService.Insights has observed for one service.

Counters are cumulative since attach/1. :findings carries the same shape as the configuration checks: a :check naming the kind, and a :message saying what to do about it.

Summary

Types

t()

@type t() :: %ExternalService.Insights.Report{
  attempts: non_neg_integer(),
  calls: non_neg_integer(),
  consecutive_failures: non_neg_integer(),
  degraded: non_neg_integer(),
  failed: non_neg_integer(),
  findings: [%{check: atom(), message: String.t()}],
  mean_call: non_neg_integer(),
  rejected: non_neg_integer(),
  service: ExternalService.service(),
  succeeded: non_neg_integer(),
  worst_call: non_neg_integer(),
  worst_consecutive_failures: non_neg_integer()
}