activity

package
v0.0.0-...-f1c724a Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Uri = pkgPath
)

Functions

func IsStarted

func IsStarted() bool

IsStarted - determine if this package has completed startup

Types

type Entry

type Entry struct {
	CustomerId int32
	SloEntryId int32

	Timestamp time.Time

	Origin Origin

	Event     int32   // event : warning, watch, canceled
	Status    int32   // Status : warning, watch, canceled, ok/normal/canary?
	Threshold Metrics // This can't be pulled from Slo entry as this is historical
	Actual    Metrics

	LocalityScope int16 // Values : None, Region, Zone, Default - uses all localities

	Advice string // Given an event is generated, what information is the downstream service going

}

type Metrics

type Metrics struct {
	Watch   int16
	Percent int16 // Used for latency, traffic, status codes, counter, profile
	Value   int16 // Used for latency, saturation duration or traffic
	Minimum int16 // Used for status codes to attenuate underflow, applied to the window interval
}

type Origin

type Origin struct {
	Region     string
	Zone       string
	Service    string
	InstanceId string
}

Origin - attributes that uniquely identify a service instance

Jump to

Keyboard shortcuts

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