Scoria.SRE (scoria v0.1.3)

Copy Markdown View Source

Operational governance boundary for Scoria-owned budget, alert, incident, and audit evidence.

Use this context when a Phoenix host needs durable evidence that can appear in reviewer traces: budget reservations, breaker trips, alert events, incidents, and audit outbox events. Scoria records the operational facts and keeps them available to the reviewer dashboard; the host app still owns severity meaning, escalation policy, pager or ticket routing, tenant membership, and business remediation.

SRE records are support material for the adopter verification suite rather than a replacement for the host's incident process. Read guides/ownership-boundary.md for the governance split, then use guides/reviewer-verification.md to prove the default runtime and reviewer trace before wiring optional sinks or on-call workflows.

Summary

Types

attrs()

@type attrs() :: map()

Functions

alert_sink()

append_incident_event(incident, attrs)

audit_sink()

create_audit_outbox_event(envelope)

create_budget_policy(attrs)

delete_budget_policy(policy)

deliver_notification(target, envelope)

emit_audit_outbox_telemetry(audit_outbox_event)

get_alert_event!(id)

get_budget_policy!(id)

get_incident!(id)

get_incident_event!(id)

insert_audit_outbox_event(repo, envelope)

list_alert_events(incident_id)

list_budget_policies()

list_incident_events(incident_id)

open_incident(attrs)

reconcile_usage(reservation, attrs)

record_alert_event(envelope)

record_breaker_trip(attrs)

release_usage(reservation, attrs \\ %{})

remote_invocation_evidence(run_id)

reserve_usage(attrs)

update_budget_policy(policy, attrs)