Documentation ¶
Index ¶
- type AlertMapper
- func (m AlertMapper) AbsoluteURL(baseURI string) (string, error)
- func (m AlertMapper) Collect(uri string, headers map[string]string, timeout time.Duration, ...) ([]models.AlertGroup, error)
- func (m AlertMapper) IsOpenAPI() bool
- func (m AlertMapper) IsSupported(version string) bool
- func (m AlertMapper) QueryArgs() string
- type SilenceMapper
- func (m SilenceMapper) AbsoluteURL(baseURI string) (string, error)
- func (m SilenceMapper) Collect(uri string, headers map[string]string, timeout time.Duration, ...) ([]models.Silence, error)
- func (m SilenceMapper) IsOpenAPI() bool
- func (m SilenceMapper) IsSupported(version string) bool
- func (m SilenceMapper) QueryArgs() string
- type StatusMapper
- func (s StatusMapper) AbsoluteURL(baseURI string) (string, error)
- func (s StatusMapper) Collect(uri string, headers map[string]string, timeout time.Duration, ...) (models.AlertmanagerStatus, error)
- func (s StatusMapper) IsOpenAPI() bool
- func (s StatusMapper) IsSupported(version string) bool
- func (s StatusMapper) QueryArgs() string
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) 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