CodeNameRaven. Monitor. Assertion
(raven_observer_sdk v0.5.4)
Copy Markdown
A generic assertion framework for monitoring integrations. Allows operators to define configurable health check thresholds.
Summary
Functions
Evaluates a single assertion against the results map.
Evaluates all assertions against the results map, returning a combined status and a list of failure reason messages.
Parses a list of assertion maps (as received from params) into a list of Assertion structs.
Types
@type operator() ::
:eq
| :ne
| :lt
| :lte
| :gt
| :gte
| :contains
| :not_contains
| :matches
| :in
| :present
@type outcome() :: :pass | {:fail, :down | :degraded, String.t()}
Functions
Evaluates a single assertion against the results map.
Evaluates all assertions against the results map, returning a combined status and a list of failure reason messages.
Parses a list of assertion maps (as received from params) into a list of Assertion structs.