v062

package
v0.48.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v062 package implements support for interacting with Alertmanager 0.6.2 Collected data will be mapped to karma internal schema defined the karma/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 karma model instances

func (AlertMapper) IsOpenAPI added in v0.48.1

func (m AlertMapper) IsOpenAPI() bool

IsOpenAPI returns true is remote Alertmanager uses OpenAPI

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

Jump to

Keyboard shortcuts

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