metrics

package
v0.0.0-...-9b4e82f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnectiveCounter = &ConnectiveMetric{}
View Source
var Counter = MetricCounters{
	Object:       ObjectCounter,
	Update:       UpdateCounter,
	Connectivity: ConnectiveCounter,
}
View Source
var ObjectCounter = &ObjectMetric{}
View Source
var UpdateCounter = &ObjectMetric{}

Functions

func ClientConnect

func ClientConnect()

func ClientDisconnect

func ClientDisconnect()

func MessageRecieved

func MessageRecieved()

func MessageSent

func MessageSent()

func RecieveMessage

func RecieveMessage(size int)

func RunMetrics

func RunMetrics()

func SendMessage

func SendMessage(size int)

Types

type ConnectiveInnerMetrics

type ConnectiveInnerMetrics struct {
	NumberClients int64  `json:"num_clients"`
	TxCount       uint64 `json:"tx"`
	RxCount       uint64 `json:"rx"`
	TxSize        uint64 `json:"tx_size"`
	RxSize        uint64 `json:"rx_size"`
}

type ConnectiveMetric

type ConnectiveMetric struct {
	Total    ConnectiveInnerMetrics `json:"total"`
	Interval ConnectiveInnerMetrics `json:"interval"`
	// contains filtered or unexported fields
}

type InnerObjectMetric

type InnerObjectMetric struct {
	Portfolio     uint64 `json:"portfolio"`
	Stocks        uint64 `json:"stocks"`
	Ledger        uint64 `json:"ledger"`
	Users         uint64 `json:"users"`
	Records       uint64 `json:"records"`
	Notifications uint64 `json:"notifications"`
	Items         uint64 `json:"items"`
}

type MessageCount

type MessageCount struct {
	Tx uint32
	Rx uint32
}

type MetricCounters

type MetricCounters struct {
	Object       *ObjectMetric     `json:"object"`
	Update       *ObjectMetric     `json:"update"`
	Connectivity *ConnectiveMetric `json:"connectivity"`
}

type ObjectMetric

type ObjectMetric struct {
	Total        InnerObjectMetric `json:"total"`
	Interval     InnerObjectMetric `json:"interval"`
	LastInterval InnerObjectMetric `json:"-"`
}

Jump to

Keyboard shortcuts

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