mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-21 00:24:07 +08:00
30 lines
547 B
Go
30 lines
547 B
Go
package modules
|
|
|
|
import "yunion.io/x/onecloud/pkg/mcclient/modulebase"
|
|
|
|
var (
|
|
CommonAlertManager *SCommonAlertManager
|
|
)
|
|
|
|
type SCommonAlertManager struct {
|
|
*modulebase.ResourceManager
|
|
}
|
|
|
|
func init() {
|
|
CommonAlertManager = NewCommonAlertManager()
|
|
for _, m := range []modulebase.IBaseManager{
|
|
CommonAlertManager,
|
|
} {
|
|
registerCompute(m)
|
|
}
|
|
}
|
|
|
|
func NewCommonAlertManager() *SCommonAlertManager {
|
|
man := NewMonitorV2Manager("commonalert", "commonalerts",
|
|
[]string{},
|
|
[]string{})
|
|
return &SCommonAlertManager{
|
|
ResourceManager: &man,
|
|
}
|
|
}
|