Parapet.Escalation.Policy behaviour (parapet v1.0.0)

Copy Markdown View Source

Behaviour for incident escalation adapters.

Stable

This module is stable as of v1.0.0. Its public API will not change without a major-version bump and a full deprecation cycle. See Stability & Deprecation Policy for details.

Summary

Callbacks

Escalates the given incident according to this adapter's escalation logic.

Callbacks

escalate(incident, opts)

(since 1.0.0)
@callback escalate(incident :: Parapet.Spine.Incident.t(), opts :: keyword()) ::
  {:ok, term()} | {:error, term()}

Escalates the given incident according to this adapter's escalation logic.