sender

package
v0.0.0-...-e70f483 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package sender provides a wrapper around the sender.Sender to send network device configuration data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NCMSender

type NCMSender struct {
	Sender sender.Sender
	// contains filtered or unexported fields
}

NCMSender is a wrapper around the sender.Sender to send network device configuration data

func NewNCMSender

func NewNCMSender(sender sender.Sender, namespace string, clock clock.Clock) *NCMSender

NewNCMSender creates a new NCMSender

func (*NCMSender) Commit

func (s *NCMSender) Commit()

Commit commits the sender (important to ensure data is flushed/sent

func (*NCMSender) SendDeviceMetadata

func (s *NCMSender) SendDeviceMetadata(deviceID string, deviceIP string) error

SendDeviceMetadata sends device metadata to NDM intake

func (*NCMSender) SendMetricsFromExtractedMetadata

func (s *NCMSender) SendMetricsFromExtractedMetadata(metadata profile.ExtractedMetadata, configType types.ConfigType)

SendMetricsFromExtractedMetadata sends metrics from data extracted from the device config after processing

func (*NCMSender) SendNCMCheckMetrics

func (s *NCMSender) SendNCMCheckMetrics(startTime time.Time, lastCheckTime time.Time)

SendNCMCheckMetrics sends metrics about the check itself to Datadog

func (*NCMSender) SendNCMConfig

func (s *NCMSender) SendNCMConfig(payload ncmreport.NCMPayload) error

SendNCMConfig sends the network device configuration payload to event platform

func (*NCMSender) SetDeviceTags

func (s *NCMSender) SetDeviceTags(deviceTags []string)

SetDeviceTags sets the device tags for the sender to use for metrics submission

Jump to

Keyboard shortcuts

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