Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) MakeInternalMetric ¶
func (c *Client) MakeInternalMetric(name, _type string, value uint64, timestamp int64) (metric.MetricKey, metric.MetricValue)
MakeInternalMetric creates a metric with the provided name, value and timestamp
func (*Client) PostLogs ¶
func (c *Client) PostLogs(logs []logs.LogMessage) uint64
PostLogs forwards the logs to datadog
func (*Client) PostMetrics ¶
func (c *Client) PostMetrics(metrics metric.MetricsMap) uint64
PostMetrics forwards the metrics to datadog
type FormatData ¶
type FormatData struct {
// contains filtered or unexported fields
}
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
func (Formatter) FormatLogs ¶
func (f Formatter) FormatLogs(maxPostBytes uint32, data []logs.LogMessage) []FormatData
func (Formatter) FormatMetrics ¶
func (f Formatter) FormatMetrics(prefix string, maxPostBytes uint32, data map[metric.MetricKey]metric.MetricValue) []FormatData
Click to show internal directories.
Click to hide internal directories.