Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event is the event structure
type EventName ¶
type EventName uint
EventName is the name of event
const ( // IncTotalAlert will show the total incoming alerts IncTotalAlert EventName = iota // IncTelegramSendSuccess will show the total success telegram sends IncTelegramSendSuccess // IncTelegramSendFailure will show the total failure telegram sends IncTelegramSendFailure // IncSquadcastSendSuccess will show the total success squadcast sends IncSquadcastSendSuccess // IncSquadcastSendFailure will show the total failure squadcast sends IncSquadcastSendFailure // IncSlackSendSuccess will show the total success squadcast sends IncSlackSendSuccess // IncSlackSendFailure will show the total failure squadcast sends IncSlackSendFailure // IncCustomSendSuccess will show the total success squadcast sends IncCustomSendSuccess // IncCustomSendFailure will show the total failure squadcast sends IncCustomSendFailure // SetActiveJobsInAlertPool will show the total active jobs in alert pool SetActiveJobsInAlertPool // SetAlertPoolCapacity will show the total capacity of alert pool SetAlertPoolCapacity )
type Monitor ¶
type Monitor interface {
Record(events []Event)
}
Monitor is the monitoring interface
func NewPrometheusMonitor ¶
func NewPrometheusMonitor() Monitor
NewPrometheusMonitor creates a new prometheus monitor
type PrometheusMonitor ¶
type PrometheusMonitor struct { }
PrometheusMonitor is the prometheus monitor
func (PrometheusMonitor) Record ¶
func (i PrometheusMonitor) Record(events []Event)
Record records the events
Click to show internal directories.
Click to hide internal directories.