Documentation
¶
Overview ¶
Package v061 package implements support for interacting with Alertmanager 0.6.1 Collected data will be mapped to unsee internal schema defined the unsee/models package This file defines Alertmanager alerts mapping
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertMapper ¶
type AlertMapper struct {
mapper.AlertMapper
}
AlertMapper implements Alertmanager API schema
func (AlertMapper) GetAlerts ¶
func (m AlertMapper) GetAlerts(uri string, timeout time.Duration) ([]models.AlertGroup, error)
GetAlerts will make a request to Alertmanager API and parse the response It will only return alerts or error (if any)
func (AlertMapper) IsSupported ¶
func (m AlertMapper) IsSupported(version string) bool
IsSupported returns true if given version string is supported
Click to show internal directories.
Click to hide internal directories.