v017

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

Documentation

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

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

AbsoluteURL for alerts API endpoint this mapper supports

func (AlertMapper) Collect

func (m AlertMapper) Collect(uri string, headers map[string]string, timeout time.Duration, httpTransport http.RoundTripper) ([]models.AlertGroup, error)

func (AlertMapper) IsOpenAPI

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

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

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

AbsoluteURL for silences API endpoint this mapper supports

func (SilenceMapper) Collect

func (m SilenceMapper) Collect(uri string, headers map[string]string, timeout time.Duration, httpTransport http.RoundTripper) ([]models.Silence, error)

func (SilenceMapper) IsOpenAPI

func (m SilenceMapper) IsOpenAPI() bool

IsOpenAPI returns true is remote Alertmanager uses OpenAPI

func (SilenceMapper) IsSupported

func (m SilenceMapper) IsSupported(version string) bool

IsSupported returns true if given version string is supported

func (SilenceMapper) QueryArgs

func (m SilenceMapper) QueryArgs() string

QueryArgs for HTTP requests send to the Alertmanager API endpoint

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

func (s StatusMapper) Collect(uri string, headers map[string]string, timeout time.Duration, httpTransport http.RoundTripper) (models.AlertmanagerStatus, error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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