Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScrapeJobService ¶
type ScrapeJobService interface { GetMonitorScrapeJobList(ctx context.Context, search *string) ([]*model.MonitorScrapeJob, error) CreateMonitorScrapeJob(ctx context.Context, monitorScrapeJob *model.MonitorScrapeJob) error UpdateMonitorScrapeJob(ctx context.Context, monitorScrapeJob *model.MonitorScrapeJob) error DeleteMonitorScrapeJob(ctx context.Context, id int) error }
func NewPrometheusScrapeService ¶
func NewPrometheusScrapeService(dao scrapeJobDao.ScrapeJobDAO, cache cache.MonitorCache, l *zap.Logger, userDao userDao.UserDAO) ScrapeJobService
type ScrapePoolService ¶
type ScrapePoolService interface { GetMonitorScrapePoolList(ctx context.Context, search *string) ([]*model.MonitorScrapePool, error) CreateMonitorScrapePool(ctx context.Context, monitorScrapePool *model.MonitorScrapePool) error UpdateMonitorScrapePool(ctx context.Context, monitorScrapePool *model.MonitorScrapePool) error DeleteMonitorScrapePool(ctx context.Context, id int) error }
func NewPrometheusPoolService ¶
func NewPrometheusPoolService(dao scrapeJobDao.ScrapePoolDAO, cache cache.MonitorCache, l *zap.Logger, userDao userDao.UserDAO, jobDao scrapeJobDao.ScrapeJobDAO) ScrapePoolService
Click to show internal directories.
Click to hide internal directories.