Help us shape the future of Go! Take the 2026 Go Developer Survey

eventflow

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: NCSA Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// from https://github.com/williaster/data-ui/blob/master/packages/event-flow/src/constants.js
	// event attributes
	TS0     = "TS0"
	TS_NEXT = "TS_NEXT"
	TS_PREV = "TS_PREV"
	TS      = "TS"

	EVENT_NAME = "EVENT_NAME"
	ENTITY_ID  = "ENTITY_ID"
	EVENT_UUID = "EVENT_UUID"

	META            = "META"
	ELAPSED_MS_ROOT = "ELAPSED_MS_ROOT"
	ELAPSED_MS      = "ELAPSED_MS"
	EVENT_COUNT     = "EVENT_COUNT"

	ANY_EVENT_TYPE = "ANY_EVENT_TYPE"

	// scales
	ELAPSED_TIME_SCALE   = "ELAPSED_TIME_SCALE"
	EVENT_SEQUENCE_SCALE = "EVENT_SEQUENCE_SCALE"
	NODE_COLOR_SCALE     = "NODE_COLOR_SCALE"
	EVENT_COUNT_SCALE    = "EVENT_COUNT_SCALE"
	NODE_SEQUENCE_SCALE  = "NODE_SEQUENCE_SCALE"

	// node sorters
	ORDER_BY_EVENT_COUNT = "ORDER_BY_EVENT_COUNT"
	ORDER_BY_ELAPSED_MS  = "ORDER_BY_ELAPSED_MS"

	// note this can"t have spaces or it breaks its use in the Pattern "url(#id)""
	FILTERED_EVENTS = "FILTERED_EVENTS"
	CLIP_ID         = "CLIP_PATH_ID"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID        string            `json:"EVENT_ID"`
	ParentID  string            `json:"PARENT_ID"`
	Name      string            `json:"EVENT_NAME"`
	MetaData  map[string]string `json:"META,omitempty"`
	TimeStamp time.Time         `json:"TS,omitempty"`
	Duration  uint64            `json:"ELAPSED_MS,omitempty"`
}

func (Event) Header

func (Event) Header(opts ...writer.Option) []string

func (Event) Row

func (e Event) Row(opts ...writer.Option) []string

type Events

type Events []Event

func SpansToEvenFlow

func SpansToEvenFlow(spans []model.Span) Events

func (Events) Header

func (Events) Header(opts ...writer.Option) []string

func (Events) Rows

func (s Events) Rows(opts ...writer.Option) [][]string

Jump to

Keyboard shortcuts

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