Documentation
¶
Index ¶
Constants ¶
View Source
const ( // NotificationSuccess means the last notification attempt succeeded. NotificationSuccess float64 = 0 // NotificationError means the last notification attempt failed or is still pending. NotificationError float64 = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry holds Prometheus metrics for the app.
func NewRegistry ¶
func NewRegistry() *Registry
NewRegistry builds a new Prometheus metrics registry.
func (*Registry) IncCheckInReceived ¶
IncCheckInReceived increments the received check-in counter for a monitor.
func (*Registry) SetMonitorSnapshot ¶
SetMonitorSnapshot updates all monitor gauges from the current monitor snapshot.
func (*Registry) SetNotificationStatus ¶
SetNotificationStatus updates per-target notification delivery status gauges.
Click to show internal directories.
Click to hide internal directories.