handlers

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAlerts

func GetAlerts(ctx context.Context, repo db.Repo, clientFactory prometheus.ClientFactory, guildId string, configName string) (prometheus.Alerts, error)

func GetInhibitions

func GetInhibitions(ctx context.Context, configName string, guildId string, repo db.Repo) ([]string, error)

func GetScrapeConfigs added in v0.2.1

func GetScrapeConfigs(ctx context.Context, repo db.Repo, guildId string) ([]db.ScrapeConfig, error)

func InhibitAlert

func InhibitAlert(ctx context.Context, configName string, guildId string, alertName string, repo db.Repo) error

func RemoveScrapeConfig

func RemoveScrapeConfig(ctx context.Context, repo db.Repo, scrapeManager scraper.ScrapeManager, guildId string, configName string) error

func UninhibitAlert

func UninhibitAlert(ctx context.Context, configName string, guildId string, alertName string, repo db.Repo) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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