metrics

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_mmesh_protobuf_network_v1_resources_metrics_event_proto protoreflect.FileDescriptor
View Source
var File_mmesh_protobuf_network_v1_resources_metrics_netdev_proto protoreflect.FileDescriptor
View Source
var File_mmesh_protobuf_network_v1_resources_metrics_node_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EventMetrics

type EventMetrics struct {
	SuccessCount       float32            `protobuf:"fixed32,1,opt,name=successCount,proto3" json:"successCount,omitempty"`
	FailCount          float32            `protobuf:"fixed32,2,opt,name=failCount,proto3" json:"failCount,omitempty"`
	SuccessProbability float32            `protobuf:"fixed32,3,opt,name=successProbability,proto3" json:"successProbability,omitempty"`
	FailProbability    float32            `protobuf:"fixed32,4,opt,name=failProbability,proto3" json:"failProbability,omitempty"`
	FirstActivity      int64              `protobuf:"varint,5,opt,name=firstActivity,proto3" json:"firstActivity,omitempty"`
	LastActivity       int64              `protobuf:"varint,6,opt,name=lastActivity,proto3" json:"lastActivity,omitempty"`
	ActivityIndex      float32            `protobuf:"fixed32,7,opt,name=activityIndex,proto3" json:"activityIndex,omitempty"`
	Score              float32            `protobuf:"fixed32,8,opt,name=score,proto3" json:"score,omitempty"`
	Rating             string             `protobuf:"bytes,9,opt,name=rating,proto3" json:"rating,omitempty"`
	LastResult         events.EventResult `protobuf:"varint,10,opt,name=lastResult,proto3,enum=events.EventResult" json:"lastResult,omitempty"`
	// contains filtered or unexported fields
}

func (*EventMetrics) Descriptor deprecated

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

Deprecated: Use EventMetrics.ProtoReflect.Descriptor instead.

func (*EventMetrics) GetActivityIndex

func (x *EventMetrics) GetActivityIndex() float32

func (*EventMetrics) GetFailCount

func (x *EventMetrics) GetFailCount() float32

func (*EventMetrics) GetFailProbability

func (x *EventMetrics) GetFailProbability() float32

func (*EventMetrics) GetFirstActivity

func (x *EventMetrics) GetFirstActivity() int64

func (*EventMetrics) GetLastActivity

func (x *EventMetrics) GetLastActivity() int64

func (*EventMetrics) GetLastResult

func (x *EventMetrics) GetLastResult() events.EventResult

func (*EventMetrics) GetRating

func (x *EventMetrics) GetRating() string

func (*EventMetrics) GetScore

func (x *EventMetrics) GetScore() float32

func (*EventMetrics) GetSuccessCount

func (x *EventMetrics) GetSuccessCount() float32

func (*EventMetrics) GetSuccessProbability

func (x *EventMetrics) GetSuccessProbability() float32

func (*EventMetrics) ProtoMessage

func (*EventMetrics) ProtoMessage()

func (*EventMetrics) ProtoReflect

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

func (*EventMetrics) Reset

func (x *EventMetrics) Reset()

func (*EventMetrics) String

func (x *EventMetrics) String() string

type HostMetrics

type HostMetrics struct {
	Uptime         string  `protobuf:"bytes,1,opt,name=uptime,proto3" json:"uptime,omitempty"`
	LoadAvg        float32 `protobuf:"fixed32,2,opt,name=loadAvg,proto3" json:"loadAvg,omitempty"`
	CpuPressure    bool    `protobuf:"varint,3,opt,name=cpuPressure,proto3" json:"cpuPressure,omitempty"`
	MemoryUsage    uint64  `protobuf:"varint,4,opt,name=memoryUsage,proto3" json:"memoryUsage,omitempty"`
	MemoryPressure bool    `protobuf:"varint,5,opt,name=memoryPressure,proto3" json:"memoryPressure,omitempty"`
	DiskUsage      uint64  `protobuf:"varint,6,opt,name=diskUsage,proto3" json:"diskUsage,omitempty"`
	DiskPressure   bool    `protobuf:"varint,7,opt,name=diskPressure,proto3" json:"diskPressure,omitempty"`
	// contains filtered or unexported fields
}

