types

package
v0.0.2-0...-4ce78c8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	ID                          string
	HighCardinalityTags         []string
	OrchestratorCardinalityTags []string
	LowCardinalityTags          []string
	StandardTags                []string
	// contains filtered or unexported fields
}

Entity is an entity ID + tags.

func (Entity) Copy

func (e Entity) Copy(cardinality collectors.TagCardinality) Entity

Copy returns a copy of the Entity containing only tags at the supplied cardinality.

func (Entity) GetHash

func (e Entity) GetHash() string

GetHash returns a computed hash of all of the entity's tags.

func (Entity) GetTags

func (e Entity) GetTags(cardinality collectors.TagCardinality) []string

GetTags flattens all tags from all cardinalities into a single slice of tag strings.

type EntityEvent

type EntityEvent struct {
	EventType EventType
	Entity    Entity
}

EntityEvent is an event generated when an entity is added, modified or deleted. It contains the event type and the new entity.

type EventType

type EventType int

EventType is a type of event, triggered when an entity is added, modified or deleted.

const (
	// EventTypeAdded means an entity was added.
	EventTypeAdded EventType = iota
	// EventTypeModified means an entity was modified.
	EventTypeModified
	// EventTypeDeleted means an entity was deleted.
	EventTypeDeleted
)

Jump to

Keyboard shortcuts

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