checks

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultCheckSchedule defines when checks should run (daily at 7am UTC).
	DefaultCheckSchedule = "0 7 * * *"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChecksCommand

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

ChecksCommand handles the /checks command.

func NewChecksCommand

func NewChecksCommand(log *logrus.Logger, bot common.BotContext) *ChecksCommand

NewChecksCommand creates a new checks command.

func (*ChecksCommand) Handle

Handle handles the /checks command.

func (*ChecksCommand) Name

func (c *ChecksCommand) Name() string

Name returns the name of the command.

func (*ChecksCommand) Queue

func (c *ChecksCommand) Queue() *queue.AlertQueue

Queue returns the queue instance.

func (*ChecksCommand) Register

func (c *ChecksCommand) Register(session *discordgo.Session) error

Register registers the /checks command with the given discord session (globally).

func (*ChecksCommand) RegisterWithGuild added in v0.0.36

func (c *ChecksCommand) RegisterWithGuild(session *discordgo.Session, guildID string) error

RegisterWithGuild registers the /checks command with a specific guild.

func (*ChecksCommand) RunChecks

func (c *ChecksCommand) RunChecks(ctx context.Context, alert *store.MonitorAlert) (bool, error)

RunChecks runs the health checks for a given alert.

func (*ChecksCommand) UpdateChoices added in v0.0.26

func (c *ChecksCommand) UpdateChoices(session *discordgo.Session) error

UpdateChoices updates the command choices by editing the existing command with fresh network and client data.

Jump to

Keyboard shortcuts

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