metrics

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	StatusStable    = "STABLE"
	StatusConnected = "CONNECTED"
	StatusUp        = "UP"
	StatusInSync    = "in_sync"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InterfaceMetrics

type InterfaceMetrics struct {
	// contains filtered or unexported fields
}

func NewInterfaceMetrics

func NewInterfaceMetrics(namespace string) *InterfaceMetrics

func (*InterfaceMetrics) Reset

func (m *InterfaceMetrics) Reset()

type LBMetrics

type LBMetrics struct {
	// contains filtered or unexported fields
}

func NewLBMetrics

func NewLBMetrics(namespace string) *LBMetrics

func (*LBMetrics) Populate

func (l *LBMetrics) Populate(name string, id string, info *api.LBInfo)

func (*LBMetrics) Reset

func (l *LBMetrics) Reset()

type MemberMetrics

type MemberMetrics struct {
	NetworkMetrics
	// contains filtered or unexported fields
}

func NewMemberMetrics

func NewMemberMetrics(namespace string, labels []string) *MemberMetrics

func (*MemberMetrics) Populate

func (m *MemberMetrics) Populate(
	status *model.LBPoolMemberStatus,
	stats *model.LBPoolMemberStatistics,
	labels []string,
)

func (*MemberMetrics) Reset

func (m *MemberMetrics) Reset()

type NetworkMetrics

type NetworkMetrics struct {
	// contains filtered or unexported fields
}

func NewNetworkMetrics

func NewNetworkMetrics(namespace string, object string, labels []string) NetworkMetrics

func (*NetworkMetrics) Populate

func (n *NetworkMetrics) Populate(labels []string, c *model.LBStatisticsCounter)

func (*NetworkMetrics) Reset

func (n *NetworkMetrics) Reset()

type NodeMetrics

type NodeMetrics struct {
	// contains filtered or unexported fields
}

func NewNodeMetrics

func NewNodeMetrics(namespace string) *NodeMetrics

func (*NodeMetrics) Populate

func (m *NodeMetrics) Populate(info *api.NodeInfo) error

func (*NodeMetrics) Reset

func (m *NodeMetrics) Reset()

type PoolMetrics

type PoolMetrics struct {
	NetworkMetrics
	// contains filtered or unexported fields
}

func NewPoolMetrics

func NewPoolMetrics(namespace string) *PoolMetrics

func (*PoolMetrics) Populate

func (p *PoolMetrics) Populate(info api.PoolInfo)

func (*PoolMetrics) Reset

func (p *PoolMetrics) Reset()

type RateMetrics

type RateMetrics struct {
	// contains filtered or unexported fields
}

func NewRateMetrics

func NewRateMetrics(namespace string, object string, kind string, labels []string) *RateMetrics

func (*RateMetrics) Reset

func (v *RateMetrics) Reset()

type Recorder

type Recorder struct {
	// contains filtered or unexported fields
}

func NewRecorder

func NewRecorder(manager *api.NSXApi, namespace string) *Recorder

func (*Recorder) RecordMetrics

func (r *Recorder) RecordMetrics() error

func (*Recorder) Reset

func (r *Recorder) Reset()

type SessionMetrics

type SessionMetrics struct {
	// contains filtered or unexported fields
}

func NewSessionMetrics

func NewSessionMetrics(namespace string, object string, kind string, labels []string) *SessionMetrics

func (*SessionMetrics) Reset

func (s *SessionMetrics) Reset()

type Tier0Metrics

type Tier0Metrics struct {
	TierMetrics
}

func NewTier0Metrics

func NewTier0Metrics(namespace string) *Tier0Metrics

func (*Tier0Metrics) Populate

func (t *Tier0Metrics) Populate(
	config model.Tier0,
	state *model.LogicalRouterState,
	status *model.LogicalRouterStatus,
)

type Tier1Metrics

type Tier1Metrics struct {
	TierMetrics
}

func NewTier1Metrics

func NewTier1Metrics(namespace string) *Tier1Metrics

func (*Tier1Metrics) Populate

func (t *Tier1Metrics) Populate(
	config model.Tier1,
	state *model.LogicalRouterState,
	status *model.LogicalRouterStatus,
)

type TierMetrics

type TierMetrics struct {
	// contains filtered or unexported fields
}

func NewTierMetrics

func NewTierMetrics(namespace string, kind string) TierMetrics

func (*TierMetrics) Populate

func (t *TierMetrics) Populate(
	labels []string,
	mode string,
	state *model.LogicalRouterState,
	status *model.LogicalRouterStatus,
)

func (*TierMetrics) Reset

func (t *TierMetrics) Reset()

type TotalMetrics

type TotalMetrics struct {
	// contains filtered or unexported fields
}

func NewTotalMetrics

func NewTotalMetrics(namespace string, object string, kind string, labels []string) *TotalMetrics

func (*TotalMetrics) Reset

func (v *TotalMetrics) Reset()

type VSMetrics

type VSMetrics struct {
	NetworkMetrics
	// contains filtered or unexported fields
}

func NewVSMetrics

func NewVSMetrics(namespace string) *VSMetrics

func (*VSMetrics) Populate

func (v *VSMetrics) Populate(info api.VSInfo)

func (*VSMetrics) Reset

func (v *VSMetrics) Reset()

Jump to

Keyboard shortcuts

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