eventprocessing

package
v0.0.0-...-44da6bf Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPipedEvent

func GetPipedEvent() (*types.Event, error)

Types

type EventValue

type EventValue struct {
	Timestamp string           `json:"timestamp"`
	Entity    *types.Entity    `json:"entity"`
	Check     *types.Check     `json:"check"`
	Metrics   *types.Metrics   `json:"namespace"`
	Metadata  types.ObjectMeta `json:"metadata"`
}

func ParseEventTimestamp

func ParseEventTimestamp(event *types.Event) (EventValue, error)

type MetricValue

type MetricValue struct {
	Timestamp string   `json:"timestamp"`
	Name      string   `json:"name"`
	Entity    string   `json:"entity"`
	Value     float64  `json:"value"`
	Namespace string   `json:"namespace"`
	Tags      []string `json:"tags"`
}

func GetMetricFromPoint

func GetMetricFromPoint(point *types.MetricPoint, entityID string, namespaceID string, entityLabels map[string]string, pointNameAsMetricName bool) (MetricValue, error)

Jump to

Keyboard shortcuts

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