ArchAstro.Types.AgentHealth (archastro v0.2.0)

Copy Markdown

Aggregate health profile for an agent, summarizing its current operational status, score, and the full list of setup and health actions.

Summary

Types

t()

@type t() :: %ArchAstro.Types.AgentHealth{
  activity: %{optional(String.t()) => ArchAstro.JSON.t()},
  agent: ArchAstro.Types.Agent.t(),
  checked_at: DateTime.t(),
  checks: [%{optional(String.t()) => ArchAstro.JSON.t()}],
  counts: %{optional(String.t()) => ArchAstro.JSON.t()},
  health_actions: [ArchAstro.Types.AgentHealthAction.t()],
  recent: %{optional(String.t()) => ArchAstro.JSON.t()},
  score: integer(),
  status: String.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()