Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Desc string `msg:"desc"` Duration int32 `msg:"d"` // 总耗时 AccessCount int `msg:"ac"` // 访问总数 AccessErrCount int `msg:"aec"` // 访问错误数 }
API API信息
type Alert ¶
type Alert struct { Channel string `json:"-"` // 通知工具 email/mobile Type string `json:"Type"` // 告警类型 告警/告警恢复 Detail string `json:"Detail"` // 告警概述 appName/告警类型/数据+单位 ID string `json:"Id"` // 告警ID Addrs []string `json:"-"` // 手机号码或者邮箱地址 DetailAddr string `json:"DetailAddr"` // 详情地址 http://apmtest.tf56.lo/ui/alerts/history?id=1558578065702692000 Time string `json:"Timestamp"` }
Alert 告警具体详情
type Data ¶
type Data struct { Type int `msg:"type"` AppName string `msg:"name"` AgentID string `msg:"id"` Time int64 `msg:"time"` Payload []byte `msg:"payload"` }
Data 告警存储数据
type Runtime ¶
type Runtime struct { JVMCpuload float64 `msg:"jc"` // jvm cpuload SystemCpuload float64 `msg:"sc"` // system cpuload JVMHeap int64 `msg:"jh"` // jvm heap Count int `msg:"c"` // 计数包的个数 }
Runtime ...
type SQL ¶
type SQL struct { ID int32 `msg:"desc"` Count int `msg:"count"` Errcount int `msg:"errcount"` Duration int32 `msg:"duration"` }
SQL sql计算
Click to show internal directories.
Click to hide internal directories.