func (*HostMetrics) Descriptor deprecated

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

Deprecated: Use HostMetrics.ProtoReflect.Descriptor instead.

func (*HostMetrics) GetCpuPressure

func (x *HostMetrics) GetCpuPressure() bool

func (*HostMetrics) GetDiskPressure

func (x *HostMetrics) GetDiskPressure() bool

func (*HostMetrics) GetDiskUsage

func (x *HostMetrics) GetDiskUsage() uint64

func (*HostMetrics) GetLoadAvg

func (x *HostMetrics) GetLoadAvg() float32

func (*HostMetrics) GetMemoryPressure

func (x *HostMetrics) GetMemoryPressure() bool

func (*HostMetrics) GetMemoryUsage

func (x *HostMetrics) GetMemoryUsage() uint64

func (*HostMetrics) GetUptime

func (x *HostMetrics) GetUptime() string

func (*HostMetrics) ProtoMessage

func (*HostMetrics) ProtoMessage()

func (*HostMetrics) ProtoReflect

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

func (*HostMetrics) Reset

func (x *HostMetrics) Reset()

func (*HostMetrics) String

func (x *HostMetrics) String() string

type NetDevStats

type NetDevStats struct {
	Iface        string `protobuf:"bytes,1,opt,name=iface,proto3" json:"iface,omitempty"`
	RxBytes      uint64 `protobuf:"varint,2,opt,name=rxBytes,proto3" json:"rxBytes,omitempty"`
	RxPackets    uint64 `protobuf:"varint,3,opt,name=rxPackets,proto3" json:"rxPackets,omitempty"`
	RxErrors     uint64 `protobuf:"varint,4,opt,name=rxErrors,proto3" json:"rxErrors,omitempty"`
	RxDrops      uint64 `protobuf:"varint,5,opt,name=rxDrops,proto3" json:"rxDrops,omitempty"`
	RxFifo       uint64 `protobuf:"varint,6,opt,name=rxFifo,proto3" json:"rxFifo,omitempty"`
	RxFrame      uint64 `protobuf:"varint,7,opt,name=rxFrame,proto3" json:"rxFrame,omitempty"`
	RxCompressed uint64 `protobuf:"varint,8,opt,name=rxCompressed,proto3" json:"rxCompressed,omitempty"`
	RxMulticast  uint64 `protobuf:"varint,9,opt,name=rxMulticast,proto3" json:"rxMulticast,omitempty"`
	TxBytes      uint64 `protobuf:"varint,10,opt,name=txBytes,proto3" json:"txBytes,omitempty"`
	TxPackets    uint64 `protobuf:"varint,11,opt,name=txPackets,proto3" json:"txPackets,omitempty"`
	TxErrors     uint64 `protobuf:"varint,12,opt,name=txErrors,proto3" json:"txErrors,omitempty"`
	TxDrops      uint64 `protobuf:"varint,13,opt,name=txDrops,proto3" json:"txDrops,omitempty"`
	TxFifo       uint64 `protobuf:"varint,14,opt,name=txFifo,proto3" json:"txFifo,omitempty"`
	TxColls      uint64 `protobuf:"varint,15,opt,name=txColls,proto3" json:"txColls,omitempty"`
	TxCarrier    uint64 `protobuf:"varint,16,opt,name=txCarrier,proto3" json:"txCarrier,omitempty"`
	TxCompressed uint64 `protobuf:"varint,17,opt,name=txCompressed,proto3" json:"txCompressed,omitempty"`
	// contains filtered or unexported fields
}

func (*NetDevStats) Descriptor deprecated

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

Deprecated: Use NetDevStats.ProtoReflect.Descriptor instead.

