Documentation
¶
Index ¶
- Variables
- type EventsMarshaler
- type MetricSerializer
- type ProcessMessageBody
- type Serializer
- func (s *Serializer) SendAgentchecksMetadata(m marshaler.Marshaler) error
- func (s *Serializer) SendEvents(e EventsMarshaler) error
- func (s *Serializer) SendHostMetadata(m marshaler.Marshaler) error
- func (s *Serializer) SendJSONToV1Intake(data interface{}) error
- func (s *Serializer) SendMetadata(m marshaler.Marshaler) error
- func (s *Serializer) SendOrchestratorMetadata(msgs []ProcessMessageBody, hostName, clusterID, payloadType string) error
- func (s *Serializer) SendSeries(series marshaler.Marshaler) error
- func (s *Serializer) SendServiceChecks(sc marshaler.Marshaler) error
- func (s *Serializer) SendSketch(sketches marshaler.Marshaler) error
- func (s *Serializer) SendSummary(sketches marshaler.Marshaler) error
Constants ¶
This section is empty.
Variables ¶
var ( // AgentPayloadVersion is the versions of the agent-payload repository // used to serialize to protobuf AgentPayloadVersion string )
Functions ¶
This section is empty.
Types ¶
type EventsMarshaler ¶
EventsMarshaler handles two serialization logics.
type MetricSerializer ¶
type MetricSerializer interface { SendEvents(e EventsMarshaler) error SendServiceChecks(sc marshaler.Marshaler) error SendSeries(series marshaler.Marshaler) error SendSketch(sketches marshaler.Marshaler) error SendMetadata(m marshaler.Marshaler) error SendHostMetadata(m marshaler.Marshaler) error SendJSONToV1Intake(data interface{}) error SendOrchestratorMetadata(msgs []ProcessMessageBody, hostName, clusterID, payloadType string) error }
MetricSerializer represents the interface of method needed by the aggregator to serialize its data
type ProcessMessageBody ¶
type ProcessMessageBody = stubMessageBody
ProcessMessageBody is a type alias for processes proto message body this type alias allows to avoid importing the process agent payload proto in case it's not needed (dogstastd)
type Serializer ¶
Serializer serializes metrics to the correct format and routes the payloads to the correct endpoint in the Forwarder
func NewSerializer ¶
func NewSerializer(forwarder forwarder.Forwarder, orchestratorForwarder forwarder.Forwarder) *Serializer
NewSerializer returns a new Serializer initialized
func (*Serializer) SendAgentchecksMetadata ¶
func (s *Serializer) SendAgentchecksMetadata(m marshaler.Marshaler) error
SendAgentchecksMetadata serializes a metadata payload and sends it to the forwarder
func (*Serializer) SendEvents ¶
func (s *Serializer) SendEvents(e EventsMarshaler) error
SendEvents serializes a list of event and sends the payload to the forwarder
func (*Serializer) SendHostMetadata ¶
func (s *Serializer) SendHostMetadata(m marshaler.Marshaler) error
SendHostMetadata serializes a metadata payload and sends it to the forwarder
func (*Serializer) SendJSONToV1Intake ¶
func (s *Serializer) SendJSONToV1Intake(data interface{}) error
SendJSONToV1Intake serializes a payload and sends it to the forwarder. Some code sends arbitrary payload the v1 API.
func (*Serializer) SendMetadata ¶
func (s *Serializer) SendMetadata(m marshaler.Marshaler) error
SendMetadata serializes a metadata payload and sends it to the forwarder
func (*Serializer) SendOrchestratorMetadata ¶
func (s *Serializer) SendOrchestratorMetadata(msgs []ProcessMessageBody, hostName, clusterID, payloadType string) error
SendOrchestratorMetadata serializes & send orchestrator metadata payloads
func (*Serializer) SendSeries ¶
func (s *Serializer) SendSeries(series marshaler.Marshaler) error
SendSeries serializes a list of serviceChecks and sends the payload to the forwarder
func (*Serializer) SendServiceChecks ¶
func (s *Serializer) SendServiceChecks(sc marshaler.Marshaler) error
SendServiceChecks serializes a list of serviceChecks and sends the payload to the forwarder
func (*Serializer) SendSketch ¶
func (s *Serializer) SendSketch(sketches marshaler.Marshaler) error
SendSketch serializes a list of SketSeriesList and sends the payload to the forwarder
func (*Serializer) SendSummary ¶
func (s *Serializer) SendSummary(sketches marshaler.Marshaler) error
SendSummary serializes a list of SketSeriesList and sends the payload to the forwarder