Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlertHandler ¶
AlertHandler ...
Types ¶
type Alert ¶
type Alert struct { Labels map[string]string `json:"labels"` Annotations map[string]string `json:"annotations"` StartsAt string `json:"startsAt,omitempty"` EndsAt string `json:"EndsAt,omitempty"` }
Alert is a single alert.
type Context ¶
type Context struct { Config *saconfig.EventConfiguration AMQP1Sender *amqp10.AMQPSender }
Context ...
type EventMetricHandler ¶
type EventMetricHandler struct {
// contains filtered or unexported fields
}
EventMetricHandler ....
func NewAppStateEventMetricHandler ¶
func NewAppStateEventMetricHandler(applicationHealth *cacheutil.ApplicationHealthCache) *EventMetricHandler
NewAppStateEventMetricHandler ...
func (*EventMetricHandler) Collect ¶
func (eventMetricHandler *EventMetricHandler) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*EventMetricHandler) Describe ¶
func (eventMetricHandler *EventMetricHandler) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
type Handler ¶
type Handler struct { *Context H func(c *Context, w http.ResponseWriter, r *http.Request) (int, error) }
Handler ...
type HookMessage ¶
type HookMessage struct { Version string `json:"version"` GroupKey string `json:"groupKey"` Status string `json:"status"` Receiver string `json:"receiver"` GroupLabels map[string]string `json:"groupLabels"` CommonLabels map[string]string `json:"commonLabels"` CommonAnnotations map[string]string `json:"commonAnnotations"` ExternalURL string `json:"externalURL"` Alerts []Alert `json:"alerts"` }
HookMessage is the message we receive from Alertmanager
type MetricHandler ¶
type MetricHandler struct {
// contains filtered or unexported fields
}
MetricHandler ...metric handlers
func NewAppStateMetricHandler ¶
func NewAppStateMetricHandler(applicationHealth *cacheutil.ApplicationHealthCache) *MetricHandler
NewAppStateMetricHandler ...
func (*MetricHandler) Collect ¶
func (metricHandler *MetricHandler) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*MetricHandler) Describe ¶
func (metricHandler *MetricHandler) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
Click to show internal directories.
Click to hide internal directories.