v05

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: Apache-2.0 Imports: 9 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) AbsoluteURL added in v0.9.0

func (m AlertMapper) AbsoluteURL(baseURI string) (string, error)

AbsoluteURL for alerts API endpoint this mapper supports

func (AlertMapper) Decode added in v0.9.0

func (m AlertMapper) Decode(source io.ReadCloser) ([]models.AlertGroup, error)

Decode Alertmanager API response body and return unsee model instances

func (AlertMapper) IsSupported

func (m AlertMapper) IsSupported(version string) bool

IsSupported returns true if given version string is supported

func (AlertMapper) QueryArgs added in v0.9.0

func (m AlertMapper) QueryArgs() string

QueryArgs for HTTP requests send to the Alertmanager API endpoint

type SilenceMapper

type SilenceMapper struct {
	mapper.SilenceMapper
}

SilenceMapper implements Alertmanager 0.4 API schema

func (SilenceMapper) AbsoluteURL added in v0.9.0

func (m SilenceMapper) AbsoluteURL(baseURI string) (string, error)

AbsoluteURL for silences API endpoint this mapper supports

func (SilenceMapper) Decode added in v0.9.0

func (m SilenceMapper) Decode(source io.ReadCloser) ([]models.Silence, error)

Decode Alertmanager API response body and return unsee model instances

func (SilenceMapper) IsSupported

func (m SilenceMapper) IsSupported(version string) bool

IsSupported returns true if given version string is supported

func (SilenceMapper) QueryArgs added in v0.9.0

func (m SilenceMapper) QueryArgs() string

QueryArgs for HTTP requests send to the Alertmanager API endpoint

Jump to

Keyboard shortcuts

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