Documentation ¶
Index ¶
- func NewLFUMessageCache(lub int) messageCache[alertingv1.OpniSeverity, *alertingv1.MessageInstance]
- func ParseIncomingWebhookMessage(req *http.Request) (config.WebhookMessage, error)
- func StartOpniEmbeddedServer(ctx context.Context, opniAddr string) *http.Server
- type EmbeddedServer
- type MessageMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLFUMessageCache ¶ added in v0.9.0
func NewLFUMessageCache(lub int) messageCache[alertingv1.OpniSeverity, *alertingv1.MessageInstance]
func ParseIncomingWebhookMessage ¶ added in v0.9.0
func ParseIncomingWebhookMessage(req *http.Request) (config.WebhookMessage, error)
ParseIncomingWebhookMessage return non-pointer for performance reasons
Types ¶
type EmbeddedServer ¶ added in v0.9.0
type EmbeddedServer struct {
// contains filtered or unexported fields
}
Embedded Server handles all incoming webhook requests from the AlertManager
func NewEmbeddedServer ¶ added in v0.9.0
func NewEmbeddedServer( lg *zap.SugaredLogger, lub int, ) *EmbeddedServer
Click to show internal directories.
Click to hide internal directories.