@@ -18,7 +18,7 @@ export interface Attributes {
1818 *
1919 * null or undefined attribute values are invalid and will result in undefined behavior.
2020 */
21- export declare type AttributeValue = string | number | boolean | Array < null | undefined | string > | Array < null | undefined | number > | Array < null | undefined | boolean > ;
21+ export type AttributeValue = string | number | boolean | Array < null | undefined | string > | Array < null | undefined | number > | Array < null | undefined | boolean > ;
2222
2323/**
2424 * Defines High-Resolution Time.
@@ -32,7 +32,7 @@ export declare type AttributeValue = string | number | boolean | Array<null | un
3232 * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000.
3333 * This is represented in HrTime format as [1609504210, 150000000].
3434 */
35- export declare type HrTime = [ number , number ] ;
35+ export type HrTime = [ number , number ] ;
3636
3737/**
3838 * An instrumentation scope consists of the name and optional version
@@ -136,7 +136,7 @@ export interface ExponentialHistogramMetricData extends BaseMetricData {
136136/**
137137 * Represents an aggregated metric data.
138138 */
139- export declare type MetricData = SumMetricData | GaugeMetricData | HistogramMetricData | ExponentialHistogramMetricData ;
139+ export type MetricData = SumMetricData | GaugeMetricData | HistogramMetricData | ExponentialHistogramMetricData ;
140140export interface ScopeMetrics {
141141 scope : InstrumentationScope ;
142142 metrics : MetricData [ ] ;
@@ -145,7 +145,7 @@ export interface ScopeMetrics {
145145/**
146146 * The aggregated point data type.
147147 */
148- export declare enum DataPointType {
148+ export enum DataPointType {
149149 /**
150150 * A histogram data point contains a histogram statistics of collected
151151 * values with a list of explicit bucket boundaries and statistics such
@@ -199,17 +199,20 @@ export interface DataPoint<T> {
199199/**
200200 * Supported types of metric instruments.
201201 */
202- export declare enum InstrumentType {
202+ export enum InstrumentType {
203203 COUNTER = "COUNTER" ,
204204 HISTOGRAM = "HISTOGRAM" ,
205205 UP_DOWN_COUNTER = "UP_DOWN_COUNTER" ,
206206 OBSERVABLE_COUNTER = "OBSERVABLE_COUNTER" ,
207207 OBSERVABLE_GAUGE = "OBSERVABLE_GAUGE" ,
208- OBSERVABLE_UP_DOWN_COUNTER = "OBSERVABLE_UP_DOWN_COUNTER"
208+ OBSERVABLE_UP_DOWN_COUNTER = "OBSERVABLE_UP_DOWN_COUNTER" ,
209+
210+ // NEW
211+ TIME_SERIES = "TIME_SERIES"
209212}
210213
211214/** The Type of value. It describes how the data is reported. */
212- export declare enum ValueType {
215+ export enum ValueType {
213216 INT = 0 ,
214217 DOUBLE = 1
215218}
@@ -294,7 +297,7 @@ export interface ResourceMetrics {
294297 scopeMetrics : ScopeMetrics [ ] ;
295298}
296299
297- export declare enum ExportResultCode {
300+ export enum ExportResultCode {
298301 SUCCESS = 0 ,
299302 FAILED = 1
300303}
0 commit comments