Parapet.Evidence (parapet v1.0.0)

Copy Markdown View Source

Public API boundary for Spine schemas. Enforces a boundary that prevents high-volume telemetry from writing directly to the durable Ecto database.

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

Functions

Appends a TimelineEntry to an existing Incident.

Creates a new ActionItem.

Creates a new Incident.

Logs a ToolAudit entry.

Returns the configured Ecto.Repo for the host application. Raises if not configured.

Idempotently marks an ActionItem as resolved. Accepts either the internal primary key ID or a keyword list of criteria.

Executes an operator command as a single transactional seam. Requires incident_changeset, timeline_attrs, and audit_attrs keyword list args.

Functions

append_timeline(incident_id, attrs \\ %{})

(since 1.0.0)

Appends a TimelineEntry to an existing Incident.

create_action_item(attrs \\ %{})

(since 1.0.0)

Creates a new ActionItem.

create_incident(attrs \\ %{})

(since 1.0.0)

Creates a new Incident.

log_tool_audit(attrs \\ %{})

(since 1.0.0)

Logs a ToolAudit entry.

repo()

(since 1.0.0)

Returns the configured Ecto.Repo for the host application. Raises if not configured.

resolve_action_item(criteria)

(since 1.0.0)

Idempotently marks an ActionItem as resolved. Accepts either the internal primary key ID or a keyword list of criteria.

run_operator_command(opts)

(since 1.0.0)

Executes an operator command as a single transactional seam. Requires incident_changeset, timeline_attrs, and audit_attrs keyword list args.