 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
	// Label value pairs for purpose of aggregation, matching, and disposition
	// dispatching. This must minimally include an "alertname" label.
	Labels labels.Labels `json:"labels"`
	// Extra key/value information which does not define alert identity.
	Annotations labels.Labels `json:"annotations"`
	// The known time range for this alert. Both ends are optional.
	StartsAt     time.Time `json:"startsAt,omitempty"`
	EndsAt       time.Time `json:"endsAt,omitempty"`
	GeneratorURL string    `json:"generatorURL,omitempty"`
}
    Alert is a generic representation of an alert in the Prometheus eco-system.
func (*Alert) ResolvedAt ¶
ResolvedAt returns true off the activity interval ended before the given timestamp.
type Notifier ¶ added in v1.0.0
type Notifier struct {
	// contains filtered or unexported fields
}
    Notifier is responsible for dispatching alert notifications to an alert manager service.
func (*Notifier) Alertmanagers ¶ added in v1.4.0
Alertmanagers returns a slice of Alertmanager URLs.
func (*Notifier) ApplyConfig ¶ added in v1.0.0
ApplyConfig updates the status state as the new config requires.
func (*Notifier) Run ¶ added in v1.0.0
func (n *Notifier) Run()
Run dispatches notifications continuously.
type Options ¶
type Options struct {
	QueueCapacity  int
	ExternalLabels model.LabelSet
	RelabelConfigs []*config.RelabelConfig
	// Used for sending HTTP requests to the Alertmanager.
	Do func(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error)
	Registerer prometheus.Registerer
}
    Options are the configurable parameters of a Handler.
 Click to show internal directories. 
   Click to hide internal directories.