Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MicroAlertAPI ¶
type MicroAlertAPI interface { GetMicroServiceFilterTags() map[string]bool // micro alert apis QueryAlertRule(r *http.Request, scope, scopeId string) (*adapt.AlertTypeRuleResp, error) QueryAlert(r *http.Request, scope, scopeId string, pageNum, pageSize uint64) ([]*adapt.Alert, error) GetAlert(lang i18n.LanguageCodes, id uint64) (*adapt.Alert, error) CountAlert(scope, scopeID string) (int, error) GetAlertDetail(r *http.Request, id uint64) (*adapt.Alert, error) CheckAlert(alert *adapt.Alert) interface{} CreateAlert(alert *adapt.Alert) (alertID uint64, err error) UpdateAlert(alertID uint64, alert *adapt.Alert) (err error) UpdateAlertEnable(id uint64, enable bool) (err error) DeleteAlert(id uint64) (err error) // micro custom alert apis CustomizeMetrics(lang i18n.LanguageCodes, scope, scopeID string, names []string) (*adapt.CustomizeMetrics, error) NotifyTargetsKeys(lang i18n.LanguageCodes, orgId string) []*adapt.DisplayKey CustomizeAlerts(lang i18n.LanguageCodes, scope, scopeID string, pageNo, pageSize int) ([]*adapt.CustomizeAlertOverview, int, error) CustomizeAlert(id uint64) (*adapt.CustomizeAlertDetail, error) CustomizeAlertDetail(id uint64) (*adapt.CustomizeAlertDetail, error) CheckCustomizeAlert(alert *adapt.CustomizeAlertDetail) error CreateCustomizeAlert(alertDetail *adapt.CustomizeAlertDetail) (alertID uint64, err error) UpdateCustomizeAlert(alertDetail *adapt.CustomizeAlertDetail) (err error) UpdateCustomizeAlertEnable(id uint64, enable bool) (err error) DeleteCustomizeAlert(id uint64) (err error) }
type QueryOrgAlertRecordReq ¶
type QueryOrgAlertRecordReq struct { AlertGroup []string `query:"alertGroup"` AlertState []string `query:"alertState"` AlertType []string `query:"alertType"` HandleState []string `query:"handleState"` HandlerID []string `query:"handlerId"` PageNo uint `query:"pageNo" validate:"gte=0"` PageSize uint `query:"pageSize" validate:"gte=0,lte=100"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.