v05

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v05 package implements support for interacting with Alertmanager 0.5 Collected data will be mapped to unsee internal schema defined the unsee/models package This file defines Alertmanager alerts mapping

Package v05 package implements support for interacting with Alertmanager 0.5 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

type SilenceMapper

type SilenceMapper struct {
	mapper.SilenceMapper
}

SilenceMapper implements Alertmanager 0.4 API schema

func (SilenceMapper) GetSilences

func (m SilenceMapper) GetSilences(uri string, timeout time.Duration) ([]models.Silence, error)

GetSilences will make a request to Alertmanager API and parse the response It will only return silences or error (if any)

func (SilenceMapper) IsSupported

func (m SilenceMapper) IsSupported(version string) bool

IsSupported returns true if given version string is supported

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL