alerts

package
v0.0.0-...-b8551e4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FiringAlertsPoll

func FiringAlertsPoll(client *splunk.SplunkClient, ddKeptn *keptnv2.Keptn, keptnOptions keptn.KeptnOpts, envConfig utils.EnvConfig)

FiringAlertsPoll will handle all requests for '/health' and '/ready'

func ProcessAndForwardAlertEvent

func ProcessAndForwardAlertEvent(triggeredInstance splunkalerts.EntryItem, logger *keptn.Logger, client *splunk.SplunkClient, ddKeptn *keptnv2.Keptn, keptnOptions keptn.KeptnOpts, envConfig utils.EnvConfig) error

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

Types

type RemediationTriggeredEventData

type RemediationTriggeredEventData struct {
	keptnv2.EventData
	// Problem contains details about the problem
	Problem keptncommons.ProblemEventData `json:"problem"`
	// Deployment contains the current deployment, that is inferred from the alert details
	Deployment keptnv2.DeploymentFinishedData `json:"deployment"`
}

type SplunkAlertEvent

type SplunkAlertEvent struct {
	Sid         string      `json:"sid"`
	SearchName  string      `json:"search_name"`
	App         string      `json:"app"`
	Owner       string      `json:"owner"`
	ResultsLink string      `json:"results_link"`
	Result      alertResult `json:"result"`
}

Jump to

Keyboard shortcuts

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