runbook

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(
	ctx context.Context,
	qtx *schema.Queries,
	llmClient llm.Client,
	serviceName, alertName string,
	botID string,
) ([]slack.Block, error)

func Post

func Post(ctx context.Context, slackIntegration slack_integration.Integration, channelID, slackTS string, blocks ...slack.Block) error

func Update

func Update(
	ctx context.Context,
	qtx *schema.Queries,
	llmClient llm.Client,
	serviceName, alertName string,
	forceRecreate bool,
) (string, error)

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(bot *internal.Bot, slackIntegration slack_integration.Integration, llmClient llm.Client) *Handler

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, channelID string, slackTS string, msg dto.MessageAttrs) error

func (*Handler) Name

func (h *Handler) Name() string

Jump to

Keyboard shortcuts

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