exporters

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 14 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 {
	// contains filtered or unexported fields
}

func NewNewRelicExporter

func NewNewRelicExporter(
	id, integrationName, integrationId string,
	nrClient *nrClient.NewRelic,
	licenseKey string,
	region region.Name,
	dryRun bool,
) *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 NewNewRelicInfraExporter

func NewNewRelicInfraExporter(
	id, integrationName, integrationId string,
	i *nriSdk.Integration,
) *NewRelicInfraExporter

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

type NewRelicMetricsClient added in v2.1.0

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

func NewNewRelicMetricsClient added in v2.1.0

func NewNewRelicMetricsClient(
	integrationName, integrationId string,
	licenseKey string,
	region region.Name,
	dryRun bool,
) *NewRelicMetricsClient

func (*NewRelicMetricsClient) PostMetrics added in v2.1.0

func (c *NewRelicMetricsClient) PostMetrics(
	metrics []NRMetric,
) error

Jump to

Keyboard shortcuts

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