@viamrobotics/sdk 0.57.0 → 0.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +0 -5
  2. package/dist/api-version.d.ts +1 -1
  3. package/dist/app/data-client.d.ts +3 -1
  4. package/dist/audio-common.d.ts +1 -1
  5. package/dist/gen/app/v1/app_pb.d.ts +65 -0
  6. package/dist/gen/component/camera/v1/camera_pb.d.ts +8 -0
  7. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_connect.d.ts +44 -0
  8. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_pb.d.ts +135 -0
  9. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_connect.d.ts +44 -0
  10. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.d.ts +135 -0
  11. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +43 -0
  12. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +142 -0
  13. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_connect.d.ts +44 -0
  14. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_pb.d.ts +135 -0
  15. package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +322 -0
  16. package/dist/gen/opentelemetry/proto/logs/v1/logs_pb.d.ts +479 -0
  17. package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +1349 -0
  18. package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +890 -0
  19. package/dist/gen/opentelemetry/proto/resource/v1/resource_pb.d.ts +73 -0
  20. package/dist/gen/opentelemetry/proto/trace/v1/trace_pb.d.ts +683 -0
  21. package/dist/gen/robot/v1/robot_connect.d.ts +10 -1
  22. package/dist/gen/robot/v1/robot_pb.d.ts +44 -0
  23. package/dist/main.es.js +12232 -11862
  24. package/dist/main.umd.js +7 -7
  25. package/dist/robot/client.d.ts +20 -16
  26. package/dist/robot/robot.d.ts +19 -10
  27. package/dist/robot.d.ts +1 -1
  28. package/dist/services/motion/client.d.ts +1 -0
  29. package/dist/services/motion/motion.d.ts +1 -0
  30. package/package.json +1 -1
  31. package/dist/app/app-client.spec.d.ts +0 -1
  32. package/dist/app/billing-client.spec.d.ts +0 -1
  33. package/dist/app/data-client.spec.d.ts +0 -1
  34. package/dist/app/ml-training-client.spec.d.ts +0 -1
  35. package/dist/app/provisioning-client.spec.d.ts +0 -1
  36. package/dist/app/viam-client.spec.d.ts +0 -1
  37. package/dist/components/audio-in/client.spec.d.ts +0 -1
  38. package/dist/components/audio-out/client.spec.d.ts +0 -1
  39. package/dist/components/board/client.spec.d.ts +0 -1
  40. package/dist/components/input-controller/client.spec.d.ts +0 -1
  41. package/dist/components/movement-sensor/client.spec.d.ts +0 -1
  42. package/dist/components/power-sensor/client.spec.d.ts +0 -1
  43. package/dist/extra/stream/client.spec.d.ts +0 -1
  44. package/dist/services/discovery/client.spec.d.ts +0 -1
  45. package/dist/services/motion/client.spec.d.ts +0 -1
  46. package/dist/services/navigation/client.spec.d.ts +0 -1
  47. package/dist/services/slam/client.spec.d.ts +0 -1
  48. package/dist/services/vision/client.spec.d.ts +0 -1
  49. package/dist/services/world-state-store/client.spec.d.ts +0 -1
