Karta.Domains.DNSCheck (Karta v1.0.0)

The last result of one DNS health check of a domain (Karta.Domains.Health): one row per domain and check.

  • check - which check (Karta.Domains.Health.checks/0);
  • status - the worst of its findings: :pass (nothing to do), :warn (works, but needs attention), :fail (a problem receivers act on) or :missing (an optional record that is not published); nil while no run of the check has finished;
  • findings - what the check found, each with a status, a sentence, what to do about it and the record to publish, if any;
  • found - the records it found, as published;
  • checked_at - when the check last finished;
  • failure, failed_at - the last run that could not finish (a DNS lookup failed), when it is newer than checked_at. It changes nothing else: the result before it stays.

Summary

Functions

A finding: its status, the sentence that says what was found, and optionally what to do (fix) and the record to publish ({type, name, value}).

The worst status of the findings: fail, then warn, then missing, then pass.

Types

status()

@type status() :: :pass | :warn | :fail | :missing

t()

@type t() :: %Karta.Domains.DNSCheck{
  __meta__: term(),
  check: term(),
  checked_at: term(),
  domain: term(),
  domain_id: term(),
  failed_at: term(),
  failure: term(),
  findings: term(),
  found: term(),
  id: term(),
  inserted_at: term(),
  status: term(),
  updated_at: term()
}

Functions

finding(status, text, fix \\ nil, record \\ nil)

@spec finding(
  status(),
  String.t(),
  String.t() | nil,
  {String.t(), String.t(), String.t()} | nil
) ::
  struct()

A finding: its status, the sentence that says what was found, and optionally what to do (fix) and the record to publish ({type, name, value}).

worst(findings)

@spec worst([struct()]) :: status()

The worst status of the findings: fail, then warn, then missing, then pass.