eventhandling

package
v0.0.0-...-7a5e26d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSLIConfiguration

func GetSLIConfiguration(resourceHandler sdk.ResourceHandler, project string, stage string, service string, resourceURI string) (map[string]string, error)

GetSLIConfiguration retrieves the SLI configuration for a service considering SLI configuration on stage and project level. First, the configuration of project-level is retrieved, which is then overridden by configuration on stage level, overridden by configuration on service level.

func GetShipyard

func GetShipyard(resourceHandler sdk.ResourceHandler, scope api.ResourceScope) (*keptnv2.Shipyard, error)

GetShipyard returns the shipyard definition of a project

func ProcessAndForwardAlertEvent

func ProcessAndForwardAlertEvent(rw http.ResponseWriter, requestBody []byte, logger *keptn.Logger, shkeptncontext string)

ProcessAndForwardAlertEvent reads the payload from the request and sends a valid Cloud event to the keptn event broker

Types

type ConfigureMonitoringEventHandler

type ConfigureMonitoringEventHandler struct {
}

ConfigureMonitoringEventHandler is responsible for processing configure monitoring events

func NewConfigureMonitoringEventHandler

func NewConfigureMonitoringEventHandler() *ConfigureMonitoringEventHandler

NewConfigureMonitoringEventHandler creates a new ConfigureMonitoringEventHandler

func (ConfigureMonitoringEventHandler) Execute

func (eh ConfigureMonitoringEventHandler) Execute(k sdk.IKeptn, event sdk.KeptnEvent) (interface{}, *sdk.Error)

Execute processes an event

type GetSliEventHandler

type GetSliEventHandler struct {
	// contains filtered or unexported fields
}

GetSliEventHandler is responsible for processing configure monitoring events

func NewGetSliEventHandler

func NewGetSliEventHandler(kubeClient kubernetes.Clientset) *GetSliEventHandler

NewGetSliEventHandler creates a new TriggeredEventHandler

func (GetSliEventHandler) Execute

func (eh GetSliEventHandler) Execute(k sdk.IKeptn, event sdk.KeptnEvent) (interface{}, *sdk.Error)

Execute processes an event

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL