v015

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusMapper

type StatusMapper struct {
	mapper.StatusMapper
}

StatusMapper implements Alertmanager API schema

func (StatusMapper) AbsoluteURL

func (s StatusMapper) AbsoluteURL(baseURI string) (string, error)

AbsoluteURL for status API endpoint this mapper supports

func (StatusMapper) Decode

Decode Alertmanager API response body and return karma model instances

func (StatusMapper) IsOpenAPI

func (s StatusMapper) IsOpenAPI() bool

IsOpenAPI returns true is remote Alertmanager uses OpenAPI

func (StatusMapper) IsSupported

func (s StatusMapper) IsSupported(version string) bool

IsSupported returns true if given version string is supported

func (StatusMapper) QueryArgs

func (s StatusMapper) 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