Documentation ¶
Index ¶
- Variables
- func CopyMetricDetails(from, to pmetric.Metric)
- func FilterAttrs(metric pmetric.Metric, filterAttrKeys []string)
- func GetSupportedAggregationFunctionsList() string
- func GroupDataPoints(metric pmetric.Metric, ag *AggGroups)
- func MergeDataPoints(to pmetric.Metric, aggType AggregationType, ag AggGroups)
- func RangeDataPointAttributes(metric pmetric.Metric, f func(pcommon.Map) bool)
- type AggGroups
- type AggregationType
Constants ¶
This section is empty.
Variables ¶
View Source
var AggregationTypes = []AggregationType{Sum, Mean, Min, Max, Median, Count}
Functions ¶
func CopyMetricDetails ¶
func FilterAttrs ¶
func GetSupportedAggregationFunctionsList ¶ added in v0.106.0
func GetSupportedAggregationFunctionsList() string
func GroupDataPoints ¶
func MergeDataPoints ¶
func MergeDataPoints(to pmetric.Metric, aggType AggregationType, ag AggGroups)
Types ¶
type AggregationType ¶
type AggregationType string
AggregationType is the enum to capture the three types of aggregation for the aggregation operation.
const ( // Sum indicates taking the sum of the aggregated data. Sum AggregationType = "sum" // Mean indicates taking the mean of the aggregated data. Mean AggregationType = "mean" // Min indicates taking the minimum of the aggregated data. Min AggregationType = "min" // Max indicates taking the max of the aggregated data. Max AggregationType = "max" // Median indicates taking the median of the aggregated data. Median AggregationType = "median" // Count indicates taking the count of the aggregated data. Count AggregationType = "count" )
func ConvertToAggregationFunction ¶ added in v0.106.0
func ConvertToAggregationFunction(str string) (AggregationType, error)
func (AggregationType) IsValid ¶
func (at AggregationType) IsValid() bool
Click to show internal directories.
Click to hide internal directories.