telemetry

package
v0.181.31 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(logger *zap.Logger, serverURL string, keyUID string, nodeName string, version string) *Client

func (*Client) CollectAndProcessTelemetry added in v0.180.31

func (c *Client) CollectAndProcessTelemetry(ctx context.Context)

func (*Client) ProcessReceivedEnvelope added in v0.180.31

func (c *Client) ProcessReceivedEnvelope(envelope *v2protocol.Envelope) *json.RawMessage

func (*Client) ProcessReceivedMessages added in v0.180.31

func (c *Client) ProcessReceivedMessages(receivedMessages ReceivedMessages) *json.RawMessage

func (*Client) ProcessSentEnvelope added in v0.180.31

func (c *Client) ProcessSentEnvelope(sentEnvelope wakuv2.SentEnvelope) *json.RawMessage

func (*Client) PushReceivedEnvelope added in v0.171.11

func (c *Client) PushReceivedEnvelope(receivedEnvelope *v2protocol.Envelope)

func (*Client) PushReceivedMessages

func (c *Client) PushReceivedMessages(receivedMessages ReceivedMessages)

func (*Client) PushSentEnvelope added in v0.180.31

func (c *Client) PushSentEnvelope(sentEnvelope wakuv2.SentEnvelope)

func (*Client) Start added in v0.180.31

func (c *Client) Start(ctx context.Context)

func (*Client) UpdateEnvelopeProcessingError added in v0.171.11

func (c *Client) UpdateEnvelopeProcessingError(shhMessage *types.Message, processingError error)

type ReceivedMessages added in v0.180.31

type ReceivedMessages struct {
	Filter     transport.Filter
	SSHMessage *types.Message
	Messages   []*v1protocol.StatusMessage
}

type TelemetryRequest added in v0.180.31

type TelemetryRequest struct {
	Id            int              `json:"id"`
	TelemetryType TelemetryType    `json:"telemetry_type"`
	TelemetryData *json.RawMessage `json:"telemetry_data"`
}

type TelemetryType added in v0.180.31

type TelemetryType string
const (
	ProtocolStatsMetric    TelemetryType = "ProtocolStats"
	ReceivedEnvelopeMetric TelemetryType = "ReceivedEnvelope"
	SentEnvelopeMetric     TelemetryType = "SentEnvelope"
	UpdateEnvelopeMetric   TelemetryType = "UpdateEnvelope"
	ReceivedMessagesMetric TelemetryType = "ReceivedMessages"
)

Jump to

Keyboard shortcuts

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