events

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GatewayPromotionSucceededEvent = "gateway_promotion_succeeded"
	GatewayPromotionFailedEvent    = "gateway_promotion_failed"
	GatewayDemotionSucceededEvent  = "gateway_demotion_succeeded"
	GatewayDemotionFailedEvent     = "gateway_demotion_failed"
)

Variables

This section is empty.

Functions

func LogGatewayHealthFailedEvent

func LogGatewayHealthFailedEvent(eventType string, failureReason string, prevAction protos.HealthResponse_RequestedAction)

LogGatewayHealthFailedEvent logs a failed promotion/demotion event with its associated error.

func LogGatewayHealthSuccessEvent

func LogGatewayHealthSuccessEvent(eventType string, prevAction protos.HealthResponse_RequestedAction)

LogGatewayHealthSuccessEvent logs a successful promotion/demotion event.

Types

type GatewayHealthFailed

type GatewayHealthFailed struct {
	FailureReason string `json:"failure_reason"`
}

GatewayHealthFailed event

Jump to

Keyboard shortcuts

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