Documentation ¶
Index ¶
Constants ¶
View Source
const ( AlertListTableColumnName string = "alertListTableColumnName" AlertListTableColumnAlertName string = "alertListTableColumnAlertName" AlertListTableColumnTriggerCount string = "alertListTableColumnTriggerCount" AlertListTableColumnAlertLevel string = "alertListTableColumnAlertLevel" AlertListTableColumnAlertState string = "alertListTableColumnAlertState" AlertListTableColumnAlertSource string = "alertListTableColumnAlertSource" AlertListTableColumnLastTriggerTime string = "alertListTableColumnLastTriggerTime" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TriggerCount ¶
type TriggerCount struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, metric metricpb.MetricServiceServer, tk string, events []*pb.AlertEventItem) *TriggerCount
func (*TriggerCount) Fetch ¶
func (f *TriggerCount) Fetch() error
func (*TriggerCount) Get ¶
func (f *TriggerCount) Get(ctx context.Context, item *pb.AlertEventItem) float64
Click to show internal directories.
Click to hide internal directories.