DDD.Health.Query (vicander v0.1.1)

Copy Markdown View Source

DDD.Health.check/0 as a DDD.Query, so it can be listed in an MCP server (or anywhere a query is accepted):

use DDD.MCP.Server, queries: [DDD.Health.Query, ...]

Which projections are checked, and the thresholds, come from config :vicander, :health.

Summary

Types

t()

The declared struct, one key per field.

Functions

Run the query from a struct or attrs. Errors carry context: %{query: ...}.

Like call/1, raising on failure.

Build and validate from a map or keyword list.

Types

t()

@type t() :: %DDD.Health.Query{}

The declared struct, one key per field.

Functions

call(input)

Run the query from a struct or attrs. Errors carry context: %{query: ...}.

call!(input)

Like call/1, raising on failure.

new(attrs)

Build and validate from a map or keyword list.