Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlertmanagerConfigFromConfig ¶
AlertmanagerConfigFromConfig returns the Alertmanager config from the Cortex configuration.
Types ¶
type AlertManagerConfigsAPI ¶
AlertManagerConfigsAPI allows retrieving alert configs.
func (*AlertManagerConfigsAPI) GetConfigs ¶
func (c *AlertManagerConfigsAPI) GetConfigs(since configs.ID) (*ConfigsResponse, error)
GetConfigs returns all Cortex configurations from a configs API server that have been updated after the given configs.ID was last updated.
type ConfigsResponse ¶
type ConfigsResponse struct { // Configs maps user ID to their latest configs.View. Configs map[string]configs.View `json:"configs"` }
ConfigsResponse is a response from server for GetConfigs.
func (ConfigsResponse) GetLatestConfigID ¶
func (c ConfigsResponse) GetLatestConfigID() configs.ID
GetLatestConfigID returns the last config ID from a set of configs.
type RulesAPI ¶
RulesAPI allows retrieving recording and alerting rules.
func (*RulesAPI) GetConfigs ¶
func (c *RulesAPI) GetConfigs(since configs.ID) (*ConfigsResponse, error)
GetConfigs returns all Cortex configurations from a configs API server that have been updated after the given configs.ID was last updated.
Click to show internal directories.
Click to hide internal directories.