Documentation ¶
Overview ¶
Package inventoryotelimpl implements a component to generate the 'datadog_agent' metadata payload for inventory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockModule ¶
MockModule defines the fx options for the mock component.
Usage:
fxutil.Test[dependencies]( t, inventoryotelimpl.MockModule(), )
Types ¶
type Payload ¶
type Payload struct { Hostname string `json:"hostname"` Timestamp int64 `json:"timestamp"` Metadata otelMetadata `json:"otel_metadata"` UUID string `json:"uuid"` }
Payload handles the JSON unmarshalling of the metadata payload
func (*Payload) MarshalJSON ¶
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.
Click to show internal directories.
Click to hide internal directories.