metrics

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 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 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]
	// MessageTips defines the local message tips count event.
	MessageTips *event.Event[*MessageTipsEvent]
}

CollectionEvents defines the events fot the metrics package.

var Events *CollectionEvents

type MemUsageEvent added in v0.9.0

type MemUsageEvent struct {
	MemAllocBytes uint64
}

type MessageTipsEvent added in v0.9.0

type MessageTipsEvent struct {
}

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