| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
package pmetric |
| 5 |
|
| 6 |
import ( |
| 7 |
"go.opentelemetry.io/collector/pdata/internal" |
| 8 |
) |
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
type AggregationTemporality int32 |
| 13 |
|
| 14 |
const ( |
| 15 |
|
| 16 |
AggregationTemporalityUnspecified = AggregationTemporality(internal.AggregationTemporality_AGGREGATION_TEMPORALITY_UNSPECIFIED) |
| 17 |
|
| 18 |
AggregationTemporalityDelta = AggregationTemporality(internal.AggregationTemporality_AGGREGATION_TEMPORALITY_DELTA) |
| 19 |
|
| 20 |
AggregationTemporalityCumulative = AggregationTemporality(internal.AggregationTemporality_AGGREGATION_TEMPORALITY_CUMULATIVE) |
| 21 |
) |
| 22 |
|
| 23 |
|
| 24 |
func (at AggregationTemporality) String() string { |
| 25 |
switch at { |
| 26 |
case AggregationTemporalityUnspecified: |
| 27 |
return "Unspecified" |
| 28 |
case AggregationTemporalityDelta: |
| 29 |
return "Delta" |
| 30 |
case AggregationTemporalityCumulative: |
| 31 |
return "Cumulative" |
| 32 |
} |
| 33 |
return "" |
| 34 |
} |