services

package
v1.4.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIncident

func CreateIncident(teamID string, content *map[string]interface{}, params ...*map[string]string) error

func CreateIncidentFromFinding added in v1.4.0

func CreateIncidentFromFinding(f *core.AIFinding, r core.AgentResult, source, service string) error

CreateIncidentFromFinding maps an AI SRE finding into the standard content map and delegates to CreateIncident so all existing channels (Slack, Telegram, MS Teams, Lark, Email, Viber) and the on-call workflow trigger with no per-channel changes.

Source identifies the agent + signal source (e.g. "agent:elasticsearch:prod-app"). Service is the operator-facing service name extracted from the log pattern; "_unknown" when no service_pattern matched.

All keys added here are stable and additive — existing template files keep working unchanged. Operators who want to surface AI-specific detail can reference {{ .Summary }}, {{ .Suggestions }}, {{ .Confidence }}, {{ .PatternID }}, {{ .Verdict }}.

func SetStorage added in v1.3.9

func SetStorage(p storage.Provider)

SetStorage installs the storage provider used to persist incidents and record acks. Called once from main after config load.

func Storage added in v1.3.9

func Storage() storage.Provider

Storage returns the currently installed storage provider, or nil when the process is running without persistence (older tests).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL