exporters

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NRLogEntry

type NRLogEntry struct {
	Message    string                 `json:"message"`
	Timestamp  int64                  `json:"timestamp"`
	Attributes map[string]interface{} `json:"attributes"`
}

type NRMetric

type NRMetric struct {
	Name       string                 `json:"name"`
	Value      interface{}            `json:"value,omitempty"`
	Type       string                 `json:"type,omitempty"`
	Timestamp  int64                  `json:"timestamp,omitempty"`
	Attributes map[string]interface{} `json:"attributes,omitempty"`
	IntervalMs float64                `json:"interval.ms,omitempty"`
}

NRMetric metric for New Relic Metrics Format

type NRMetricsCommon

type NRMetricsCommon struct {
	Attributes map[string]interface{} `json:"attributes"`
}

NRMetricsCommon common attributes to apply for New Relic Metrics Format

type NRMetricsPayload

type NRMetricsPayload struct {
	Common  NRMetricsCommon `json:"common"`
	Metrics []NRMetric      `json:"metrics"`
}

NRMetricsPayload represents New Relic Metrics Payload format https://docs.newrelic.com/docs/data-ingest-apis/get-data-new-relic/metric-api/report-metrics-metric-api#new-relic-guidelines

type NewRelicExporter

type NewRelicExporter struct {
	NrClient *nrClient.NewRelic
	// contains filtered or unexported fields
}

func NewNewRelicExporter

func NewNewRelicExporter(id string, li *integration.LabsIntegration) *NewRelicExporter

func (*NewRelicExporter) ExportEvents

func (e *NewRelicExporter) ExportEvents(
	ctx context.Context,
	events []model.Event,
) error

func (*NewRelicExporter) ExportLogs

func (e *NewRelicExporter) ExportLogs(
	ctx context.Context,
	logs []model.Log,
) error

func (*NewRelicExporter) ExportMetrics

func (e *NewRelicExporter) ExportMetrics(
	ctx context.Context,
	metrics []model.Metric,
) error

func (*NewRelicExporter) GetId

func (e *NewRelicExporter) GetId() string

type NewRelicInfraExporter

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

func (*NewRelicInfraExporter) ExportEvents

func (e *NewRelicInfraExporter) ExportEvents(
	ctx context.Context,
	events []model.Event,
) error

func (*NewRelicInfraExporter) ExportLogs

func (e *NewRelicInfraExporter) ExportLogs(
	ctx context.Context,
	logs []model.Log,
) error

func (*NewRelicInfraExporter) ExportMetrics

func (e *NewRelicInfraExporter) ExportMetrics(
	ctx context.Context,
	metrics []model.Metric,
) error

func (*NewRelicInfraExporter) GetId

func (e *NewRelicInfraExporter) GetId() string

Jump to

Keyboard shortcuts

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