telemetry

package
v1.24.10 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PayloadType = struct {
	Init      string
	Update    string
	Terminate string
}{
	Init:      "INIT",
	Update:    "UPDATE",
	Terminate: "TERMINATE",
}

PayloadType is the discrete set of statuses which indicate the type of payload sent

Functions

This section is empty.

Types

type Payload

type Payload struct {
	MachineID  strfmt.UUID `json:"machineId"`
	Type       string      `json:"type"`
	Version    string      `json:"version"`
	Modules    string      `json:"modules"`
	NumObjects int64       `json:"objs"`
	OS         string      `json:"os"`
	Arch       string      `json:"arch"`
}

Payload is the object transmitted for telemetry purposes

type Telemeter

type Telemeter struct {
	// contains filtered or unexported fields
}

Telemeter is responsible for managing the transmission of telemetry data

func New

func New(nodesStatusGetter nodesStatusGetter, modulesProvider modulesProvider,
	logger logrus.FieldLogger,
) *Telemeter

New creates a new Telemeter instance

func (*Telemeter) Start

func (tel *Telemeter) Start(ctx context.Context) error

Start begins telemetry for the node

func (*Telemeter) Stop

func (tel *Telemeter) Stop(ctx context.Context) error

Stop shuts down the telemeter

Jump to

Keyboard shortcuts

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