func (*NetDevStats) GetIface

func (x *NetDevStats) GetIface() string

func (*NetDevStats) GetRxBytes

func (x *NetDevStats) GetRxBytes() uint64

func (*NetDevStats) GetRxCompressed

func (x *NetDevStats) GetRxCompressed() uint64

func (*NetDevStats) GetRxDrops

func (x *NetDevStats) GetRxDrops() uint64

func (*NetDevStats) GetRxErrors

func (x *NetDevStats) GetRxErrors() uint64

func (*NetDevStats) GetRxFifo

func (x *NetDevStats) GetRxFifo() uint64

func (*NetDevStats) GetRxFrame

func (x *NetDevStats) GetRxFrame() uint64

func (*NetDevStats) GetRxMulticast

func (x *NetDevStats) GetRxMulticast() uint64

func (*NetDevStats) GetRxPackets

func (x *NetDevStats) GetRxPackets() uint64

func (*NetDevStats) GetTxBytes

func (x *NetDevStats) GetTxBytes() uint64

func (*NetDevStats) GetTxCarrier

func (x *NetDevStats) GetTxCarrier() uint64

func (*NetDevStats) GetTxColls

func (x *NetDevStats) GetTxColls() uint64

func (*NetDevStats) GetTxCompressed

func (x *NetDevStats) GetTxCompressed() uint64

func (*NetDevStats) GetTxDrops

func (x *NetDevStats) GetTxDrops() uint64

func (*NetDevStats) GetTxErrors

func (x *NetDevStats) GetTxErrors() uint64

func (*NetDevStats) GetTxFifo

func (x *NetDevStats) GetTxFifo() uint64

func (*NetDevStats) GetTxPackets

func (x *NetDevStats) GetTxPackets() uint64

func (*NetDevStats) ProtoMessage

func (*NetDevStats) ProtoMessage()

func (*NetDevStats) ProtoReflect

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

func (*NetDevStats) Reset

func (x *NetDevStats) Reset()

func (*NetDevStats) String

func (x *NetDevStats) String() string

type NetworkMetrics

