Documentation
¶
Overview ¶
Package haagentimpl implements the haagentimpl component interface
Package haagentimpl implements a component to generate the 'ha_agent_metadata' metadata payload for inventory.
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 *haAgentMetadata `json:"ha_agent_metadata"`
}
Payload handles the JSON unmarshalling of the metadata payload
func (*Payload) MarshalJSON ¶
MarshalJSON serialization a Payload to JSON
type Provides ¶
type Provides struct {
Comp haagent.Component
Provider runnerimpl.Provider
FlareProvider flaretypes.Provider
StatusHeaderProvider status.HeaderInformationProvider
Endpoint api.AgentEndpointProvider
}
Provides defines the output of the haagentimpl component
func NewComponent ¶
NewComponent creates a new haagentimpl component
type Requires ¶
type Requires struct {
Log log.Component
Config config.Component
Serializer serializer.MetricSerializer
HaAgent haagentcomp.Component
Hostname hostnameinterface.Component
}
Requires defines the dependencies for the haagentimpl component
Click to show internal directories.
Click to hide internal directories.