clients1

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Gauge        = "gauge"
	Count        = "count"
	Rate         = "rate"
	Set          = "set"
	Histogram    = "histogram"
	Distribution = "distribution"
)
View Source
const (
	Emergency = "EMERGENCY"
	Error     = "ERROR"
	Warn      = "WARN"
	Info      = "INFO"
	Debug     = "DEBUG"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataDogLogClient

type DataDogLogClient struct {
	*rpcclient.RestClient
	// contains filtered or unexported fields
}

func NewDataDogLogClient

func NewDataDogLogClient(config *cconf.ConfigParams) *DataDogLogClient

func (*DataDogLogClient) Configure

func (c *DataDogLogClient) Configure(config *cconf.ConfigParams)

func (*DataDogLogClient) Open

func (c *DataDogLogClient) Open(correlationId string) error

func (*DataDogLogClient) SendLogs

func (c *DataDogLogClient) SendLogs(correlationId string, messages []DataDogLogMessage) error

func (*DataDogLogClient) SetReferences

func (c *DataDogLogClient) SetReferences(refs cref.IReferences)

type DataDogLogMessage

type DataDogLogMessage struct {
	Time         time.Time         `json:"time"`
	Tags         map[string]string `json:"tags"`
	Status       string            `json:"status"`
	Source       string            `json:"source"`
	Service      string            `json:"service"`
	Host         string            `json:"host"`
	Message      string            `json:"message"`
	LoggerName   string            `json:"logger_name"`
	ThreadName   string            `json:"thread_name"`
	ErrorMessage string            `json:"error_message"`
	ErrorKind    string            `json:"error_kind"`
	ErrorStack   string            `json:"error_stack"`
}

type DataDogMetric

type DataDogMetric struct {
	Metric   string               `json:"metric"`
	Service  string               `json:"service"`
	Host     string               `json:"host"`
	Tags     map[string]string    `json:"tags"`
	Type     string               `json:"type"`
	Interval int64                `json:"interval"`
	Points   []DataDogMetricPoint `json:"points"`
}

type DataDogMetricPoint

type DataDogMetricPoint struct {
	Time  time.Time `json:"time"`
	Value float64   `json:"value"`
}

type DataDogMetricsClient

type DataDogMetricsClient struct {
	*rpcclient.RestClient
	// contains filtered or unexported fields
}

func NewDataDogMetricsClient

func NewDataDogMetricsClient(config *cconf.ConfigParams) *DataDogMetricsClient

func (*DataDogMetricsClient) Configure

func (c *DataDogMetricsClient) Configure(config *cconf.ConfigParams)

func (*DataDogMetricsClient) Open

func (c *DataDogMetricsClient) Open(correlationId string) error

func (*DataDogMetricsClient) SendMetrics

func (c *DataDogMetricsClient) SendMetrics(correlationId string, metrics []DataDogMetric) error

func (*DataDogMetricsClient) SetReferences

func (c *DataDogMetricsClient) SetReferences(refs cref.IReferences)

Jump to

Keyboard shortcuts

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