consolegraphql

package
v0.0.0-...-0e4f5d7 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindOrCreateRateCalculatingMetric

func FindOrCreateRateCalculatingMetric(existing []*Metric, n string, t string, unit string) (*RateCalculatingMetric, []*Metric)

func FindOrCreateSimpleMetric

func FindOrCreateSimpleMetric(existing []*Metric, n string, t string) (*SimpleMetric, []*Metric)

Types

type AddressHolder

type AddressHolder struct {
	v1beta1.Address `json:",inline"`
	Metrics         []*Metric `json:"metrics"`
}

func (*AddressHolder) GetControllingResourceAttributes

func (ah *AddressHolder) GetControllingResourceAttributes() *authv1.ResourceAttributes

func (*AddressHolder) GetMetrics

func (ah *AddressHolder) GetMetrics() []*Metric

type AddressSpaceHolder

type AddressSpaceHolder struct {
	v1beta1.AddressSpace `json:",inline"`
	Metrics              []*Metric `json:"metrics"`
}

func (*AddressSpaceHolder) GetControllingResourceAttributes

func (ash *AddressSpaceHolder) GetControllingResourceAttributes() *authv1.ResourceAttributes

func (*AddressSpaceHolder) GetMetrics

func (ash *AddressSpaceHolder) GetMetrics() []*Metric

type Connection

type Connection struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ConnectionSpec `json:"spec,omitempty"`
	Metrics           []*Metric      `json:"metrics"`
}

func (*Connection) GetControllingResourceAttributes

func (c *Connection) GetControllingResourceAttributes() *authv1.ResourceAttributes

func (*Connection) GetMetrics

func (c *Connection) GetMetrics() []*Metric

type ConnectionSpec

type ConnectionSpec struct {
	AddressSpace string            `json:"addressSpace,omitempty"`
	Hostname     string            `json:"hostname,omitempty"`
	ContainerId  string            `json:"containerId,omitempty"`
	Protocol     string            `json:"protocol,omitempty"`
	Encrypted    bool              `json:"encrypted,omitempty"`
	Properties   map[string]string `json:"properties,omitempty"`
	Principal    string            `json:"principal,omitempty"`
}

type DataPointTimePair

type DataPointTimePair struct {
	DataPoint float64   `json:"dataPoint"`
	Timestamp time.Time `json:"timestamp"`
}

type HasMetrics

type HasMetrics interface {
	GetMetrics() []*Metric
}
type Link struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              LinkSpec  `json:"spec,omitempty"`
	Metrics           []*Metric `json:"metrics,omitempty"`
}

func (*Link) GetMetrics

func (l *Link) GetMetrics() []*Metric

type LinkSpec

type LinkSpec struct {
	Connection   string `json:"connection,omitempty"`
	AddressSpace string `json:"addressSpace,omitempty"`
	Address      string `json:"address,omitempty"`
	Role         string `json:"role,omitempty"`
}

type Metric

type Metric struct {
	Name  string    `json:"name,omitempty"`
	Type  string    `json:"type,omitempty"`
	Value float64   `json:"value,omitempty"`
	Unit  string    `json:"unit,omitempty"`
	Time  time.Time `json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*Metric) AddTimeSeriesDataPoint

func (m *Metric) AddTimeSeriesDataPoint(v float64, ts time.Time)

func (*Metric) GetTimeSeries

func (m *Metric) GetTimeSeries() *ring.Ring

type RateCalculatingMetric

type RateCalculatingMetric Metric

func NewRateCalculatingMetric

func NewRateCalculatingMetric(n string, t string, u string) *RateCalculatingMetric

func (*RateCalculatingMetric) Update

func (m *RateCalculatingMetric) Update(v float64, ts time.Time)

type SimpleMetric

type SimpleMetric Metric

func NewSimpleMetric

func NewSimpleMetric(n string, t string) *SimpleMetric

func (*SimpleMetric) Update

func (m *SimpleMetric) Update(v float64, ts time.Time)

Directories

Path Synopsis
* Copyright 2019, EnMasse authors.
* Copyright 2019, EnMasse authors.
* Copyright 2019, EnMasse authors.
* Copyright 2019, EnMasse authors.

Jump to

Keyboard shortcuts

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