@@ -0,0 +1,1349 @@
1
+ // Copyright 2019, OpenTelemetry Authors
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.10.0
16
+ // @generated from file opentelemetry/proto/metrics/v1/metrics.proto (package opentelemetry.proto.metrics.v1, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
+ import { Message, proto3 } from "@bufbuild/protobuf";
22
+ import type { Resource } from "../../resource/v1/resource_pb.js";
23
+ import type { InstrumentationScope, KeyValue } from "../../common/v1/common_pb.js";
24
+
25
+ /**
26
+ * AggregationTemporality defines how a metric aggregator reports aggregated
27
+ * values. It describes how those values relate to the time interval over
28
+ * which they are aggregated.
29
+ *
30
+ * @generated from enum opentelemetry.proto.metrics.v1.AggregationTemporality
31
+ */
32
+ export declare enum AggregationTemporality {
33
+ /**
34
+ * UNSPECIFIED is the default AggregationTemporality, it MUST not be used.
35
+ *
36
+ * @generated from enum value: AGGREGATION_TEMPORALITY_UNSPECIFIED = 0;
37
+ */
38
+ UNSPECIFIED = 0,
39
+
40
+ /**
41
+ * DELTA is an AggregationTemporality for a metric aggregator which reports
42
+ * changes since last report time. Successive metrics contain aggregation of
43
+ * values from continuous and non-overlapping intervals.
44
+ *
45
+ * The values for a DELTA metric are based only on the time interval
46
+ * associated with one measurement cycle. There is no dependency on
47
+ * previous measurements like is the case for CUMULATIVE metrics.
48
+ *
49
+ * For example, consider a system measuring the number of requests that
50
+ * it receives and reports the sum of these requests every second as a
51
+ * DELTA metric:
52
+ *
53
+ * 1. The system starts receiving at time=t_0.
54
+ * 2. A request is received, the system measures 1 request.
55
+ * 3. A request is received, the system measures 1 request.
56
+ * 4. A request is received, the system measures 1 request.
57
+ * 5. The 1 second collection cycle ends. A metric is exported for the
58
+ * number of requests received over the interval of time t_0 to
59
+ * t_0+1 with a value of 3.
60
+ * 6. A request is received, the system measures 1 request.
61
+ * 7. A request is received, the system measures 1 request.
62
+ * 8. The 1 second collection cycle ends. A metric is exported for the
63
+ * number of requests received over the interval of time t_0+1 to
64
+ * t_0+2 with a value of 2.
65
+ *
66
+ * @generated from enum value: AGGREGATION_TEMPORALITY_DELTA = 1;
67
+ */
68
+ DELTA = 1,
69
+
70
+ /**
71
+ * CUMULATIVE is an AggregationTemporality for a metric aggregator which
72
+ * reports changes since a fixed start time. This means that current values
73
+ * of a CUMULATIVE metric depend on all previous measurements since the
74
+ * start time. Because of this, the sender is required to retain this state
75
+ * in some form. If this state is lost or invalidated, the CUMULATIVE metric
76
+ * values MUST be reset and a new fixed start time following the last
77
+ * reported measurement time sent MUST be used.
78
+ *
79
+ * For example, consider a system measuring the number of requests that
80
+ * it receives and reports the sum of these requests every second as a
81
+ * CUMULATIVE metric:
82
+ *
83
+ * 1. The system starts receiving at time=t_0.
84
+ * 2. A request is received, the system measures 1 request.
85
+ * 3. A request is received, the system measures 1 request.
86
+ * 4. A request is received, the system measures 1 request.
87
+ * 5. The 1 second collection cycle ends. A metric is exported for the
88
+ * number of requests received over the interval of time t_0 to
89
+ * t_0+1 with a value of 3.
90
+ * 6. A request is received, the system measures 1 request.
91
+ * 7. A request is received, the system measures 1 request.
92
+ * 8. The 1 second collection cycle ends. A metric is exported for the
93
+ * number of requests received over the interval of time t_0 to
94
+ * t_0+2 with a value of 5.
95
+ * 9. The system experiences a fault and loses state.
96
+ * 10. The system recovers and resumes receiving at time=t_1.
97
+ * 11. A request is received, the system measures 1 request.
98
+ * 12. The 1 second collection cycle ends. A metric is exported for the
99
+ * number of requests received over the interval of time t_1 to
100
+ * t_0+1 with a value of 1.
101
+ *
102
+ * Note: Even though, when reporting changes since last report time, using
103
+ * CUMULATIVE is valid, it is not recommended. This may cause problems for
104
+ * systems that do not use start_time to determine when the aggregation
105
+ * value was reset (e.g. Prometheus).
106
+ *
107
+ * @generated from enum value: AGGREGATION_TEMPORALITY_CUMULATIVE = 2;
108
+ */
109
+ CUMULATIVE = 2,
110
+ }
111
+
112
+ /**
113
+ * DataPointFlags is defined as a protobuf 'uint32' type and is to be used as a
114
+ * bit-field representing 32 distinct boolean flags. Each flag defined in this
115
+ * enum is a bit-mask. To test the presence of a single flag in the flags of
116
+ * a data point, for example, use an expression like:
117
+ *
118
+ * (point.flags & DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK) == DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK
119
+ *
120
+ *
121
+ * @generated from enum opentelemetry.proto.metrics.v1.DataPointFlags
122
+ */
123
+ export declare enum DataPointFlags {
124
+ /**
125
+ * The zero value for the enum. Should not be used for comparisons.
126
+ * Instead use bitwise "and" with the appropriate mask as shown above.
127
+ *
128
+ * @generated from enum value: DATA_POINT_FLAGS_DO_NOT_USE = 0;
129
+ */
130
+ DO_NOT_USE = 0,
131
+
132
+ /**
133
+ * This DataPoint is valid but has no recorded value. This value
134
+ * SHOULD be used to reflect explicitly missing data in a series, as
135
+ * for an equivalent to the Prometheus "staleness marker".
136
+ *
137
+ * @generated from enum value: DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK = 1;
138
+ */
139
+ NO_RECORDED_VALUE_MASK = 1,
140
+ }
141
+
142
+ /**
143
+ * MetricsData represents the metrics data that can be stored in a persistent
144
+ * storage, OR can be embedded by other protocols that transfer OTLP metrics
145
+ * data but do not implement the OTLP protocol.
146
+ *
147
+ * MetricsData
148
+ * └─── ResourceMetrics
149
+ * ├── Resource
150
+ * ├── SchemaURL
151
+ * └── ScopeMetrics
152
+ * ├── Scope
153
+ * ├── SchemaURL
154
+ * └── Metric
155
+ * ├── Name
156
+ * ├── Description
157
+ * ├── Unit
158
+ * └── data
159
+ * ├── Gauge
160
+ * ├── Sum
161
+ * ├── Histogram
162
+ * ├── ExponentialHistogram
163
+ * └── Summary
164
+ *
165
+ * The main difference between this message and collector protocol is that
166
+ * in this message there will not be any "control" or "metadata" specific to
167
+ * OTLP protocol.
168
+ *
169
+ * When new fields are added into this message, the OTLP request MUST be updated
170
+ * as well.
171
+ *
172
+ * @generated from message opentelemetry.proto.metrics.v1.MetricsData
173
+ */
174
+ export declare class MetricsData extends Message<MetricsData> {
175
+ /**
176
+ * An array of ResourceMetrics.
177
+ * For data coming from a single resource this array will typically contain
178
+ * one element. Intermediary nodes that receive data from multiple origins
179
+ * typically batch the data before forwarding further and in that case this
180
+ * array will contain multiple elements.
181
+ *
182
+ * @generated from field: repeated opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1;
183
+ */
184
+ resourceMetrics: ResourceMetrics[];
185
+
186
+ constructor(data?: PartialMessage<MetricsData>);
187
+
188
+ static readonly runtime: typeof proto3;
189
+ static readonly typeName = "opentelemetry.proto.metrics.v1.MetricsData";
190
+ static readonly fields: FieldList;
191
+
192
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MetricsData;
193
+
194
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MetricsData;
195
+
196
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MetricsData;
197
+
198
+ static equals(a: MetricsData | PlainMessage<MetricsData> | undefined, b: MetricsData | PlainMessage<MetricsData> | undefined): boolean;
199
+ }
200
+
201
+ /**
202
+ * A collection of ScopeMetrics from a Resource.
203
+ *
204
+ * @generated from message opentelemetry.proto.metrics.v1.ResourceMetrics
205
+ */
206
+ export declare class ResourceMetrics extends Message<ResourceMetrics> {
207
+ /**
208
+ * The resource for the metrics in this message.
209
+ * If this field is not set then no resource info is known.
210
+ *
211
+ * @generated from field: opentelemetry.proto.resource.v1.Resource resource = 1;
212
+ */
213
+ resource?: Resource;
214
+
215
+ /**
216
+ * A list of metrics that originate from a resource.
217
+ *
218
+ * @generated from field: repeated opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
219
+ */
220
+ scopeMetrics: ScopeMetrics[];
221
+
222
+ /**
223
+ * The Schema URL, if known. This is the identifier of the Schema that the resource data
224
+ * is recorded in. Notably, the last part of the URL path is the version number of the
225
+ * schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
226
+ * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
227
+ * This schema_url applies to the data in the "resource" field. It does not apply
228
+ * to the data in the "scope_metrics" field which have their own schema_url field.
229
+ *
230
+ * @generated from field: string schema_url = 3;
231
+ */
232
+ schemaUrl: string;
233
+
234
+ constructor(data?: PartialMessage<ResourceMetrics>);
235
+
236
+ static readonly runtime: typeof proto3;
237
+ static readonly typeName = "opentelemetry.proto.metrics.v1.ResourceMetrics";
238
+ static readonly fields: FieldList;
239
+
240
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResourceMetrics;
241
+
242
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResourceMetrics;
243
+
244
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResourceMetrics;
245
+
246
+ static equals(a: ResourceMetrics | PlainMessage<ResourceMetrics> | undefined, b: ResourceMetrics | PlainMessage<ResourceMetrics> | undefined): boolean;
247
+ }
248
+
249
+ /**
250
+ * A collection of Metrics produced by an Scope.
251
+ *
252
+ * @generated from message opentelemetry.proto.metrics.v1.ScopeMetrics
253
+ */
254
+ export declare class ScopeMetrics extends Message<ScopeMetrics> {
255
+ /**
256
+ * The instrumentation scope information for the metrics in this message.
257
+ * Semantically when InstrumentationScope isn't set, it is equivalent with
258
+ * an empty instrumentation scope name (unknown).
259
+ *
260
+ * @generated from field: opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
261
+ */
262
+ scope?: InstrumentationScope;
263
+
264
+ /**
265
+ * A list of metrics that originate from an instrumentation library.
266
+ *
267
+ * @generated from field: repeated opentelemetry.proto.metrics.v1.Metric metrics = 2;
268
+ */
269
+ metrics: Metric[];
270
+
271
+ /**
272
+ * The Schema URL, if known. This is the identifier of the Schema that the metric data
273
+ * is recorded in. Notably, the last part of the URL path is the version number of the
274
+ * schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
275
+ * https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
276
+ * This schema_url applies to the data in the "scope" field and all metrics in the
277
+ * "metrics" field.
278
+ *
279
+ * @generated from field: string schema_url = 3;
280
+ */
281
+ schemaUrl: string;
282
+
283
+ constructor(data?: PartialMessage<ScopeMetrics>);
284
+
285
+ static readonly runtime: typeof proto3;
286
+ static readonly typeName = "opentelemetry.proto.metrics.v1.ScopeMetrics";
287
+ static readonly fields: FieldList;
288
+
289
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ScopeMetrics;
290
+
291
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ScopeMetrics;
292
+
293
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ScopeMetrics;
294
+
295
+ static equals(a: ScopeMetrics | PlainMessage<ScopeMetrics> | undefined, b: ScopeMetrics | PlainMessage<ScopeMetrics> | undefined): boolean;
296
+ }
297
+
298
+ /**
299
+ * Defines a Metric which has one or more timeseries. The following is a
300
+ * brief summary of the Metric data model. For more details, see:
301
+ *
302
+ * https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/data-model.md
303
+ *
304
+ * The data model and relation between entities is shown in the
305
+ * diagram below. Here, "DataPoint" is the term used to refer to any
306
+ * one of the specific data point value types, and "points" is the term used
307
+ * to refer to any one of the lists of points contained in the Metric.
308
+ *
309
+ * - Metric is composed of a metadata and data.
310
+ * - Metadata part contains a name, description, unit.
311
+ * - Data is one of the possible types (Sum, Gauge, Histogram, Summary).
312
+ * - DataPoint contains timestamps, attributes, and one of the possible value type
313
+ * fields.
314
+ *
315
+ * Metric
316
+ * +------------+
317
+ * |name |
318
+ * |description |
319
+ * |unit | +------------------------------------+
320
+ * |data |---> |Gauge, Sum, Histogram, Summary, ... |
321
+ * +------------+ +------------------------------------+
322
+ *
323
+ * Data [One of Gauge, Sum, Histogram, Summary, ...]
324
+ * +-----------+
325
+ * |... | // Metadata about the Data.
326
+ * |points |--+
327
+ * +-----------+ |
328
+ * | +---------------------------+
329
+ * | |DataPoint 1 |
330
+ * v |+------+------+ +------+ |
331
+ * +-----+ ||label |label |...|label | |
332
+ * | 1 |-->||value1|value2|...|valueN| |
333
+ * +-----+ |+------+------+ +------+ |
334
+ * | . | |+-----+ |
335
+ * | . | ||value| |
336
+ * | . | |+-----+ |
337
+ * | . | +---------------------------+
338
+ * | . | .
339
+ * | . | .
340
+ * | . | .
341
+ * | . | +---------------------------+
342
+ * | . | |DataPoint M |
343
+ * +-----+ |+------+------+ +------+ |
344
+ * | M |-->||label |label |...|label | |
345
+ * +-----+ ||value1|value2|...|valueN| |
346
+ * |+------+------+ +------+ |
347
+ * |+-----+ |
348
+ * ||value| |
349
+ * |+-----+ |
350
+ * +---------------------------+
351
+ *
352
+ * Each distinct type of DataPoint represents the output of a specific
353
+ * aggregation function, the result of applying the DataPoint's
354
+ * associated function of to one or more measurements.
355
+ *
356
+ * All DataPoint types have three common fields:
357
+ * - Attributes includes key-value pairs associated with the data point
358
+ * - TimeUnixNano is required, set to the end time of the aggregation
359
+ * - StartTimeUnixNano is optional, but strongly encouraged for DataPoints
360
+ * having an AggregationTemporality field, as discussed below.
361
+ *
362
+ * Both TimeUnixNano and StartTimeUnixNano values are expressed as
363
+ * UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
364
+ *
365
+ * # TimeUnixNano
366
+ *
367
+ * This field is required, having consistent interpretation across
368
+ * DataPoint types. TimeUnixNano is the moment corresponding to when
369
+ * the data point's aggregate value was captured.
370
+ *
371
+ * Data points with the 0 value for TimeUnixNano SHOULD be rejected
372
+ * by consumers.
373
+ *
374
+ * # StartTimeUnixNano
375
+ *
376
+ * StartTimeUnixNano in general allows detecting when a sequence of
377
+ * observations is unbroken. This field indicates to consumers the
378
+ * start time for points with cumulative and delta
379
+ * AggregationTemporality, and it should be included whenever possible
380
+ * to support correct rate calculation. Although it may be omitted
381
+ * when the start time is truly unknown, setting StartTimeUnixNano is
382
+ * strongly encouraged.
383
+ *
384
+ * @generated from message opentelemetry.proto.metrics.v1.Metric
385
+ */
386
+ export declare class Metric extends Message<Metric> {
387
+ /**
388
+ * The name of the metric.
389
+ *
390
+ * @generated from field: string name = 1;
391
+ */
392
+ name: string;
393
+
394
+ /**
395
+ * A description of the metric, which can be used in documentation.
396
+ *
397
+ * @generated from field: string description = 2;
398
+ */
399
+ description: string;
400
+
401
+ /**
402
+ * The unit in which the metric value is reported. Follows the format
403
+ * described by https://unitsofmeasure.org/ucum.html.
404
+ *
405
+ * @generated from field: string unit = 3;
406
+ */
407
+ unit: string;
408
+
409
+ /**
410
+ * Data determines the aggregation type (if any) of the metric, what is the
411
+ * reported value type for the data points, as well as the relatationship to
412
+ * the time interval over which they are reported.
413
+ *
414
+ * @generated from oneof opentelemetry.proto.metrics.v1.Metric.data
415
+ */
416
+ data: {
417
+ /**
418
+ * @generated from field: opentelemetry.proto.metrics.v1.Gauge gauge = 5;
419
+ */
420
+ value: Gauge;
421
+ case: "gauge";
422
+ } | {
423
+ /**
424
+ * @generated from field: opentelemetry.proto.metrics.v1.Sum sum = 7;
425
+ */
426
+ value: Sum;
427
+ case: "sum";
428
+ } | {
429
+ /**
430
+ * @generated from field: opentelemetry.proto.metrics.v1.Histogram histogram = 9;
431
+ */
432
+ value: Histogram;
433
+ case: "histogram";
434
+ } | {
435
+ /**
436
+ * @generated from field: opentelemetry.proto.metrics.v1.ExponentialHistogram exponential_histogram = 10;
437
+ */
438
+ value: ExponentialHistogram;
439
+ case: "exponentialHistogram";
440
+ } | {
441
+ /**
442
+ * @generated from field: opentelemetry.proto.metrics.v1.Summary summary = 11;
443
+ */
444
+ value: Summary;
445
+ case: "summary";
446
+ } | { case: undefined; value?: undefined };
447
+
448
+ /**
449
+ * Additional metadata attributes that describe the metric. [Optional].
450
+ * Attributes are non-identifying.
451
+ * Consumers SHOULD NOT need to be aware of these attributes.
452
+ * These attributes MAY be used to encode information allowing
453
+ * for lossless roundtrip translation to / from another data model.
454
+ * Attribute keys MUST be unique (it is not allowed to have more than one
455
+ * attribute with the same key).
456
+ * The behavior of software that receives duplicated keys can be unpredictable.
457
+ *
458
+ * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue metadata = 12;
459
+ */
460
+ metadata: KeyValue[];
461
+
462
+ constructor(data?: PartialMessage<Metric>);
463
+
464
+ static readonly runtime: typeof proto3;
465
+ static readonly typeName = "opentelemetry.proto.metrics.v1.Metric";
466
+ static readonly fields: FieldList;
467
+
468
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Metric;
469
+
470
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Metric;
471
+
472
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Metric;
473
+
474
+ static equals(a: Metric | PlainMessage<Metric> | undefined, b: Metric | PlainMessage<Metric> | undefined): boolean;
475
+ }
476
+
477
+ /**
478
+ * Gauge represents the type of a scalar metric that always exports the
479
+ * "current value" for every data point. It should be used for an "unknown"
480
+ * aggregation.
481
+ *
482
+ * A Gauge does not support different aggregation temporalities. Given the
483
+ * aggregation is unknown, points cannot be combined using the same
484
+ * aggregation, regardless of aggregation temporalities. Therefore,
485
+ * AggregationTemporality is not included. Consequently, this also means
486
+ * "StartTimeUnixNano" is ignored for all data points.
487
+ *
488
+ * @generated from message opentelemetry.proto.metrics.v1.Gauge
489
+ */
490
+ export declare class Gauge extends Message<Gauge> {
491
+ /**
492
+ * The time series data points.
493
+ * Note: Multiple time series may be included (same timestamp, different attributes).
494
+ *
495
+ * @generated from field: repeated opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1;
496
+ */
497
+ dataPoints: NumberDataPoint[];
498
+
499
+ constructor(data?: PartialMessage<Gauge>);
500
+
501
+ static readonly runtime: typeof proto3;
502
+ static readonly typeName = "opentelemetry.proto.metrics.v1.Gauge";
503
+ static readonly fields: FieldList;
504
+
505
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Gauge;
506
+
507
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Gauge;
508
+
509
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Gauge;
510
+
511
+ static equals(a: Gauge | PlainMessage<Gauge> | undefined, b: Gauge | PlainMessage<Gauge> | undefined): boolean;
512
+ }
513
+
514
+ /**
515
+ * Sum represents the type of a scalar metric that is calculated as a sum of all
516
+ * reported measurements over a time interval.
517
+ *
518
+ * @generated from message opentelemetry.proto.metrics.v1.Sum
519
+ */
520
+ export declare class Sum extends Message<Sum> {
521
+ /**
522
+ * The time series data points.
523
+ * Note: Multiple time series may be included (same timestamp, different attributes).
524
+ *
525
+ * @generated from field: repeated opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1;
526
+ */
527
+ dataPoints: NumberDataPoint[];
528
+
529
+ /**
530
+ * aggregation_temporality describes if the aggregator reports delta changes
531
+ * since last report time, or cumulative changes since a fixed start time.
532
+ *
533
+ * @generated from field: opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2;
534
+ */
535
+ aggregationTemporality: AggregationTemporality;
536
+
537
+ /**
538
+ * Represents whether the sum is monotonic.
539
+ *
540
+ * @generated from field: bool is_monotonic = 3;
541
+ */
542
+ isMonotonic: boolean;
543
+
544
+ constructor(data?: PartialMessage<Sum>);
545
+
546
+ static readonly runtime: typeof proto3;
547
+ static readonly typeName = "opentelemetry.proto.metrics.v1.Sum";
548
+ static readonly fields: FieldList;
549
+
550
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Sum;
551
+
552
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Sum;
553
+
554
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Sum;
555
+
556
+ static equals(a: Sum | PlainMessage<Sum> | undefined, b: Sum | PlainMessage<Sum> | undefined): boolean;
557
+ }
558
+
559
+ /**
560
+ * Histogram represents the type of a metric that is calculated by aggregating
561
+ * as a Histogram of all reported measurements over a time interval.
562
+ *
563
+ * @generated from message opentelemetry.proto.metrics.v1.Histogram
564
+ */
565
+ export declare class Histogram extends Message<Histogram> {
566
+ /**
567
+ * The time series data points.
568
+ * Note: Multiple time series may be included (same timestamp, different attributes).
569
+ *
570
+ * @generated from field: repeated opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1;
571
+ */
572
+ dataPoints: HistogramDataPoint[];
573
+
574
+ /**
575
+ * aggregation_temporality describes if the aggregator reports delta changes
576
+ * since last report time, or cumulative changes since a fixed start time.
577
+ *
578
+ * @generated from field: opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2;
579
+ */
580
+ aggregationTemporality: AggregationTemporality;
581
+
582
+ constructor(data?: PartialMessage<Histogram>);
583
+
584
+ static readonly runtime: typeof proto3;
585
+ static readonly typeName = "opentelemetry.proto.metrics.v1.Histogram";
586
+ static readonly fields: FieldList;
587
+
588
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Histogram;
589
+
590
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Histogram;
591
+
592
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Histogram;
593
+
594
+ static equals(a: Histogram | PlainMessage<Histogram> | undefined, b: Histogram | PlainMessage<Histogram> | undefined): boolean;
595
+ }
596
+
597
+ /**
598
+ * ExponentialHistogram represents the type of a metric that is calculated by aggregating
599
+ * as a ExponentialHistogram of all reported double measurements over a time interval.
600
+ *
601
+ * @generated from message opentelemetry.proto.metrics.v1.ExponentialHistogram
602
+ */
603
+ export declare class ExponentialHistogram extends Message<ExponentialHistogram> {
604
+ /**
605
+ * The time series data points.
606
+ * Note: Multiple time series may be included (same timestamp, different attributes).
607
+ *
608
+ * @generated from field: repeated opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint data_points = 1;
609
+ */
610
+ dataPoints: ExponentialHistogramDataPoint[];
611
+
612
+ /**
613
+ * aggregation_temporality describes if the aggregator reports delta changes
614
+ * since last report time, or cumulative changes since a fixed start time.
615
+ *
616
+ * @generated from field: opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2;
617
+ */
618
+ aggregationTemporality: AggregationTemporality;
619
+
620
+ constructor(data?: PartialMessage<ExponentialHistogram>);
621
+
622
+ static readonly runtime: typeof proto3;
623
+ static readonly typeName = "opentelemetry.proto.metrics.v1.ExponentialHistogram";
624
+ static readonly fields: FieldList;
625
+
626
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExponentialHistogram;
627
+
628
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExponentialHistogram;
629
+
630
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExponentialHistogram;
631
+
632
+ static equals(a: ExponentialHistogram | PlainMessage<ExponentialHistogram> | undefined, b: ExponentialHistogram | PlainMessage<ExponentialHistogram> | undefined): boolean;
633
+ }
634
+
635
+ /**
636
+ * Summary metric data are used to convey quantile summaries,
637
+ * a Prometheus (see: https://prometheus.io/docs/concepts/metric_types/#summary)
638
+ * and OpenMetrics (see: https://github.com/prometheus/OpenMetrics/blob/4dbf6075567ab43296eed941037c12951faafb92/protos/prometheus.proto#L45)
639
+ * data type. These data points cannot always be merged in a meaningful way.
640
+ * While they can be useful in some applications, histogram data points are
641
+ * recommended for new applications.
642
+ * Summary metrics do not have an aggregation temporality field. This is
643
+ * because the count and sum fields of a SummaryDataPoint are assumed to be
644
+ * cumulative values.
645
+ *
646
+ * @generated from message opentelemetry.proto.metrics.v1.Summary
647
+ */
648
+ export declare class Summary extends Message<Summary> {
649
+ /**
650
+ * The time series data points.
651
+ * Note: Multiple time series may be included (same timestamp, different attributes).
652
+ *
653
+ * @generated from field: repeated opentelemetry.proto.metrics.v1.SummaryDataPoint data_points = 1;
654
+ */
655
+ dataPoints: SummaryDataPoint[];
656
+
657
+ constructor(data?: PartialMessage<Summary>);
658
+
659
+ static readonly runtime: typeof proto3;
660
+ static readonly typeName = "opentelemetry.proto.metrics.v1.Summary";
661
+ static readonly fields: FieldList;
662
+
663
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Summary;
664
+
665
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Summary;
666
+
667
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Summary;
668
+
669
+ static equals(a: Summary | PlainMessage<Summary> | undefined, b: Summary | PlainMessage<Summary> | undefined): boolean;
670
+ }
671
+
672
+ /**
673
+ * NumberDataPoint is a single data point in a timeseries that describes the
674
+ * time-varying scalar value of a metric.
675
+ *
676
+ * @generated from message opentelemetry.proto.metrics.v1.NumberDataPoint
677
+ */
678
+ export declare class NumberDataPoint extends Message<NumberDataPoint> {
679
+ /**
680
+ * The set of key/value pairs that uniquely identify the timeseries from
681
+ * where this point belongs. The list may be empty (may contain 0 elements).
682
+ * Attribute keys MUST be unique (it is not allowed to have more than one
683
+ * attribute with the same key).
684
+ * The behavior of software that receives duplicated keys can be unpredictable.
685
+ *
686
+ * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 7;
687
+ */
688
+ attributes: KeyValue[];
689
+
690
+ /**
691
+ * StartTimeUnixNano is optional but strongly encouraged, see the
692
+ * the detailed comments above Metric.
693
+ *
694
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
695
+ * 1970.
696
+ *
697
+ * @generated from field: fixed64 start_time_unix_nano = 2;
698
+ */
699
+ startTimeUnixNano: bigint;
700
+
701
+ /**
702
+ * TimeUnixNano is required, see the detailed comments above Metric.
703
+ *
704
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
705
+ * 1970.
706
+ *
707
+ * @generated from field: fixed64 time_unix_nano = 3;
708
+ */
709
+ timeUnixNano: bigint;
710
+
711
+ /**
712
+ * The value itself. A point is considered invalid when one of the recognized
713
+ * value fields is not present inside this oneof.
714
+ *
715
+ * @generated from oneof opentelemetry.proto.metrics.v1.NumberDataPoint.value
716
+ */
717
+ value: {
718
+ /**
719
+ * @generated from field: double as_double = 4;
720
+ */
721
+ value: number;
722
+ case: "asDouble";
723
+ } | {
724
+ /**
725
+ * @generated from field: sfixed64 as_int = 6;
726
+ */
727
+ value: bigint;
728
+ case: "asInt";
729
+ } | { case: undefined; value?: undefined };
730
+
731
+ /**
732
+ * (Optional) List of exemplars collected from
733
+ * measurements that were used to form the data point
734
+ *
735
+ * @generated from field: repeated opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
736
+ */
737
+ exemplars: Exemplar[];
738
+
739
+ /**
740
+ * Flags that apply to this specific data point. See DataPointFlags
741
+ * for the available flags and their meaning.
742
+ *
743
+ * @generated from field: uint32 flags = 8;
744
+ */
745
+ flags: number;
746
+
747
+ constructor(data?: PartialMessage<NumberDataPoint>);
748
+
749
+ static readonly runtime: typeof proto3;
750
+ static readonly typeName = "opentelemetry.proto.metrics.v1.NumberDataPoint";
751
+ static readonly fields: FieldList;
752
+
753
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NumberDataPoint;
754
+
755
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NumberDataPoint;
756
+
757
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NumberDataPoint;
758
+
759
+ static equals(a: NumberDataPoint | PlainMessage<NumberDataPoint> | undefined, b: NumberDataPoint | PlainMessage<NumberDataPoint> | undefined): boolean;
760
+ }
761
+
762
+ /**
763
+ * HistogramDataPoint is a single data point in a timeseries that describes the
764
+ * time-varying values of a Histogram. A Histogram contains summary statistics
765
+ * for a population of values, it may optionally contain the distribution of
766
+ * those values across a set of buckets.
767
+ *
768
+ * If the histogram contains the distribution of values, then both
769
+ * "explicit_bounds" and "bucket counts" fields must be defined.
770
+ * If the histogram does not contain the distribution of values, then both
771
+ * "explicit_bounds" and "bucket_counts" must be omitted and only "count" and
772
+ * "sum" are known.
773
+ *
774
+ * @generated from message opentelemetry.proto.metrics.v1.HistogramDataPoint
775
+ */
776
+ export declare class HistogramDataPoint extends Message<HistogramDataPoint> {
777
+ /**
778
+ * The set of key/value pairs that uniquely identify the timeseries from
779
+ * where this point belongs. The list may be empty (may contain 0 elements).
780
+ * Attribute keys MUST be unique (it is not allowed to have more than one
781
+ * attribute with the same key).
782
+ * The behavior of software that receives duplicated keys can be unpredictable.
783
+ *
784
+ * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 9;
785
+ */
786
+ attributes: KeyValue[];
787
+
788
+ /**
789
+ * StartTimeUnixNano is optional but strongly encouraged, see the
790
+ * the detailed comments above Metric.
791
+ *
792
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
793
+ * 1970.
794
+ *
795
+ * @generated from field: fixed64 start_time_unix_nano = 2;
796
+ */
797
+ startTimeUnixNano: bigint;
798
+
799
+ /**
800
+ * TimeUnixNano is required, see the detailed comments above Metric.
801
+ *
802
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
803
+ * 1970.
804
+ *
805
+ * @generated from field: fixed64 time_unix_nano = 3;
806
+ */
807
+ timeUnixNano: bigint;
808
+
809
+ /**
810
+ * count is the number of values in the population. Must be non-negative. This
811
+ * value must be equal to the sum of the "count" fields in buckets if a
812
+ * histogram is provided.
813
+ *
814
+ * @generated from field: fixed64 count = 4;
815
+ */
816
+ count: bigint;
817
+
818
+ /**
819
+ * sum of the values in the population. If count is zero then this field
820
+ * must be zero.
821
+ *
822
+ * Note: Sum should only be filled out when measuring non-negative discrete
823
+ * events, and is assumed to be monotonic over the values of these events.
824
+ * Negative events *can* be recorded, but sum should not be filled out when
825
+ * doing so. This is specifically to enforce compatibility w/ OpenMetrics,
826
+ * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram
827
+ *
828
+ * @generated from field: optional double sum = 5;
829
+ */
830
+ sum?: number;
831
+
832
+ /**
833
+ * bucket_counts is an optional field contains the count values of histogram
834
+ * for each bucket.
835
+ *
836
+ * The sum of the bucket_counts must equal the value in the count field.
837
+ *
838
+ * The number of elements in bucket_counts array must be by one greater than
839
+ * the number of elements in explicit_bounds array. The exception to this rule
840
+ * is when the length of bucket_counts is 0, then the length of explicit_bounds
841
+ * must also be 0.
842
+ *
843
+ * @generated from field: repeated fixed64 bucket_counts = 6;
844
+ */
845
+ bucketCounts: bigint[];
846
+
847
+ /**
848
+ * explicit_bounds specifies buckets with explicitly defined bounds for values.
849
+ *
850
+ * The boundaries for bucket at index i are:
851
+ *
852
+ * (-infinity, explicit_bounds[i]] for i == 0
853
+ * (explicit_bounds[i-1], explicit_bounds[i]] for 0 < i < size(explicit_bounds)
854
+ * (explicit_bounds[i-1], +infinity) for i == size(explicit_bounds)
855
+ *
856
+ * The values in the explicit_bounds array must be strictly increasing.
857
+ *
858
+ * Histogram buckets are inclusive of their upper boundary, except the last
859
+ * bucket where the boundary is at infinity. This format is intentionally
860
+ * compatible with the OpenMetrics histogram definition.
861
+ *
862
+ * If bucket_counts length is 0 then explicit_bounds length must also be 0,
863
+ * otherwise the data point is invalid.
864
+ *
865
+ * @generated from field: repeated double explicit_bounds = 7;
866
+ */
867
+ explicitBounds: number[];
868
+
869
+ /**
870
+ * (Optional) List of exemplars collected from
871
+ * measurements that were used to form the data point
872
+ *
873
+ * @generated from field: repeated opentelemetry.proto.metrics.v1.Exemplar exemplars = 8;
874
+ */
875
+ exemplars: Exemplar[];
876
+
877
+ /**
878
+ * Flags that apply to this specific data point. See DataPointFlags
879
+ * for the available flags and their meaning.
880
+ *
881
+ * @generated from field: uint32 flags = 10;
882
+ */
883
+ flags: number;
884
+
885
+ /**
886
+ * min is the minimum value over (start_time, end_time].
887
+ *
888
+ * @generated from field: optional double min = 11;
889
+ */
890
+ min?: number;
891
+
892
+ /**
893
+ * max is the maximum value over (start_time, end_time].
894
+ *
895
+ * @generated from field: optional double max = 12;
896
+ */
897
+ max?: number;
898
+
899
+ constructor(data?: PartialMessage<HistogramDataPoint>);
900
+
901
+ static readonly runtime: typeof proto3;
902
+ static readonly typeName = "opentelemetry.proto.metrics.v1.HistogramDataPoint";
903
+ static readonly fields: FieldList;
904
+
905
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HistogramDataPoint;
906
+
907
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HistogramDataPoint;
908
+
909
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HistogramDataPoint;
910
+
911
+ static equals(a: HistogramDataPoint | PlainMessage<HistogramDataPoint> | undefined, b: HistogramDataPoint | PlainMessage<HistogramDataPoint> | undefined): boolean;
912
+ }
913
+
914
+ /**
915
+ * ExponentialHistogramDataPoint is a single data point in a timeseries that describes the
916
+ * time-varying values of a ExponentialHistogram of double values. A ExponentialHistogram contains
917
+ * summary statistics for a population of values, it may optionally contain the
918
+ * distribution of those values across a set of buckets.
919
+ *
920
+ *
921
+ * @generated from message opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint
922
+ */
923
+ export declare class ExponentialHistogramDataPoint extends Message<ExponentialHistogramDataPoint> {
924
+ /**
925
+ * The set of key/value pairs that uniquely identify the timeseries from
926
+ * where this point belongs. The list may be empty (may contain 0 elements).
927
+ * Attribute keys MUST be unique (it is not allowed to have more than one
928
+ * attribute with the same key).
929
+ * The behavior of software that receives duplicated keys can be unpredictable.
930
+ *
931
+ * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 1;
932
+ */
933
+ attributes: KeyValue[];
934
+
935
+ /**
936
+ * StartTimeUnixNano is optional but strongly encouraged, see the
937
+ * the detailed comments above Metric.
938
+ *
939
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
940
+ * 1970.
941
+ *
942
+ * @generated from field: fixed64 start_time_unix_nano = 2;
943
+ */
944
+ startTimeUnixNano: bigint;
945
+
946
+ /**
947
+ * TimeUnixNano is required, see the detailed comments above Metric.
948
+ *
949
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
950
+ * 1970.
951
+ *
952
+ * @generated from field: fixed64 time_unix_nano = 3;
953
+ */
954
+ timeUnixNano: bigint;
955
+
956
+ /**
957
+ * The number of values in the population. Must be
958
+ * non-negative. This value must be equal to the sum of the "bucket_counts"
959
+ * values in the positive and negative Buckets plus the "zero_count" field.
960
+ *
961
+ * @generated from field: fixed64 count = 4;
962
+ */
963
+ count: bigint;
964
+
965
+ /**
966
+ * The sum of the values in the population. If count is zero then this field
967
+ * must be zero.
968
+ *
969
+ * Note: Sum should only be filled out when measuring non-negative discrete
970
+ * events, and is assumed to be monotonic over the values of these events.
971
+ * Negative events *can* be recorded, but sum should not be filled out when
972
+ * doing so. This is specifically to enforce compatibility w/ OpenMetrics,
973
+ * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram
974
+ *
975
+ * @generated from field: optional double sum = 5;
976
+ */
977
+ sum?: number;
978
+
979
+ /**
980
+ * scale describes the resolution of the histogram. Boundaries are
981
+ * located at powers of the base, where:
982
+ *
983
+ * base = (2^(2^-scale))
984
+ *
985
+ * The histogram bucket identified by `index`, a signed integer,
986
+ * contains values that are greater than (base^index) and
987
+ * less than or equal to (base^(index+1)).
988
+ *
989
+ * The positive and negative ranges of the histogram are expressed
990
+ * separately. Negative values are mapped by their absolute value
991
+ * into the negative range using the same scale as the positive range.
992
+ *
993
+ * scale is not restricted by the protocol, as the permissible
994
+ * values depend on the range of the data.
995
+ *
996
+ * @generated from field: sint32 scale = 6;
997
+ */
998
+ scale: number;
999
+
1000
+ /**
1001
+ * The count of values that are either exactly zero or
1002
+ * within the region considered zero by the instrumentation at the
1003
+ * tolerated degree of precision. This bucket stores values that
1004
+ * cannot be expressed using the standard exponential formula as
1005
+ * well as values that have been rounded to zero.
1006
+ *
1007
+ * Implementations MAY consider the zero bucket to have probability
1008
+ * mass equal to (zero_count / count).
1009
+ *
1010
+ * @generated from field: fixed64 zero_count = 7;
1011
+ */
1012
+ zeroCount: bigint;
1013
+
1014
+ /**
1015
+ * positive carries the positive range of exponential bucket counts.
1016
+ *
1017
+ * @generated from field: opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets positive = 8;
1018
+ */
1019
+ positive?: ExponentialHistogramDataPoint_Buckets;
1020
+
1021
+ /**
1022
+ * negative carries the negative range of exponential bucket counts.
1023
+ *
1024
+ * @generated from field: opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets negative = 9;
1025
+ */
1026
+ negative?: ExponentialHistogramDataPoint_Buckets;
1027
+
1028
+ /**
1029
+ * Flags that apply to this specific data point. See DataPointFlags
1030
+ * for the available flags and their meaning.
1031
+ *
1032
+ * @generated from field: uint32 flags = 10;
1033
+ */
1034
+ flags: number;
1035
+
1036
+ /**
1037
+ * (Optional) List of exemplars collected from
1038
+ * measurements that were used to form the data point
1039
+ *
1040
+ * @generated from field: repeated opentelemetry.proto.metrics.v1.Exemplar exemplars = 11;
1041
+ */
1042
+ exemplars: Exemplar[];
1043
+
1044
+ /**
1045
+ * The minimum value over (start_time, end_time].
1046
+ *
1047
+ * @generated from field: optional double min = 12;
1048
+ */
1049
+ min?: number;
1050
+
1051
+ /**
1052
+ * The maximum value over (start_time, end_time].
1053
+ *
1054
+ * @generated from field: optional double max = 13;
1055
+ */
1056
+ max?: number;
1057
+
1058
+ /**
1059
+ * ZeroThreshold may be optionally set to convey the width of the zero
1060
+ * region. Where the zero region is defined as the closed interval
1061
+ * [-ZeroThreshold, ZeroThreshold].
1062
+ * When ZeroThreshold is 0, zero count bucket stores values that cannot be
1063
+ * expressed using the standard exponential formula as well as values that
1064
+ * have been rounded to zero.
1065
+ *
1066
+ * @generated from field: double zero_threshold = 14;
1067
+ */
1068
+ zeroThreshold: number;
1069
+
1070
+ constructor(data?: PartialMessage<ExponentialHistogramDataPoint>);
1071
+
1072
+ static readonly runtime: typeof proto3;
1073
+ static readonly typeName = "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint";
1074
+ static readonly fields: FieldList;
1075
+
1076
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExponentialHistogramDataPoint;
1077
+
1078
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExponentialHistogramDataPoint;
1079
+
1080
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExponentialHistogramDataPoint;
1081
+
1082
+ static equals(a: ExponentialHistogramDataPoint | PlainMessage<ExponentialHistogramDataPoint> | undefined, b: ExponentialHistogramDataPoint | PlainMessage<ExponentialHistogramDataPoint> | undefined): boolean;
1083
+ }
1084
+
1085
+ /**
1086
+ * Buckets are a set of bucket counts, encoded in a contiguous array
1087
+ * of counts.
1088
+ *
1089
+ * @generated from message opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets
1090
+ */
1091
+ export declare class ExponentialHistogramDataPoint_Buckets extends Message<ExponentialHistogramDataPoint_Buckets> {
1092
+ /**
1093
+ * The bucket index of the first entry in the bucket_counts array.
1094
+ *
1095
+ * Note: This uses a varint encoding as a simple form of compression.
1096
+ *
1097
+ * @generated from field: sint32 offset = 1;
1098
+ */
1099
+ offset: number;
1100
+
1101
+ /**
1102
+ * An array of count values, where bucket_counts[i] carries
1103
+ * the count of the bucket at index (offset+i). bucket_counts[i] is the count
1104
+ * of values greater than base^(offset+i) and less than or equal to
1105
+ * base^(offset+i+1).
1106
+ *
1107
+ * Note: By contrast, the explicit HistogramDataPoint uses
1108
+ * fixed64. This field is expected to have many buckets,
1109
+ * especially zeros, so uint64 has been selected to ensure
1110
+ * varint encoding.
1111
+ *
1112
+ * @generated from field: repeated uint64 bucket_counts = 2;
1113
+ */
1114
+ bucketCounts: bigint[];
1115
+
1116
+ constructor(data?: PartialMessage<ExponentialHistogramDataPoint_Buckets>);
1117
+
1118
+ static readonly runtime: typeof proto3;
1119
+ static readonly typeName = "opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets";
1120
+ static readonly fields: FieldList;
1121
+
1122
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExponentialHistogramDataPoint_Buckets;
1123
+
1124
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExponentialHistogramDataPoint_Buckets;
1125
+
1126
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExponentialHistogramDataPoint_Buckets;
1127
+
1128
+ static equals(a: ExponentialHistogramDataPoint_Buckets | PlainMessage<ExponentialHistogramDataPoint_Buckets> | undefined, b: ExponentialHistogramDataPoint_Buckets | PlainMessage<ExponentialHistogramDataPoint_Buckets> | undefined): boolean;
1129
+ }
1130
+
1131
+ /**
1132
+ * SummaryDataPoint is a single data point in a timeseries that describes the
1133
+ * time-varying values of a Summary metric. The count and sum fields represent
1134
+ * cumulative values.
1135
+ *
1136
+ * @generated from message opentelemetry.proto.metrics.v1.SummaryDataPoint
1137
+ */
1138
+ export declare class SummaryDataPoint extends Message<SummaryDataPoint> {
1139
+ /**
1140
+ * The set of key/value pairs that uniquely identify the timeseries from
1141
+ * where this point belongs. The list may be empty (may contain 0 elements).
1142
+ * Attribute keys MUST be unique (it is not allowed to have more than one
1143
+ * attribute with the same key).
1144
+ * The behavior of software that receives duplicated keys can be unpredictable.
1145
+ *
1146
+ * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 7;
1147
+ */
1148
+ attributes: KeyValue[];
1149
+
1150
+ /**
1151
+ * StartTimeUnixNano is optional but strongly encouraged, see the
1152
+ * the detailed comments above Metric.
1153
+ *
1154
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
1155
+ * 1970.
1156
+ *
1157
+ * @generated from field: fixed64 start_time_unix_nano = 2;
1158
+ */
1159
+ startTimeUnixNano: bigint;
1160
+
1161
+ /**
1162
+ * TimeUnixNano is required, see the detailed comments above Metric.
1163
+ *
1164
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
1165
+ * 1970.
1166
+ *
1167
+ * @generated from field: fixed64 time_unix_nano = 3;
1168
+ */
1169
+ timeUnixNano: bigint;
1170
+
1171
+ /**
1172
+ * count is the number of values in the population. Must be non-negative.
1173
+ *
1174
+ * @generated from field: fixed64 count = 4;
1175
+ */
1176
+ count: bigint;
1177
+
1178
+ /**
1179
+ * sum of the values in the population. If count is zero then this field
1180
+ * must be zero.
1181
+ *
1182
+ * Note: Sum should only be filled out when measuring non-negative discrete
1183
+ * events, and is assumed to be monotonic over the values of these events.
1184
+ * Negative events *can* be recorded, but sum should not be filled out when
1185
+ * doing so. This is specifically to enforce compatibility w/ OpenMetrics,
1186
+ * see: https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#summary
1187
+ *
1188
+ * @generated from field: double sum = 5;
1189
+ */
1190
+ sum: number;
1191
+
1192
+ /**
1193
+ * (Optional) list of values at different quantiles of the distribution calculated
1194
+ * from the current snapshot. The quantiles must be strictly increasing.
1195
+ *
1196
+ * @generated from field: repeated opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile quantile_values = 6;
1197
+ */
1198
+ quantileValues: SummaryDataPoint_ValueAtQuantile[];
1199
+
1200
+ /**
1201
+ * Flags that apply to this specific data point. See DataPointFlags
1202
+ * for the available flags and their meaning.
1203
+ *
1204
+ * @generated from field: uint32 flags = 8;
1205
+ */
1206
+ flags: number;
1207
+
1208
+ constructor(data?: PartialMessage<SummaryDataPoint>);
1209
+
1210
+ static readonly runtime: typeof proto3;
1211
+ static readonly typeName = "opentelemetry.proto.metrics.v1.SummaryDataPoint";
1212
+ static readonly fields: FieldList;
1213
+
1214
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SummaryDataPoint;
1215
+
1216
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SummaryDataPoint;
1217
+
1218
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SummaryDataPoint;
1219
+
1220
+ static equals(a: SummaryDataPoint | PlainMessage<SummaryDataPoint> | undefined, b: SummaryDataPoint | PlainMessage<SummaryDataPoint> | undefined): boolean;
1221
+ }
1222
+
1223
+ /**
1224
+ * Represents the value at a given quantile of a distribution.
1225
+ *
1226
+ * To record Min and Max values following conventions are used:
1227
+ * - The 1.0 quantile is equivalent to the maximum value observed.
1228
+ * - The 0.0 quantile is equivalent to the minimum value observed.
1229
+ *
1230
+ * See the following issue for more context:
1231
+ * https://github.com/open-telemetry/opentelemetry-proto/issues/125
1232
+ *
1233
+ * @generated from message opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile
1234
+ */
1235
+ export declare class SummaryDataPoint_ValueAtQuantile extends Message<SummaryDataPoint_ValueAtQuantile> {
1236
+ /**
1237
+ * The quantile of a distribution. Must be in the interval
1238
+ * [0.0, 1.0].
1239
+ *
1240
+ * @generated from field: double quantile = 1;
1241
+ */
1242
+ quantile: number;
1243
+
1244
+ /**
1245
+ * The value at the given quantile of a distribution.
1246
+ *
1247
+ * Quantile values must NOT be negative.
1248
+ *
1249
+ * @generated from field: double value = 2;
1250
+ */
1251
+ value: number;
1252
+
1253
+ constructor(data?: PartialMessage<SummaryDataPoint_ValueAtQuantile>);
1254
+
1255
+ static readonly runtime: typeof proto3;
1256
+ static readonly typeName = "opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile";
1257
+ static readonly fields: FieldList;
1258
+
1259
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SummaryDataPoint_ValueAtQuantile;
1260
+
1261
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SummaryDataPoint_ValueAtQuantile;
1262
+
1263
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SummaryDataPoint_ValueAtQuantile;
1264
+
1265
+ static equals(a: SummaryDataPoint_ValueAtQuantile | PlainMessage<SummaryDataPoint_ValueAtQuantile> | undefined, b: SummaryDataPoint_ValueAtQuantile | PlainMessage<SummaryDataPoint_ValueAtQuantile> | undefined): boolean;
1266
+ }
1267
+
1268
+ /**
1269
+ * A representation of an exemplar, which is a sample input measurement.
1270
+ * Exemplars also hold information about the environment when the measurement
1271
+ * was recorded, for example the span and trace ID of the active span when the
1272
+ * exemplar was recorded.
1273
+ *
1274
+ * @generated from message opentelemetry.proto.metrics.v1.Exemplar
1275
+ */
1276
+ export declare class Exemplar extends Message<Exemplar> {
1277
+ /**
1278
+ * The set of key/value pairs that were filtered out by the aggregator, but
1279
+ * recorded alongside the original measurement. Only key/value pairs that were
1280
+ * filtered out by the aggregator should be included
1281
+ *
1282
+ * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue filtered_attributes = 7;
1283
+ */
1284
+ filteredAttributes: KeyValue[];
1285
+
1286
+ /**
1287
+ * time_unix_nano is the exact time when this exemplar was recorded
1288
+ *
1289
+ * Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
1290
+ * 1970.
1291
+ *
1292
+ * @generated from field: fixed64 time_unix_nano = 2;
1293
+ */
1294
+ timeUnixNano: bigint;
1295
+
1296
+ /**
1297
+ * The value of the measurement that was recorded. An exemplar is
1298
+ * considered invalid when one of the recognized value fields is not present
1299
+ * inside this oneof.
1300
+ *
1301
+ * @generated from oneof opentelemetry.proto.metrics.v1.Exemplar.value
1302
+ */
1303
+ value: {
1304
+ /**
1305
+ * @generated from field: double as_double = 3;
1306
+ */
1307
+ value: number;
1308
+ case: "asDouble";
1309
+ } | {
1310
+ /**
1311
+ * @generated from field: sfixed64 as_int = 6;
1312
+ */
1313
+ value: bigint;
1314
+ case: "asInt";
1315
+ } | { case: undefined; value?: undefined };
1316
+
1317
+ /**
1318
+ * (Optional) Span ID of the exemplar trace.
1319
+ * span_id may be missing if the measurement is not recorded inside a trace
1320
+ * or if the trace is not sampled.
1321
+ *
1322
+ * @generated from field: bytes span_id = 4;
1323
+ */
1324
+ spanId: Uint8Array;
1325
+
1326
+ /**
1327
+ * (Optional) Trace ID of the exemplar trace.
1328
+ * trace_id may be missing if the measurement is not recorded inside a trace
1329
+ * or if the trace is not sampled.
1330
+ *
1331
+ * @generated from field: bytes trace_id = 5;
1332
+ */
1333
+ traceId: Uint8Array;
1334
+
1335
+ constructor(data?: PartialMessage<Exemplar>);
1336
+
1337
+ static readonly runtime: typeof proto3;
1338
+ static readonly typeName = "opentelemetry.proto.metrics.v1.Exemplar";
1339
+ static readonly fields: FieldList;
1340
+
1341
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Exemplar;
1342
+
1343
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Exemplar;
1344
+
1345
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Exemplar;
1346
+
1347
+ static equals(a: Exemplar | PlainMessage<Exemplar> | undefined, b: Exemplar | PlainMessage<Exemplar> | undefined): boolean;
1348
+ }
1349
+