checks

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: GPL-3.0 Imports: 21 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.

func (*ChecksCommand) RunChecks

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

RunChecks runs the health checks for a given alert.

Jump to

Keyboard shortcuts

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