Documentation ¶
Index ¶
- type SSubscriptionManager
- func (self *SSubscriptionManager) AddSubscription()
- func (self *SSubscriptionManager) DeleteAlert(alert *models.SCommonAlert)
- func (self *SSubscriptionManager) Eval(details monitor.CommonAlertMetricDetails, alert models.SCommonAlert, ...) (bool, *monitor.EvalMatch, error)
- func (self *SSubscriptionManager) GetSystemAlerts() []*models.SCommonAlert
- func (self *SSubscriptionManager) LoadSystemAlerts() error
- func (self *SSubscriptionManager) PerformWrite(ctx context.Context, userCred mcclient.TokenCredential, ...)
- func (self *SSubscriptionManager) SetAlert(alert *models.SCommonAlert)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSubscriptionManager ¶
type SSubscriptionManager struct { db.SVirtualResourceBaseManager // contains filtered or unexported fields }
var (
SubscriptionManager *SSubscriptionManager
)
func (*SSubscriptionManager) AddSubscription ¶
func (self *SSubscriptionManager) AddSubscription()
func (*SSubscriptionManager) DeleteAlert ¶
func (self *SSubscriptionManager) DeleteAlert(alert *models.SCommonAlert)
func (*SSubscriptionManager) Eval ¶
func (self *SSubscriptionManager) Eval(details monitor.CommonAlertMetricDetails, alert models.SCommonAlert, points []sub.Point) (bool, *monitor.EvalMatch, error)
func (*SSubscriptionManager) GetSystemAlerts ¶
func (self *SSubscriptionManager) GetSystemAlerts() []*models.SCommonAlert
func (*SSubscriptionManager) LoadSystemAlerts ¶
func (self *SSubscriptionManager) LoadSystemAlerts() error
func (*SSubscriptionManager) PerformWrite ¶
func (self *SSubscriptionManager) PerformWrite(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data []sub.Point)
func (*SSubscriptionManager) SetAlert ¶
func (self *SSubscriptionManager) SetAlert(alert *models.SCommonAlert)
Click to show internal directories.
Click to hide internal directories.