pdatautil

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package pdatautil is a temporary package to allow components to transition to the new API. It will be removed when pdata.Metrics will be finalized.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneMetrics

func CloneMetrics(md pdata.Metrics) pdata.Metrics

CloneMetrics returns a clone of the given `pdata.Metrics`.

This is a temporary function that will be removed when the new internal pdata.Metrics will be finalized.

func CloneMetricsDataOld

func CloneMetricsDataOld(md consumerdata.MetricsData) consumerdata.MetricsData

CloneMetricsDataOld copied from processors.cloneMetricsDataOld

func MetricAndDataPointCount

func MetricAndDataPointCount(md pdata.Metrics) (int, int)

func MetricCount

func MetricCount(md pdata.Metrics) int

func MetricsFromInternalMetrics

func MetricsFromInternalMetrics(md data.MetricData) pdata.Metrics

MetricsFromMetricsData returns the `pdata.Metrics` representation of the `data.MetricData`.

This is a temporary function that will be removed when the new internal pdata.Metrics will be finalized.

func MetricsFromMetricsData

func MetricsFromMetricsData(ocmds []consumerdata.MetricsData) pdata.Metrics

MetricsFromMetricsData returns the `pdata.Metrics` representation of the `[]consumerdata.MetricsData`.

This is a temporary function that will be removed when the new internal pdata.Metrics will be finalized.

func MetricsToInternalMetrics

func MetricsToInternalMetrics(md pdata.Metrics) data.MetricData

MetricsToInternalMetrics returns the `data.MetricData` representation of the `pdata.Metrics`.

This is a temporary function that will be removed when the new internal pdata.Metrics will be finalized.

func MetricsToMetricsData

func MetricsToMetricsData(md pdata.Metrics) []consumerdata.MetricsData

MetricsToMetricsData returns the `[]consumerdata.MetricsData` representation of the `pdata.Metrics`.

This is a temporary function that will be removed when the new internal pdata.Metrics will be finalized.

func TimeseriesAndPointCount

func TimeseriesAndPointCount(md consumerdata.MetricsData) (int, int)

TimeseriesAndPointCount copied from exporterhelper.measureMetricsExport

Types

This section is empty.

Jump to

Keyboard shortcuts

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