Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScrapeJobDAO ¶
type ScrapeJobDAO interface { GetAllMonitorScrapeJobs(ctx context.Context) ([]*model.MonitorScrapeJob, error) CreateMonitorScrapeJob(ctx context.Context, monitorScrapeJob *model.MonitorScrapeJob) error GetMonitorScrapeJobsByPoolId(ctx context.Context, poolId int) ([]*model.MonitorScrapeJob, error) UpdateMonitorScrapeJob(ctx context.Context, monitorScrapeJob *model.MonitorScrapeJob) error DeleteMonitorScrapeJob(ctx context.Context, jobId int) error SearchMonitorScrapeJobsByName(ctx context.Context, name string) ([]*model.MonitorScrapeJob, error) GetMonitorScrapeJobById(ctx context.Context, id int) (*model.MonitorScrapeJob, error) CheckMonitorScrapeJobExists(ctx context.Context, name string) (bool, error) CheckMonitorInstanceExists(ctx context.Context, poolID int) (bool, error) }
func NewScrapeJobDAO ¶
type ScrapePoolDAO ¶
type ScrapePoolDAO interface { GetAllMonitorScrapePool(ctx context.Context) ([]*model.MonitorScrapePool, error) CreateMonitorScrapePool(ctx context.Context, monitorScrapePool *model.MonitorScrapePool) error GetMonitorScrapePoolById(ctx context.Context, id int) (*model.MonitorScrapePool, error) UpdateMonitorScrapePool(ctx context.Context, monitorScrapePool *model.MonitorScrapePool) error DeleteMonitorScrapePool(ctx context.Context, poolId int) error SearchMonitorScrapePoolsByName(ctx context.Context, name string) ([]*model.MonitorScrapePool, error) GetMonitorScrapePoolSupportedAlert(ctx context.Context) ([]*model.MonitorScrapePool, error) GetMonitorScrapePoolSupportedRecord(ctx context.Context) ([]*model.MonitorScrapePool, error) CheckMonitorScrapePoolExists(ctx context.Context, scrapePool *model.MonitorScrapePool) (bool, error) }
func NewScrapePoolDAO ¶
Click to show internal directories.
Click to hide internal directories.