events

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppMetadata = []string{
	"AppName",
	"OrgName",
	"OrgGuid",
	"SpaceName",
	"SpaceGuid",
}

Functions

func AuthorizedEvents

func AuthorizedEvents() string

func AuthorizedMetadata added in v1.3.0

func AuthorizedMetadata() string

func IsAuthorizedEvent

func IsAuthorizedEvent(wantedEvent string) bool

func ParseExtraFields

func ParseExtraFields(extraEventsString string) (map[string]string, error)

func ParseSelectedEvents

func ParseSelectedEvents(wantedEvents string) (map[string]bool, error)

Types

type Config added in v1.3.0

type Config struct {
	SelectedEvents string
	AddAppName     bool
	AddOrgName     bool
	AddOrgGuid     bool
	AddSpaceName   bool
	AddSpaceGuid   bool
	AddTags        bool
}

type Event

type Event struct {
	Fields map[string]interface{}
	Msg    string
	Type   string
}

func ContainerMetric

func ContainerMetric(msg *events.Envelope) *Event

func CounterEvent

func CounterEvent(msg *events.Envelope) *Event

func ErrorEvent

func ErrorEvent(msg *events.Envelope) *Event

func HttpStart

func HttpStart(msg *events.Envelope) *Event

func HttpStartStop

func HttpStartStop(msg *events.Envelope) *Event

func HttpStop

func HttpStop(msg *events.Envelope) *Event

func LogMessage

func LogMessage(msg *events.Envelope) *Event

func ValueMetric

func ValueMetric(msg *events.Envelope) *Event

func (*Event) AnnotateWithAppData

func (e *Event) AnnotateWithAppData(appCache cache.Cache, config *Config)

func (*Event) AnnotateWithCFMetaData

func (e *Event) AnnotateWithCFMetaData()

func (*Event) AnnotateWithEnvelopeData

func (e *Event) AnnotateWithEnvelopeData(msg *events.Envelope, config *Config)

Jump to

Keyboard shortcuts

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