service

package
v0.0.0-...-1569ab3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertMetricsService

type AlertMetricsService interface {
	GetAllAlertMetrics() ([]*models.AlertMetrics, error)
	Create(rule *models.AlertMetrics) (*CreateAlertMetricResp, error)
	Delete(metricId string) error
	Page(page *page.ReqPage) (*page.RespPage, error)
	Deletes(ids []string) error
	Update(metric *models.AlertMetrics) (*CreateAlertMetricResp, error)
	VerifyMetric(metric string) (interface{}, error)
}

func NewAlertMetricsService

func NewAlertMetricsService() (AlertMetricsService, error)

type AlertRecordsService

type AlertRecordsService interface {
	CreateRecord(records *models.AlertRecords) error
	Delete(metricId string) error
	Page(page *page.ReqPage) (*page.RespPage, error)
	Deletes(ids []string) error
}

func NewAlertRecordsService

func NewAlertRecordsService() (AlertRecordsService, error)

type AlertRulesService

type AlertRulesService interface {
	GetAllAlertRules() ([]*models.AlertRules, error)
	FindById(id string) (*models.AlertRules, error)
	Create(rule *models.AlertRules) (*CreateAlertRuleResp, error)
	Update(rule *models.AlertRules) (*CreateAlertRuleResp, error)
	Delete(ruleId string) error
	Page(page *page.ReqPage) (*page.RespPage, error)
	Deletes(ids []string) error
	Details(id string) (*models.AlertRules, error)
	UpdateStatus(rule *models.AlertRules) (*CreateAlertRuleResp, error)
}

func NewAlertRulesService

func NewAlertRulesService() (AlertRulesService, error)

type AlertSilencesService

type AlertSilencesService interface {
	GetAllAlertSilences() ([]*models.AlertSilences, error)
	GetAllAlertSilencesMap() (map[string]*models.AlertSilences, error)
	Create(silence *models.AlertSilences) (*CreateAlertSilenceResp, error)
	Deletes(ids []string) error
	Update(user *models.AlertSilences) (*CreateAlertSilenceResp, error)
	Page(page *page.ReqPage) (*page.RespPage, error)
}

func NewAlertSilencesService

func NewAlertSilencesService() (AlertSilencesService, error)

type AlertUsersGroupService

type AlertUsersGroupService interface {
	Create(userGroup *models.AlertUsersGroup) (*CreateAlertUserGroupResp, error)
	Page(page *page.ReqPage) (*page.RespPage, error)
	Update(userGroup *models.AlertUsersGroup) (*CreateAlertUserGroupResp, error)
	Deletes(ids []string) error
	All() ([]*models.AlertUsersGroup, error)
	GetGroupUser(groupIds []string) ([]*models.AlertUsers, error)
}

func NewAlertUsersGroupService

func NewAlertUsersGroupService() (AlertUsersGroupService, error)

type AlertUsersService

type AlertUsersService interface {
	Create(user *models.AlertUsers) (*CreateAlertUserResp, error)
	Deletes(ids []string) error
	Update(user *models.AlertUsers) (*CreateAlertUserResp, error)
	Page(page *page.ReqPage) (*page.RespPage, error)
	All() ([]*models.AlertUsers, error)
}

func NewAlertUsersService

func NewAlertUsersService() (AlertUsersService, error)

type CreateAlertMetricResp

type CreateAlertMetricResp struct {
	ID string `json:"id"`
}

type CreateAlertRuleResp

type CreateAlertRuleResp struct {
	ID string `json:"id"`
}

type CreateAlertSilenceResp

type CreateAlertSilenceResp struct {
	ID string `json:"id"`
}

type CreateAlertUserGroupResp

type CreateAlertUserGroupResp struct {
	ID string `json:"id"`
}

type CreateAlertUserResp

type CreateAlertUserResp struct {
	ID string `json:"id"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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