stats

package
v0.0.0-...-e04bf21 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_microburst_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Name             string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	CurrentVal       int64   `protobuf:"varint,2,opt,name=currentVal,proto3" json:"currentVal,omitempty"`
	Min              int64   `protobuf:"varint,3,opt,name=min,proto3" json:"min,omitempty"`
	Max              int64   `protobuf:"varint,4,opt,name=max,proto3" json:"max,omitempty"`
	Avg              float64 `protobuf:"fixed64,5,opt,name=avg,proto3" json:"avg,omitempty"`
	Interval         int32   `protobuf:"varint,6,opt,name=interval,proto3" json:"interval,omitempty"`
	CumVal           int64   `protobuf:"varint,7,opt,name=cumVal,proto3" json:"cumVal,omitempty"`
	CurrentValDouble float64 `protobuf:"fixed64,8,opt,name=currentValDouble,proto3" json:"currentValDouble,omitempty"`
	BaseVal          int64   `protobuf:"varint,9,opt,name=baseVal,proto3" json:"baseVal,omitempty"`
	CurrentValU64    uint64  `protobuf:"varint,10,opt,name=currentValU64,proto3" json:"currentValU64,omitempty"`
	// contains filtered or unexported fields
}

func (*Counter) Descriptor deprecated

func (*Counter) Descriptor() ([]byte, []int)

Deprecated: Use Counter.ProtoReflect.Descriptor instead.

func (*Counter) GetAvg

func (x *Counter) GetAvg() float64

func (*Counter) GetBaseVal

func (x *Counter) GetBaseVal() int64

func (*Counter) GetCumVal

func (x *Counter) GetCumVal() int64

func (*Counter) GetCurrentVal

func (x *Counter) GetCurrentVal() int64

func (*Counter) GetCurrentValDouble

func (x *Counter) GetCurrentValDouble() float64

func (*Counter) GetCurrentValU64

func (x *Counter) GetCurrentValU64() uint64

func (*Counter) GetInterval

func (x *Counter) GetInterval() int32

func (*Counter) GetMax

func (x *Counter) GetMax() int64

func (*Counter) GetMin

func (x *Counter) GetMin() int64

func (*Counter) GetName

func (x *Counter) GetName() string

func (*Counter) ProtoMessage

func (*Counter) ProtoMessage()

func (*Counter) ProtoReflect

func (x *Counter) ProtoReflect() protoreflect.Message

func (*Counter) Reset

func (x *Counter) Reset()

func (*Counter) String

func (x *Counter) String() string

type Microburst

