v061

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 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

Jump to

Keyboard shortcuts

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