Documentation ¶
Index ¶
- type NRLogEntry
- type NRMetric
- type NRMetricsCommon
- type NRMetricsPayload
- type NewRelicExporter
- func (e *NewRelicExporter) ExportEvents(ctx context.Context, events []model.Event) error
- func (e *NewRelicExporter) ExportLogs(ctx context.Context, logs []model.Log) error
- func (e *NewRelicExporter) ExportMetrics(ctx context.Context, metrics []model.Metric) error
- func (e *NewRelicExporter) GetId() string
- type NewRelicInfraExporter
- func (e *NewRelicInfraExporter) ExportEvents(ctx context.Context, events []model.Event) error
- func (e *NewRelicInfraExporter) ExportLogs(ctx context.Context, logs []model.Log) error
- func (e *NewRelicInfraExporter) ExportMetrics(ctx context.Context, metrics []model.Metric) error
- func (e *NewRelicInfraExporter) GetId() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NRLogEntry ¶
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 (*NewRelicExporter) ExportLogs ¶
func (*NewRelicExporter) ExportMetrics ¶
func (*NewRelicExporter) GetId ¶
func (e *NewRelicExporter) GetId() string
type NewRelicInfraExporter ¶
type NewRelicInfraExporter struct {
// contains filtered or unexported fields
}
func NewNewRelicInfraExporter ¶
func NewNewRelicInfraExporter(id string, li *integration.LabsIntegration) *NewRelicInfraExporter
func (*NewRelicInfraExporter) ExportEvents ¶
func (*NewRelicInfraExporter) ExportLogs ¶
func (*NewRelicInfraExporter) ExportMetrics ¶
func (*NewRelicInfraExporter) GetId ¶
func (e *NewRelicInfraExporter) GetId() string
Click to show internal directories.
Click to hide internal directories.