type Microburst struct {

	// interface name
	InterfaceName string `protobuf:"bytes,1,opt,name=interfaceName,proto3" json:"interfaceName,omitempty"`
	// interface port queue-<idx>
	Queue string `protobuf:"bytes,2,opt,name=queue,proto3" json:"queue,omitempty"`
	// unicast (or) multicast
	QueueType string `protobuf:"bytes,3,opt,name=queueType,proto3" json:"queueType,omitempty"`
	// not used
	Threshold int32 `protobuf:"varint,4,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// set to peak occupancy during burst
	Peak int32 `protobuf:"varint,5,opt,name=peak,proto3" json:"peak,omitempty"`
	// not used
	EndDepth int32 `protobuf:"varint,6,opt,name=endDepth,proto3" json:"endDepth,omitempty"`
	// set to burst duration
	Duration int64 `protobuf:"varint,7,opt,name=duration,proto3" json:"duration,omitempty"`
	// set to encoding timestamp
	Ts string `protobuf:"bytes,8,opt,name=ts,proto3" json:"ts,omitempty"`
	// set to up timestamp
	StartTs string `protobuf:"bytes,9,opt,name=startTs,proto3" json:"startTs,omitempty"`
	// set to down timestamp
	EndTs string `protobuf:"bytes,10,opt,name=endTs,proto3" json:"endTs,omitempty"`
	// set to burst peak timestamp
	PeakTs string `protobuf:"bytes,11,opt,name=peakTs,proto3" json:"peakTs,omitempty"`
	// set to node-<node_name>/microburst/interface-<port_name>/queue-[queue-<queue_idx>]
	SourceName string `protobuf:"bytes,12,opt,name=sourceName,proto3" json:"sourceName,omitempty"`
	// set to class-level<level>
	ClassLevel string `protobuf:"bytes,13,opt,name=classLevel,proto3" json:"classLevel,omitempty"`
	// contains filtered or unexported fields
}

func (*Microburst) Descriptor deprecated

func (*Microburst) Descriptor() ([]byte, []int)

Deprecated: Use Microburst.ProtoReflect.Descriptor instead.

func (*Microburst) GetClassLevel

func (x *Microburst) GetClassLevel() string

func (*Microburst) GetDuration

func (x *Microburst) GetDuration() int64

func (*Microburst) GetEndDepth

func (x *Microburst) GetEndDepth() int32

func (*Microburst) GetEndTs

func (x *Microburst) GetEndTs() string

func (*Microburst) GetInterfaceName

func (x *Microburst) GetInterfaceName() string

func (*Microburst) GetPeak

func (x *Microburst) GetPeak() int32

func (*Microburst) GetPeakTs

func (x *Microburst) GetPeakTs() string

func (*Microburst) GetQueue

func (x *Microburst) GetQueue() string

func (*Microburst) GetQueueType

func (x *Microburst) GetQueueType() string

func (*Microburst) GetSourceName

func (x *Microburst) GetSourceName() string

func (*Microburst) GetStartTs

func (x *Microburst) GetStartTs() string

func (*Microburst) GetThreshold

func (x *Microburst) GetThreshold() int32

func (*Microburst) GetTs

func (x *Microburst) GetTs() string

func (*Microburst) ProtoMessage

func (*Microburst) ProtoMessage()

func (*Microburst) ProtoReflect

func (x *Microburst) ProtoReflect() protoreflect.Message

func (*Microburst) Reset

func (x *Microburst) Reset()

func (*Microburst) String

func (x *Microburst) String() string

type Stats

type Stats struct {

	// not set
	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// set to microburst
	StatName string `protobuf:"bytes,2,opt,name=statName,proto3" json:"statName,omitempty"`
	// not used
	Counters []*Counter `protobuf:"bytes,3,rep,name=counters,proto3" json:"counters,omitempty"`
	// microburst stats
	Microburst []*Microburst `protobuf:"bytes,4,rep,name=microburst,proto3" json:"microburst,omitempty"`
	// contains filtered or unexported fields
}

func (*Stats) Descriptor deprecated

func (*Stats) Descriptor() ([]byte, []int)

Deprecated: Use Stats.ProtoReflect.Descriptor instead.

func (*Stats) GetCounters

func (x *Stats) GetCounters() []*Counter

func (*Stats) GetMicroburst

func (x *Stats) GetMicroburst() []*Microburst

func (*Stats) GetSource

func (x *Stats) GetSource() string

func (*Stats) GetStatName

func (x *Stats) GetStatName() string

func (*Stats) ProtoMessage

func (*Stats) ProtoMessage()

func (*Stats) ProtoReflect

func (x *Stats) ProtoReflect() protoreflect.Message

func (*Stats) Reset

func (x *Stats) Reset()

func (*Stats) String

func (x *Stats) String() string

type StatsStream

type StatsStream struct {

	// nodeName from switch telemetry configuration
	// # "use-nodeid <fabric_name/node_name>"
	NodeName string `protobuf:"bytes,1,opt,name=nodeName,proto3" json:"nodeName,omitempty"`
	// encode timestamp
	Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// microburst stats
	StatObjects []*Stats `protobuf:"bytes,3,rep,name=statObjects,proto3" json:"statObjects,omitempty"`
	// fabricName is extracted from switch telemetry configuration
	// # "use-nodeid <fabric_name/node_name>"
	FabricName string `protobuf:"bytes,4,opt,name=fabricName,proto3" json:"fabricName,omitempty"`
	// set to CISCO_NX-OS
	Vendor string `protobuf:"bytes,5,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// set to 2
	Version int32 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*StatsStream) Descriptor deprecated

func (*StatsStream) Descriptor() ([]byte, []int)

Deprecated: Use StatsStream.ProtoReflect.Descriptor instead.

func (*StatsStream) GetFabricName

func (x *StatsStream) GetFabricName() string

func (*StatsStream) GetNodeName

func (x *StatsStream) GetNodeName() string

func (*StatsStream) GetStatObjects

func (x *StatsStream) GetStatObjects() []*Stats

func (*StatsStream) GetTimestamp

func (x *StatsStream) GetTimestamp() string

func (*StatsStream) GetVendor

func (x *StatsStream) GetVendor() string

func (*StatsStream) GetVersion

func (x *StatsStream) GetVersion() int32

func (*StatsStream) ProtoMessage

func (*StatsStream) ProtoMessage()

func (*StatsStream) ProtoReflect

func (x *StatsStream) ProtoReflect() protoreflect.Message

func (*StatsStream) Reset

func (x *StatsStream) Reset()

func (*StatsStream) String

func (x *StatsStream) String() string

Jump to

Keyboard shortcuts

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