metricsender

package
v0.0.0-...-45a9bcf Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package metricsender holds the interface used to send Metrics with Agent Sender and Statsd sender

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricSender

type MetricSender interface {
	Gauge(metricName string, value float64, tags []string)
}

MetricSender is an interface used to send Metrics with Agent Sender and Statsd sender

func NewMetricSenderAgent

func NewMetricSenderAgent(sender sender.Sender) MetricSender

NewMetricSenderAgent creates a new agentMetricSender

func NewMetricSenderStatsd

func NewMetricSenderStatsd(statsdClient ddgostatsd.ClientInterface) MetricSender

NewMetricSenderStatsd constructor

Jump to

Keyboard shortcuts

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