metrics

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0, BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysisOutboundBytesEvent added in v0.9.0

type AnalysisOutboundBytesEvent struct {
	AmountBytes uint64
}

type BlockTipsEvent added in v0.9.2

type BlockTipsEvent struct{}

type CPUUsageEvent added in v0.9.0

type CPUUsageEvent struct {
	CPUPercent float64
}

type CollectionEvents

type CollectionEvents struct {
	// AnalysisOutboundBytes defines the local analysis outbound network traffic in bytes.
	AnalysisOutboundBytes *event.Event[*AnalysisOutboundBytesEvent]
	// CPUUsage defines the local CPU usage.
	CPUUsage *event.Event[*CPUUsageEvent]
	// MemUsage defines the local GoShimmer memory usage.
	MemUsage *event.Event[*MemUsageEvent]
	// TangleTimeSynced defines the local sync status event based on tangle time.
	TangleTimeSynced *event.Event[*TangleTimeSyncedEvent]
	// ValueTips defines the local value tips count event.
	ValueTips *event.Event[*ValueTipsEvent]
	// BlockTips defines the local block tips count event.
	BlockTips *event.Event[*BlockTipsEvent]
}

CollectionEvents defines the events fot the metrics package.

var Events *CollectionEvents

type MemUsageEvent added in v0.9.0

type MemUsageEvent struct {
	MemAllocBytes uint64
}

type TangleTimeSyncedEvent added in v0.9.0

type TangleTimeSyncedEvent struct{}

type ValueTipsEvent added in v0.9.0

type ValueTipsEvent struct{}

Jump to

Keyboard shortcuts

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