HostKit.Monitor.Check (host_kit v0.1.0-beta.7)

Copy Markdown View Source

Declarative monitoring check metadata.

Summary

Types

t()

@type t() :: %HostKit.Monitor.Check{
  alerts: [atom() | String.t() | keyword() | map()],
  clean: boolean() | nil,
  exec:
    HostKit.CommandLine.t() | String.t() | {term(), [term()]} | [term()] | nil,
  expect: keyword(),
  group: atom() | String.t() | nil,
  interval: String.t() | nil,
  meta: map(),
  name: atom() | String.t(),
  port: non_neg_integer() | nil,
  resource_id: term(),
  severity: atom(),
  target: String.t() | nil,
  task: String.t() | nil,
  type: atom()
}

Functions

new(attrs)

@spec new(map() | keyword()) :: t()