type NetworkMetrics struct {
	TxBps              float32 `protobuf:"fixed32,1,opt,name=txBps,proto3" json:"txBps,omitempty"` // last minute tx bps
	RxBps              float32 `protobuf:"fixed32,2,opt,name=rxBps,proto3" json:"rxBps,omitempty"` // last minute rx bps
	CountHourlyReset   bool    `protobuf:"varint,3,opt,name=countHourlyReset,proto3" json:"countHourlyReset,omitempty"`
	CountDailyReset    bool    `protobuf:"varint,4,opt,name=countDailyReset,proto3" json:"countDailyReset,omitempty"`
	CountMonthlyReset  bool    `protobuf:"varint,5,opt,name=countMonthlyReset,proto3" json:"countMonthlyReset,omitempty"`
	TxHourlyBytes      uint64  `protobuf:"varint,6,opt,name=txHourlyBytes,proto3" json:"txHourlyBytes,omitempty"` // total tx bytes
	RxHourlyBytes      uint64  `protobuf:"varint,7,opt,name=rxHourlyBytes,proto3" json:"rxHourlyBytes,omitempty"` // total rx bytes
	TxHourlyPkts       uint64  `protobuf:"varint,8,opt,name=txHourlyPkts,proto3" json:"txHourlyPkts,omitempty"`
	RxHourlyPkts       uint64  `protobuf:"varint,9,opt,name=rxHourlyPkts,proto3" json:"rxHourlyPkts,omitempty"`
	DroppedHourlyPkts  uint64  `protobuf:"varint,10,opt,name=droppedHourlyPkts,proto3" json:"droppedHourlyPkts,omitempty"`
	TxDailyBytes       uint64  `protobuf:"varint,11,opt,name=txDailyBytes,proto3" json:"txDailyBytes,omitempty"` // total tx bytes
	RxDailyBytes       uint64  `protobuf:"varint,12,opt,name=rxDailyBytes,proto3" json:"rxDailyBytes,omitempty"` // total rx bytes
	TxDailyPkts        uint64  `protobuf:"varint,13,opt,name=txDailyPkts,proto3" json:"txDailyPkts,omitempty"`
	RxDailyPkts        uint64  `protobuf:"varint,14,opt,name=rxDailyPkts,proto3" json:"rxDailyPkts,omitempty"`
	DroppedDailyPkts   uint64  `protobuf:"varint,15,opt,name=droppedDailyPkts,proto3" json:"droppedDailyPkts,omitempty"`
	TxMonthlyBytes     uint64  `protobuf:"varint,16,opt,name=txMonthlyBytes,proto3" json:"txMonthlyBytes,omitempty"` // total tx bytes
	RxMonthlyBytes     uint64  `protobuf:"varint,17,opt,name=rxMonthlyBytes,proto3" json:"rxMonthlyBytes,omitempty"` // total rx bytes
	TxMonthlyPkts      uint64  `protobuf:"varint,18,opt,name=txMonthlyPkts,proto3" json:"txMonthlyPkts,omitempty"`
	RxMonthlyPkts      uint64  `protobuf:"varint,19,opt,name=rxMonthlyPkts,proto3" json:"rxMonthlyPkts,omitempty"`
	DroppedMonthlyPkts uint64  `protobuf:"varint,20,opt,name=droppedMonthlyPkts,proto3" json:"droppedMonthlyPkts,omitempty"`
	TxTotalBytes       uint64  `protobuf:"varint,21,opt,name=txTotalBytes,proto3" json:"txTotalBytes,omitempty"` // monthly tx bytes
	RxTotalBytes       uint64  `protobuf:"varint,22,opt,name=rxTotalBytes,proto3" json:"rxTotalBytes,omitempty"` // monthly rx bytes
	TxTotalPkts        uint64  `protobuf:"varint,23,opt,name=txTotalPkts,proto3" json:"txTotalPkts,omitempty"`
	RxTotalPkts        uint64  `protobuf:"varint,24,opt,name=rxTotalPkts,proto3" json:"rxTotalPkts,omitempty"`
	DroppedPkts        uint64  `protobuf:"varint,25,opt,name=droppedPkts,proto3" json:"droppedPkts,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkMetrics) Descriptor deprecated

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

Deprecated: Use NetworkMetrics.ProtoReflect.Descriptor instead.

func (*NetworkMetrics) GetCountDailyReset

func (x *NetworkMetrics) GetCountDailyReset() bool

func (*NetworkMetrics) GetCountHourlyReset

func (x *NetworkMetrics) GetCountHourlyReset() bool

func (*NetworkMetrics) GetCountMonthlyReset

func (x *NetworkMetrics) GetCountMonthlyReset() bool

func (*NetworkMetrics) GetDroppedDailyPkts

func (x *NetworkMetrics) GetDroppedDailyPkts() uint64

func (*NetworkMetrics) GetDroppedHourlyPkts

func (x *NetworkMetrics) GetDroppedHourlyPkts() uint64

func (*NetworkMetrics) GetDroppedMonthlyPkts

func (x *NetworkMetrics) GetDroppedMonthlyPkts() uint64

func (*NetworkMetrics) GetDroppedPkts

func (x *NetworkMetrics) GetDroppedPkts() uint64

func (*NetworkMetrics) GetRxBps

func (x *NetworkMetrics) GetRxBps() float32

func (*NetworkMetrics) GetRxDailyBytes

func (x *NetworkMetrics) GetRxDailyBytes() uint64

func (*NetworkMetrics) GetRxDailyPkts

func (x *NetworkMetrics) GetRxDailyPkts() uint64

func (*NetworkMetrics) GetRxHourlyBytes

func (x *NetworkMetrics) GetRxHourlyBytes() uint64

func (*NetworkMetrics) GetRxHourlyPkts

func (x *NetworkMetrics) GetRxHourlyPkts() uint64

func (*NetworkMetrics) GetRxMonthlyBytes

func (x *NetworkMetrics) GetRxMonthlyBytes() uint64

func (*NetworkMetrics) GetRxMonthlyPkts

func (x *NetworkMetrics) GetRxMonthlyPkts() uint64

func (*NetworkMetrics) GetRxTotalBytes

func (x *NetworkMetrics) GetRxTotalBytes() uint64

func (*NetworkMetrics) GetRxTotalPkts

func (x *NetworkMetrics) GetRxTotalPkts() uint64

func (*NetworkMetrics) GetTxBps

func (x *NetworkMetrics) GetTxBps() float32

func (*NetworkMetrics) GetTxDailyBytes

func (x *NetworkMetrics) GetTxDailyBytes() uint64

func (*NetworkMetrics) GetTxDailyPkts

func (x *NetworkMetrics) GetTxDailyPkts() uint64

func (*NetworkMetrics) GetTxHourlyBytes

func (x *NetworkMetrics) GetTxHourlyBytes() uint64

func (*NetworkMetrics) GetTxHourlyPkts

func (x *NetworkMetrics) GetTxHourlyPkts() uint64

func (*NetworkMetrics) GetTxMonthlyBytes

func (x *NetworkMetrics) GetTxMonthlyBytes() uint64

func (*NetworkMetrics) GetTxMonthlyPkts

func (x *NetworkMetrics) GetTxMonthlyPkts() uint64

func (*NetworkMetrics) GetTxTotalBytes

func (x *NetworkMetrics) GetTxTotalBytes() uint64

func (*NetworkMetrics) GetTxTotalPkts

func (x *NetworkMetrics) GetTxTotalPkts() uint64

func (*NetworkMetrics) ProtoMessage

func (*NetworkMetrics) ProtoMessage()

func (*NetworkMetrics) ProtoReflect

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

func (*NetworkMetrics) Reset

func (x *NetworkMetrics) Reset()

func (*NetworkMetrics) String

func (x *NetworkMetrics) String() string

type NetworkStats

type NetworkStats struct {
	Prev map[string]*NetDevStats `` // map[iface]*NetDevStats
	/* 149-byte string literal not displayed */
	Stats map[string]*NetDevStats `` // map[iface]*NetDevStats
	/* 151-byte string literal not displayed */
	Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkStats) Descriptor deprecated

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

Deprecated: Use NetworkStats.ProtoReflect.Descriptor instead.

func (*NetworkStats) GetPrev

func (x *NetworkStats) GetPrev() map[string]*NetDevStats

func (*NetworkStats) GetStats

func (x *NetworkStats) GetStats() map[string]*NetDevStats

func (*NetworkStats) GetTimestamp

func (x *NetworkStats) GetTimestamp() int64

func (*NetworkStats) ProtoMessage

func (*NetworkStats) ProtoMessage()

func (*NetworkStats) ProtoReflect

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

func (*NetworkStats) Reset

func (x *NetworkStats) Reset()

func (*NetworkStats) String

func (x *NetworkStats) String() string

type RelayMetrics

type RelayMetrics struct {
	Connections int32 `protobuf:"varint,1,opt,name=connections,proto3" json:"connections,omitempty"`
	// contains filtered or unexported fields
}

func (*RelayMetrics) Descriptor deprecated

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

Deprecated: Use RelayMetrics.ProtoReflect.Descriptor instead.

func (*RelayMetrics) GetConnections

func (x *RelayMetrics) GetConnections() int32

func (*RelayMetrics) ProtoMessage

func (*RelayMetrics) ProtoMessage()

func (*RelayMetrics) ProtoReflect

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

func (*RelayMetrics) Reset

func (x *RelayMetrics) Reset()

func (*RelayMetrics) String

func (x *RelayMetrics) String() string

Jump to

Keyboard shortcuts

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