Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpireSilence ¶
DeleteSilence delete a silence by ID.
func ListAlerts ¶
ListAlerts returns a slice of Alert and an error.
func ListSilences ¶
ListSilences returns a slice of Silence and an error.
Types ¶
type StatusResponse ¶
type StatusResponse struct { Uptime time.Time `json:"uptime"` VersionInfo struct { Branch string `json:"branch"` BuildDate string `json:"buildDate"` BuildUser string `json:"buildUser"` GoVersion string `json:"goVersion"` Revision string `json:"revision"` Version string `json:"version"` } `json:"versionInfo"` }
StatusResponse is the data returned by Alertmanager about its current status.
func Status ¶
func Status(alertmanagerURL string) (StatusResponse, error)
Status returns a StatusResponse or an error.
Click to show internal directories.
Click to hide internal directories.