Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertManagerConfig ¶
type AlertManagerConfig struct { EntityCredentials EntityCredentials AlertHistoryHost string }
type AlertmanagerClient ¶
type AlertmanagerClient struct { CortextClient client.CortexClient // contains filtered or unexported fields }
func NewClient ¶
func NewClient(c domain.CortexConfig) (AlertmanagerClient, error)
func (AlertmanagerClient) SyncConfig ¶
func (am AlertmanagerClient) SyncConfig(config AlertManagerConfig) error
type Client ¶
type Client interface {
SyncConfig(credentials AlertManagerConfig) error
}
type EntityCredentials ¶
type EntityCredentials struct { Entity string Teams map[string]TeamCredentials }
type SlackConfig ¶
type SlackConfig struct { Critical SlackCredential Warning SlackCredential }
type SlackCredential ¶
type TeamCredentials ¶
type TeamCredentials struct { PagerdutyCredential string Slackcredentials SlackConfig Name string }
Click to show internal directories.
Click to hide internal directories.