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 ¶
func (s StatusMapper) Decode(source io.ReadCloser) (models.AlertmanagerStatus, error)
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
Click to show internal directories.
Click to hide internal directories.