systemprobeimpl

package
v0.0.0-...-47294c1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package systemprobeimpl implements the systemprobe metadata providers interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payload

type Payload struct {
	Hostname  string                 `json:"hostname"`
	Timestamp int64                  `json:"timestamp"`
	Metadata  map[string]interface{} `json:"system_probe_metadata"`
}

Payload handles the JSON unmarshalling of the metadata payload

func (*Payload) MarshalJSON

func (p *Payload) MarshalJSON() ([]byte, error)

MarshalJSON serialization a Payload to JSON

func (*Payload) SplitPayload

func (p *Payload) SplitPayload(_ int) ([]marshaler.AbstractMarshaler, error)

SplitPayload implements marshaler.AbstractMarshaler#SplitPayload.

In this case, the payload can't be split any further.

type Provides

type Provides struct {
	Comp             systemprobemetadata.Component
	MetadataProvider runnerimpl.Provider
	FlareProvider    flaretypes.Provider
	Endpoint         api.AgentEndpointProvider
}

Provides defines the output of the systemprobe metadatacomponent

func NewComponent

func NewComponent(deps Requires) Provides

NewComponent creates a new systemprobe metadata Component

type Requires

type Requires struct {
	Log        log.Component
	Config     config.Component
	Serializer serializer.MetricSerializer
	// We need the authtoken to be created so we requires the comp. It will be used by configFetcher.
	AuthToken      authtoken.Component
	SysProbeConfig optional.Option[sysprobeconfig.Component]
}

Requires defines the dependencies for the systemprobe metadata component

Jump to

Keyboard shortcuts

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