Documentation ¶
Index ¶
- type Action
- type AlarmStatus
- func (s AlarmStatus) ApiAlarmStatus() api.AlarmStatus
- func (s AlarmStatus) CH() string
- func (s AlarmStatus) EN() string
- func (s AlarmStatus) IsFiring() bool
- func (s AlarmStatus) IsResolved() bool
- func (s AlarmStatus) IsUnknown() bool
- func (s AlarmStatus) Key() string
- func (s AlarmStatus) String() string
- func (s AlarmStatus) Value() int32
- type Category
- type ChartType
- type Domain
- type DomainList
- type Gender
- type IsSendRecover
- type Module
- type ModuleList
- type NotifyApp
- type NotifyTemplateType
- type NotifyType
- type Op
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlarmStatus ¶
type AlarmStatus int32
const ( // AlarmStatusUnknown 未知 AlarmStatusUnknown AlarmStatus = iota // AlarmStatusAlarm 告警 AlarmStatusAlarm // AlarmStatusResolved 已恢复 AlarmStatusResolved // AlarmStatusIgnored 已忽略 AlarmStatusIgnored )
func (AlarmStatus) ApiAlarmStatus ¶
func (s AlarmStatus) ApiAlarmStatus() api.AlarmStatus
ApiAlarmStatus 转换为api.AlarmStatus
type Category ¶
type Category int32
const ( // CategoryUnknown 未知 CategoryUnknown Category = iota // CategoryPromLabel prometheus 标签 CategoryPromLabel // CategoryPromAnnotation prometheus 描述信息 CategoryPromAnnotation // CategoryPromStrategy prometheus 规则 CategoryPromStrategy // CategoryPromStrategyGroup prometheus 规则组 CategoryPromStrategyGroup // CategoryAlarmLevel 告警级别 CategoryAlarmLevel // CategoryAlarmStatus 告警状态 CategoryAlarmStatus // CategoryNotifyType 通知类型 CategoryNotifyType //CategoryAlarmPage 告警页面 CategoryAlarmPage )
type DomainList ¶
type DomainList []Domain
func (DomainList) Len ¶
func (d DomainList) Len() int
func (DomainList) Less ¶
func (d DomainList) Less(i, j int) bool
func (DomainList) Swap ¶
func (d DomainList) Swap(i, j int)
type IsSendRecover ¶
type IsSendRecover uint8
const ( // IsSendRecoverUnknown 未知 IsSendRecoverUnknown IsSendRecover = iota // IsSendRecoverYes 发送恢复通知 IsSendRecoverYes // IsSendRecoverNo 不发送恢复通知 IsSendRecoverNo )
func NewIsSendRecover ¶
func NewIsSendRecover(value bool) IsSendRecover
NewIsSendRecover 转换为IsSendRecover
type Module ¶
type Module int32
const ( // ModuleOther 其他模块 ModuleOther Module = iota // ModuleApi 接口模块 ModuleApi // ModuleMenu 菜单模块 ModuleMenu // ModuleRole 角色模块 ModuleRole // ModuleUser 用户模块 ModuleUser // ModuleDict 字典模块 ModuleDict // ModuleRealtimeAlarm 实时告警模块 ModuleRealtimeAlarm // ModuleAlarmHistory 告警历史模块 ModuleAlarmHistory // ModuleStrategyGroup 策略组模块 ModuleStrategyGroup // ModuleStrategy 策略模块 ModuleStrategy // ModuleDatasource 数据源模块 ModuleDatasource // ModuleAlarmPage 告警页面模块 ModuleAlarmPage // ModuleAlarmNotifyGroup 告警通知组模块 ModuleAlarmNotifyGroup // ModuleAlarmNotifyHook 告警通知机器人模块 ModuleAlarmNotifyHook // ModuleDashboardChart 仪表盘图表模块 ModuleDashboardChart // ModuleDashboard 仪表盘模块 ModuleDashboard )
type ModuleList ¶
type ModuleList []Module
func (ModuleList) Len ¶
func (m ModuleList) Len() int
func (ModuleList) Less ¶
func (m ModuleList) Less(i, j int) bool
func (ModuleList) Swap ¶
func (m ModuleList) Swap(i, j int)
type NotifyTemplateType ¶
type NotifyTemplateType int32
const ( // NotifyTemplateTypeCustom 自定义通知模板 NotifyTemplateTypeCustom NotifyTemplateType = iota // NotifyTemplateTypeEmail 邮件通知模板 NotifyTemplateTypeEmail // NotifyTemplateTypeSms 短信通知模板 NotifyTemplateTypeSms // NotifyTemplateTypeWeChatWork 企业微信通知模板 NotifyTemplateTypeWeChatWork // NotifyTemplateTypeFeiShu 飞书通知模板 NotifyTemplateTypeFeiShu // NotifyTemplateTypeDingDing 钉钉通知模板 NotifyTemplateTypeDingDing )
type NotifyType ¶
type NotifyType int32
const ( // NotifyTypeUnknown 未知 NotifyTypeUnknown NotifyType = iota // NotifyTypeEmail 邮件 NotifyTypeEmail NotifyType = 1 << iota // NotifyTypeSms 短信 NotifyTypeSms NotifyType = 1 << iota // NotifyTypePhone 电话 NotifyTypePhone NotifyType = 1 << iota )
func (NotifyType) ApiNotifyType ¶
func (a NotifyType) ApiNotifyType() api.NotifyType
ApiNotifyType API通知类型
Click to show internal directories.
Click to hide internal directories.