scraper

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScrapeManager

type ScrapeManager interface {
	Start(guildId string, config *db.ScrapeConfig)
	Chan() chan ScrapeResult
	Restart(guildId string, config *db.ScrapeConfig) error
	Stop(guildId string, configName string) error
}

func NewScrapeManager

func NewScrapeManager(clientFactory prometheus.ClientFactory, logger logrus.FieldLogger) ScrapeManager

type ScrapeResult

type ScrapeResult struct {
	GuildId          string
	ScrapeConfigName string
	Alerts           prometheus.Alerts
}

Jump to

Keyboard shortcuts

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