Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PrefixCountPS is the prefix of call counter metric per time unit metric name PrefixCountPS = "timer.count_ps." // PrefixMean90 is the prefix ofprefix of mean response time metric name PrefixMean90 = "timer.mean_90." // PrefixUpper90 is the prefix of upper 90 response time metric name PrefixUpper90 = "timer.upper_90." // PrefixCounter is the prefix of counter metric name PrefixCounter = "counter." // PrefixGauge is the prefix of gauge metric name PrefixGauge = "gauge." )
Variables ¶
View Source
var ( // Magnitudes contains six magnitude unit Magnitudes = []string{"", "K", "M", "G", "T", "P"} // RuleLevels contains three rule level RuleLevels = []string{"低", "中", "高"} )
Functions ¶
Types ¶
type Event ¶
type Event struct { ID string `json:"id"` Comment string `json:"comment"` Metric *models.Metric `json:"metric"` Rule *models.Rule `json:"rule"` Project *models.Project `json:"project"` Team *models.Team `json:"team"` }
Event is the webhook payload
Click to show internal directories.
Click to hide internal directories.