Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildApiDuration ¶
BuildApiDuration 字符串转为api时间
func BuildApiDurationString ¶
BuildApiDurationString 时间转换为字符串
Types ¶
type AlarmItemBo ¶ added in v0.0.16
AlarmItemBo 告警项
type EvaluateReqBo ¶ added in v0.0.16
type EvaluateReqBo struct {
GroupList []*EvaluateStrategyGroup
}
type EvaluateStrategy ¶ added in v0.0.16
type EvaluateStrategy struct { Id uint32 Alert string Expr string For string Labels agent.Labels Annotations agent.Annotations Datasource agent.Datasource }
func (*EvaluateStrategy) ToEvaluateRule ¶ added in v0.0.16
func (e *EvaluateStrategy) ToEvaluateRule() *strategy.EvalRule
ToEvaluateRule 转换为 EvalRule
type EvaluateStrategyGroup ¶ added in v0.0.16
type EvaluateStrategyGroup struct { GroupId uint32 GroupName string StrategyList []*EvaluateStrategy }
Click to show internal directories.
Click to hide internal directories.