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 ¶
- func CloneMetrics(md pdata.Metrics) pdata.Metrics
- func CloneMetricsDataOld(md consumerdata.MetricsData) consumerdata.MetricsData
- func MetricAndDataPointCount(md pdata.Metrics) (int, int)
- func MetricCount(md pdata.Metrics) int
- func MetricsFromInternalMetrics(md data.MetricData) pdata.Metrics
- func MetricsFromMetricsData(ocmds []consumerdata.MetricsData) pdata.Metrics
- func MetricsToInternalMetrics(md pdata.Metrics) data.MetricData
- func MetricsToMetricsData(md pdata.Metrics) []consumerdata.MetricsData
- func TimeseriesAndPointCount(md consumerdata.MetricsData) (int, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneMetrics ¶
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 MetricCount ¶
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.