telemetry

package
v1.25.31 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: BSD-3-Clause Imports: 19 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"`
	ObjectsCount     int64       `json:"objs"`
	OS               string      `json:"os"`
	Arch             string      `json:"arch"`
	UsedModules      []string    `json:"usedModules,omitempty"`
	CollectionsCount int         `json:"collectionsCount"`
}

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, schemaManager schemaManager,
	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