Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlarmMsg ¶
type AlarmMsg struct { AppName string // 应用名 AgentID string // 应用ID Type int // 告警类型 API string // api SQL string // sql ThresholdValue float64 // 阀值 AlertValue float64 // 告警值 Channel string // 告警通道/告警工具 Users []string // 告警对象 Time int64 // 告警时间 Interval int64 // 告警间隔,单位秒 IsRecovery bool //是否需要恢复告警 Unit string // 单位 ID int64 // 告警id }
AlarmMsg 告警信息
type Alert ¶
type Alert struct { AlertTime int64 // 告警时间 RecoveryTime int64 // 恢复时间 Count int // 告警次数 // contains filtered or unexported fields }
Alert 告警时间记录
type App ¶
type App struct { Apis *Apis // api告警信息缓存 ExRatio *Alert // 异常率信息缓存 Sqls *Sqls // sql告警信息缓存 Cpus *Cpus // cpuload Memorys *Memorys // memory // contains filtered or unexported fields }
App ...
type Conf ¶
type Conf struct { Channels []string MaxAlarmCount int // 最大告警次数 AlarmInterval int64 // 两次告警时间间隔 DetailAddr string // apm 查询详情地址 EmailURL string // email服务url EmaiCentID string // email centID EmailSubject string // 邮件主题 Mobileurl string // mobile服务url MobileCentID string // mobile centID }
Conf config
type Control ¶
type Control struct { Apps *Apps // 应用缓存 // contains filtered or unexported fields }
Control 告警控制中心
Source Files ¶
Click to show internal directories.
Click to hide internal directories.