@ancplua/qyl-api-schema 0.6.1 → 1.0.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.
- package/README.md +4 -2
- package/common/types.tsp +59 -6
- package/generated/json-schema/qyl-api-schema.json +204 -33
- package/generated/openapi/qyl.openapi.json +202 -33
- package/generated/ts-runtime/api.d.ts +33 -14
- package/otel/logs.tsp +1 -1
- package/otel/metrics.tsp +35 -13
- package/otel/resource.tsp +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,8 +69,10 @@ Important generated outputs include:
|
|
|
69
69
|
|
|
70
70
|
Generated files are not editing surfaces. OpenAPI comes from the official TypeSpec
|
|
71
71
|
emitter; the bundled JSON Schema is a deterministic projection of its component
|
|
72
|
-
schemas
|
|
73
|
-
|
|
72
|
+
schemas and exposes inline route bodies as stable
|
|
73
|
+
`Operations.<operationId>.Request` and
|
|
74
|
+
`Operations.<operationId>.Response.<status>` definitions. Both artifacts preserve
|
|
75
|
+
the same wire names. Change TypeSpec or the owning generator and regenerate.
|
|
74
76
|
|
|
75
77
|
## Publish
|
|
76
78
|
|
package/common/types.tsp
CHANGED
|
@@ -215,24 +215,53 @@ model AttributeBytesValue {
|
|
|
215
215
|
base64: bytes;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
@doc("
|
|
218
|
+
@doc("An OTLP signed 64-bit attribute integer encoded without JavaScript precision loss.")
|
|
219
|
+
@encode(string)
|
|
220
|
+
@TypeSpec.OpenAPI.extension("x-csharp-type", "long")
|
|
221
|
+
scalar AttributeInt64 extends int64;
|
|
222
|
+
|
|
223
|
+
@doc("An OTLP attribute double encoded as a JSON number when finite or a canonical named string when non-finite.")
|
|
224
|
+
union AttributeDouble {
|
|
225
|
+
finite: float64,
|
|
226
|
+
nan: "NaN",
|
|
227
|
+
positiveInfinity: "Infinity",
|
|
228
|
+
negativeInfinity: "-Infinity",
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@doc("Tagged OTLP signed 64-bit integer attribute.")
|
|
232
|
+
model AttributeIntValue {
|
|
233
|
+
type: "int";
|
|
234
|
+
value: AttributeInt64;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@doc("Tagged OTLP double attribute.")
|
|
238
|
+
model AttributeDoubleValue {
|
|
239
|
+
type: "double";
|
|
240
|
+
value: AttributeDouble;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@doc("Tagged recursive OTLP key-value-list, distinct from other object-shaped attribute variants.")
|
|
219
244
|
model AttributeKeyValueListValue {
|
|
220
|
-
|
|
245
|
+
type: "kvlist";
|
|
246
|
+
values: Record<AttributeValue>;
|
|
221
247
|
}
|
|
222
248
|
|
|
223
249
|
@doc("Lossless JSON projection of an OpenTelemetry AnyValue attribute.")
|
|
224
250
|
union AttributeValue {
|
|
251
|
+
@doc("Empty AnyValue")
|
|
252
|
+
emptyValue: null,
|
|
253
|
+
|
|
225
254
|
@doc("String value")
|
|
226
255
|
stringValue: string,
|
|
227
256
|
|
|
228
257
|
@doc("Boolean value")
|
|
229
258
|
boolValue: boolean,
|
|
230
259
|
|
|
231
|
-
@doc("64-bit integer value")
|
|
232
|
-
intValue:
|
|
260
|
+
@doc("Lossless 64-bit integer value")
|
|
261
|
+
intValue: AttributeIntValue,
|
|
233
262
|
|
|
234
|
-
@doc("64-bit floating point value")
|
|
235
|
-
doubleValue:
|
|
263
|
+
@doc("Lossless finite or non-finite 64-bit floating point value")
|
|
264
|
+
doubleValue: AttributeDoubleValue,
|
|
236
265
|
|
|
237
266
|
@doc("Bytes value projected as an explicit tagged object")
|
|
238
267
|
bytesValue: AttributeBytesValue,
|
|
@@ -261,6 +290,30 @@ model Attributes {
|
|
|
261
290
|
items: Attribute[];
|
|
262
291
|
}
|
|
263
292
|
|
|
293
|
+
@doc("A non-empty Resource attribute key referenced by an OpenTelemetry entity.")
|
|
294
|
+
@minLength(1)
|
|
295
|
+
scalar EntityAttributeKey extends string;
|
|
296
|
+
|
|
297
|
+
@doc("A reference to an OpenTelemetry entity described by attributes on the containing Resource.")
|
|
298
|
+
model EntityRef {
|
|
299
|
+
@doc("Schema URL applying to the entity and its referenced Resource attributes, when known.")
|
|
300
|
+
@encodedName("application/json", "schema_url")
|
|
301
|
+
schemaUrl?: string;
|
|
302
|
+
|
|
303
|
+
@doc("Stable non-empty entity type, such as service or host.")
|
|
304
|
+
@minLength(1)
|
|
305
|
+
type: string;
|
|
306
|
+
|
|
307
|
+
@doc("Non-empty set of Resource attribute keys that identify the entity.")
|
|
308
|
+
@encodedName("application/json", "id_keys")
|
|
309
|
+
@minItems(1)
|
|
310
|
+
idKeys: EntityAttributeKey[];
|
|
311
|
+
|
|
312
|
+
@doc("Resource attribute keys that describe but do not identify the entity.")
|
|
313
|
+
@encodedName("application/json", "description_keys")
|
|
314
|
+
descriptionKeys?: EntityAttributeKey[];
|
|
315
|
+
}
|
|
316
|
+
|
|
264
317
|
// =============================================================================
|
|
265
318
|
// Instrumentation Scope
|
|
266
319
|
// =============================================================================
|
|
@@ -52,15 +52,105 @@
|
|
|
52
52
|
},
|
|
53
53
|
"description": "Base64 bytes projected by qyl without colliding with an ordinary string attribute."
|
|
54
54
|
},
|
|
55
|
+
"Common.AttributeDouble": {
|
|
56
|
+
"anyOf": [
|
|
57
|
+
{
|
|
58
|
+
"type": "number",
|
|
59
|
+
"format": "double"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "string",
|
|
63
|
+
"enum": [
|
|
64
|
+
"NaN",
|
|
65
|
+
"Infinity",
|
|
66
|
+
"-Infinity"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"description": "An OTLP attribute double encoded as a JSON number when finite or a canonical named string when non-finite."
|
|
71
|
+
},
|
|
72
|
+
"Common.AttributeDoubleValue": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"required": [
|
|
75
|
+
"type",
|
|
76
|
+
"value"
|
|
77
|
+
],
|
|
78
|
+
"properties": {
|
|
79
|
+
"type": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"enum": [
|
|
82
|
+
"double"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"value": {
|
|
86
|
+
"$ref": "#/$defs/Common.AttributeDouble"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"unevaluatedProperties": {
|
|
90
|
+
"not": {}
|
|
91
|
+
},
|
|
92
|
+
"description": "Tagged OTLP double attribute."
|
|
93
|
+
},
|
|
94
|
+
"Common.AttributeInt64": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"format": "int64",
|
|
97
|
+
"description": "An OTLP signed 64-bit attribute integer encoded without JavaScript precision loss.",
|
|
98
|
+
"x-csharp-type": "long",
|
|
99
|
+
"pattern": "^(0|-?[1-9][0-9]*)$",
|
|
100
|
+
"maxLength": 20
|
|
101
|
+
},
|
|
102
|
+
"Common.AttributeIntValue": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"required": [
|
|
105
|
+
"type",
|
|
106
|
+
"value"
|
|
107
|
+
],
|
|
108
|
+
"properties": {
|
|
109
|
+
"type": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"enum": [
|
|
112
|
+
"int"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"value": {
|
|
116
|
+
"$ref": "#/$defs/Common.AttributeInt64"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"unevaluatedProperties": {
|
|
120
|
+
"not": {}
|
|
121
|
+
},
|
|
122
|
+
"description": "Tagged OTLP signed 64-bit integer attribute."
|
|
123
|
+
},
|
|
55
124
|
"Common.AttributeKeyValueListValue": {
|
|
56
125
|
"type": "object",
|
|
126
|
+
"required": [
|
|
127
|
+
"type",
|
|
128
|
+
"values"
|
|
129
|
+
],
|
|
130
|
+
"properties": {
|
|
131
|
+
"type": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"enum": [
|
|
134
|
+
"kvlist"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"values": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"unevaluatedProperties": {
|
|
140
|
+
"$ref": "#/$defs/Common.AttributeValue"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
57
144
|
"unevaluatedProperties": {
|
|
58
|
-
"
|
|
145
|
+
"not": {}
|
|
59
146
|
},
|
|
60
|
-
"description": "
|
|
147
|
+
"description": "Tagged recursive OTLP key-value-list, distinct from other object-shaped attribute variants."
|
|
61
148
|
},
|
|
62
149
|
"Common.AttributeValue": {
|
|
63
150
|
"anyOf": [
|
|
151
|
+
{
|
|
152
|
+
"type": "null"
|
|
153
|
+
},
|
|
64
154
|
{
|
|
65
155
|
"type": "string"
|
|
66
156
|
},
|
|
@@ -68,12 +158,10 @@
|
|
|
68
158
|
"type": "boolean"
|
|
69
159
|
},
|
|
70
160
|
{
|
|
71
|
-
"
|
|
72
|
-
"format": "int64"
|
|
161
|
+
"$ref": "#/$defs/Common.AttributeIntValue"
|
|
73
162
|
},
|
|
74
163
|
{
|
|
75
|
-
"
|
|
76
|
-
"format": "double"
|
|
164
|
+
"$ref": "#/$defs/Common.AttributeDoubleValue"
|
|
77
165
|
},
|
|
78
166
|
{
|
|
79
167
|
"$ref": "#/$defs/Common.AttributeBytesValue"
|
|
@@ -157,6 +245,48 @@
|
|
|
157
245
|
"minimum": 0,
|
|
158
246
|
"description": "Duration in seconds"
|
|
159
247
|
},
|
|
248
|
+
"Common.EntityAttributeKey": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"minLength": 1,
|
|
251
|
+
"description": "A non-empty Resource attribute key referenced by an OpenTelemetry entity."
|
|
252
|
+
},
|
|
253
|
+
"Common.EntityRef": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"required": [
|
|
256
|
+
"type",
|
|
257
|
+
"id_keys"
|
|
258
|
+
],
|
|
259
|
+
"properties": {
|
|
260
|
+
"schema_url": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"description": "Schema URL applying to the entity and its referenced Resource attributes, when known."
|
|
263
|
+
},
|
|
264
|
+
"type": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"minLength": 1,
|
|
267
|
+
"description": "Stable non-empty entity type, such as service or host."
|
|
268
|
+
},
|
|
269
|
+
"id_keys": {
|
|
270
|
+
"type": "array",
|
|
271
|
+
"items": {
|
|
272
|
+
"$ref": "#/$defs/Common.EntityAttributeKey"
|
|
273
|
+
},
|
|
274
|
+
"minItems": 1,
|
|
275
|
+
"description": "Non-empty set of Resource attribute keys that identify the entity."
|
|
276
|
+
},
|
|
277
|
+
"description_keys": {
|
|
278
|
+
"type": "array",
|
|
279
|
+
"items": {
|
|
280
|
+
"$ref": "#/$defs/Common.EntityAttributeKey"
|
|
281
|
+
},
|
|
282
|
+
"description": "Resource attribute keys that describe but do not identify the entity."
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"unevaluatedProperties": {
|
|
286
|
+
"not": {}
|
|
287
|
+
},
|
|
288
|
+
"description": "A reference to an OpenTelemetry entity described by attributes on the containing Resource."
|
|
289
|
+
},
|
|
160
290
|
"Common.Errors.ApiError": {
|
|
161
291
|
"anyOf": [
|
|
162
292
|
{
|
|
@@ -4214,7 +4344,7 @@
|
|
|
4214
4344
|
},
|
|
4215
4345
|
"event_name": {
|
|
4216
4346
|
"type": "string",
|
|
4217
|
-
"description": "
|
|
4347
|
+
"description": "Optional event category whose presence identifies this log record as an event; records with the same name are expected to share one body and attribute schema."
|
|
4218
4348
|
},
|
|
4219
4349
|
"resource": {
|
|
4220
4350
|
"allOf": [
|
|
@@ -4313,8 +4443,7 @@
|
|
|
4313
4443
|
"$ref": "#/$defs/OTel.Metrics.MetricUInt64"
|
|
4314
4444
|
},
|
|
4315
4445
|
"sum": {
|
|
4316
|
-
"
|
|
4317
|
-
"format": "double"
|
|
4446
|
+
"$ref": "#/$defs/OTel.Metrics.MetricDouble"
|
|
4318
4447
|
},
|
|
4319
4448
|
"scale": {
|
|
4320
4449
|
"type": "integer",
|
|
@@ -4324,8 +4453,7 @@
|
|
|
4324
4453
|
"$ref": "#/$defs/OTel.Metrics.MetricUInt64"
|
|
4325
4454
|
},
|
|
4326
4455
|
"zero_threshold": {
|
|
4327
|
-
"
|
|
4328
|
-
"format": "double"
|
|
4456
|
+
"$ref": "#/$defs/OTel.Metrics.MetricDouble"
|
|
4329
4457
|
},
|
|
4330
4458
|
"positive": {
|
|
4331
4459
|
"$ref": "#/$defs/OTel.Metrics.ExponentialHistogramBuckets"
|
|
@@ -4334,12 +4462,10 @@
|
|
|
4334
4462
|
"$ref": "#/$defs/OTel.Metrics.ExponentialHistogramBuckets"
|
|
4335
4463
|
},
|
|
4336
4464
|
"min": {
|
|
4337
|
-
"
|
|
4338
|
-
"format": "double"
|
|
4465
|
+
"$ref": "#/$defs/OTel.Metrics.MetricDouble"
|
|
4339
4466
|
},
|
|
4340
4467
|
"max": {
|
|
4341
|
-
"
|
|
4342
|
-
"format": "double"
|
|
4468
|
+
"$ref": "#/$defs/OTel.Metrics.MetricDouble"
|
|
4343
4469
|
},
|
|
4344
4470
|
"aggregation_temporality": {
|
|
4345
4471
|
"$ref": "#/$defs/OTel.Enums.AggregationTemporality"
|
|
@@ -4364,8 +4490,7 @@
|
|
|
4364
4490
|
"OTel.Metrics.GaugeMetricPoint": {
|
|
4365
4491
|
"type": "object",
|
|
4366
4492
|
"required": [
|
|
4367
|
-
"type"
|
|
4368
|
-
"value"
|
|
4493
|
+
"type"
|
|
4369
4494
|
],
|
|
4370
4495
|
"properties": {
|
|
4371
4496
|
"type": {
|
|
@@ -4375,7 +4500,12 @@
|
|
|
4375
4500
|
]
|
|
4376
4501
|
},
|
|
4377
4502
|
"value": {
|
|
4378
|
-
"
|
|
4503
|
+
"allOf": [
|
|
4504
|
+
{
|
|
4505
|
+
"$ref": "#/$defs/OTel.Metrics.MetricNumberValue"
|
|
4506
|
+
}
|
|
4507
|
+
],
|
|
4508
|
+
"description": "Recorded value, absent when flags contain NO_RECORDED_VALUE (bit 1)."
|
|
4379
4509
|
},
|
|
4380
4510
|
"exemplars": {
|
|
4381
4511
|
"type": "array",
|
|
@@ -4414,8 +4544,7 @@
|
|
|
4414
4544
|
"$ref": "#/$defs/OTel.Metrics.MetricUInt64"
|
|
4415
4545
|
},
|
|
4416
4546
|
"sum": {
|
|
4417
|
-
"
|
|
4418
|
-
"format": "double"
|
|
4547
|
+
"$ref": "#/$defs/OTel.Metrics.MetricDouble"
|
|
4419
4548
|
},
|
|
4420
4549
|
"bucket_counts": {
|
|
4421
4550
|
"type": "array",
|
|
@@ -4431,12 +4560,10 @@
|
|
|
4431
4560
|
}
|
|
4432
4561
|
},
|
|
4433
4562
|
"min": {
|
|
4434
|
-
"
|
|
4435
|
-
"format": "double"
|
|
4563
|
+
"$ref": "#/$defs/OTel.Metrics.MetricDouble"
|
|
4436
4564
|
},
|
|
4437
4565
|
"max": {
|
|
4438
|
-
"
|
|
4439
|
-
"format": "double"
|
|
4566
|
+
"$ref": "#/$defs/OTel.Metrics.MetricDouble"
|
|
4440
4567
|
},
|
|
4441
4568
|
"aggregation_temporality": {
|
|
4442
4569
|
"$ref": "#/$defs/OTel.Enums.AggregationTemporality"
|
|
@@ -4458,6 +4585,23 @@
|
|
|
4458
4585
|
],
|
|
4459
4586
|
"description": "Explicit-bucket histogram measurement."
|
|
4460
4587
|
},
|
|
4588
|
+
"OTel.Metrics.MetricDouble": {
|
|
4589
|
+
"anyOf": [
|
|
4590
|
+
{
|
|
4591
|
+
"type": "number",
|
|
4592
|
+
"format": "double"
|
|
4593
|
+
},
|
|
4594
|
+
{
|
|
4595
|
+
"type": "string",
|
|
4596
|
+
"enum": [
|
|
4597
|
+
"NaN",
|
|
4598
|
+
"Infinity",
|
|
4599
|
+
"-Infinity"
|
|
4600
|
+
]
|
|
4601
|
+
}
|
|
4602
|
+
],
|
|
4603
|
+
"description": "An OTLP double encoded as a JSON number when finite or as a canonical named string when non-finite."
|
|
4604
|
+
},
|
|
4461
4605
|
"OTel.Metrics.MetricDoubleValue": {
|
|
4462
4606
|
"type": "object",
|
|
4463
4607
|
"required": [
|
|
@@ -4465,8 +4609,7 @@
|
|
|
4465
4609
|
],
|
|
4466
4610
|
"properties": {
|
|
4467
4611
|
"as_double": {
|
|
4468
|
-
"
|
|
4469
|
-
"format": "double"
|
|
4612
|
+
"$ref": "#/$defs/OTel.Metrics.MetricDouble"
|
|
4470
4613
|
}
|
|
4471
4614
|
},
|
|
4472
4615
|
"unevaluatedProperties": {
|
|
@@ -4653,7 +4796,6 @@
|
|
|
4653
4796
|
"type": "object",
|
|
4654
4797
|
"required": [
|
|
4655
4798
|
"type",
|
|
4656
|
-
"value",
|
|
4657
4799
|
"aggregation_temporality",
|
|
4658
4800
|
"is_monotonic"
|
|
4659
4801
|
],
|
|
@@ -4665,7 +4807,12 @@
|
|
|
4665
4807
|
]
|
|
4666
4808
|
},
|
|
4667
4809
|
"value": {
|
|
4668
|
-
"
|
|
4810
|
+
"allOf": [
|
|
4811
|
+
{
|
|
4812
|
+
"$ref": "#/$defs/OTel.Metrics.MetricNumberValue"
|
|
4813
|
+
}
|
|
4814
|
+
],
|
|
4815
|
+
"description": "Recorded value, absent when flags contain NO_RECORDED_VALUE (bit 1)."
|
|
4669
4816
|
},
|
|
4670
4817
|
"aggregation_temporality": {
|
|
4671
4818
|
"$ref": "#/$defs/OTel.Enums.AggregationTemporality"
|
|
@@ -4709,8 +4856,7 @@
|
|
|
4709
4856
|
"$ref": "#/$defs/OTel.Metrics.MetricUInt64"
|
|
4710
4857
|
},
|
|
4711
4858
|
"sum": {
|
|
4712
|
-
"
|
|
4713
|
-
"format": "double"
|
|
4859
|
+
"$ref": "#/$defs/OTel.Metrics.MetricDouble"
|
|
4714
4860
|
},
|
|
4715
4861
|
"quantile_values": {
|
|
4716
4862
|
"type": "array",
|
|
@@ -4729,6 +4875,26 @@
|
|
|
4729
4875
|
],
|
|
4730
4876
|
"description": "Pre-aggregated summary measurement."
|
|
4731
4877
|
},
|
|
4878
|
+
"OTel.Metrics.SummaryQuantileDouble": {
|
|
4879
|
+
"anyOf": [
|
|
4880
|
+
{
|
|
4881
|
+
"$ref": "#/$defs/OTel.Metrics.SummaryQuantileFiniteValue"
|
|
4882
|
+
},
|
|
4883
|
+
{
|
|
4884
|
+
"type": "string",
|
|
4885
|
+
"enum": [
|
|
4886
|
+
"Infinity"
|
|
4887
|
+
]
|
|
4888
|
+
}
|
|
4889
|
+
],
|
|
4890
|
+
"description": "A non-negative OTLP summary quantile value, including canonical positive infinity."
|
|
4891
|
+
},
|
|
4892
|
+
"OTel.Metrics.SummaryQuantileFiniteValue": {
|
|
4893
|
+
"type": "number",
|
|
4894
|
+
"format": "double",
|
|
4895
|
+
"minimum": 0,
|
|
4896
|
+
"description": "A finite, non-negative value observed at an OTLP summary quantile."
|
|
4897
|
+
},
|
|
4732
4898
|
"OTel.Metrics.SummaryQuantileValue": {
|
|
4733
4899
|
"type": "object",
|
|
4734
4900
|
"required": [
|
|
@@ -4743,9 +4909,7 @@
|
|
|
4743
4909
|
"maximum": 1
|
|
4744
4910
|
},
|
|
4745
4911
|
"value": {
|
|
4746
|
-
"
|
|
4747
|
-
"format": "double",
|
|
4748
|
-
"minimum": 0
|
|
4912
|
+
"$ref": "#/$defs/OTel.Metrics.SummaryQuantileDouble"
|
|
4749
4913
|
}
|
|
4750
4914
|
},
|
|
4751
4915
|
"unevaluatedProperties": {
|
|
@@ -5529,6 +5693,13 @@
|
|
|
5529
5693
|
}
|
|
5530
5694
|
],
|
|
5531
5695
|
"description": "Dropped attributes count"
|
|
5696
|
+
},
|
|
5697
|
+
"entity_refs": {
|
|
5698
|
+
"type": "array",
|
|
5699
|
+
"items": {
|
|
5700
|
+
"$ref": "#/$defs/Common.EntityRef"
|
|
5701
|
+
},
|
|
5702
|
+
"description": "Entities participating in this Resource, keyed by attributes on the Resource."
|
|
5532
5703
|
}
|
|
5533
5704
|
},
|
|
5534
5705
|
"unevaluatedProperties": {
|
|
@@ -13721,15 +13721,103 @@
|
|
|
13721
13721
|
},
|
|
13722
13722
|
"description": "Base64 bytes projected by qyl without colliding with an ordinary string attribute."
|
|
13723
13723
|
},
|
|
13724
|
+
"Common.AttributeDouble": {
|
|
13725
|
+
"anyOf": [
|
|
13726
|
+
{
|
|
13727
|
+
"type": "number",
|
|
13728
|
+
"format": "double"
|
|
13729
|
+
},
|
|
13730
|
+
{
|
|
13731
|
+
"type": "string",
|
|
13732
|
+
"enum": [
|
|
13733
|
+
"NaN",
|
|
13734
|
+
"Infinity",
|
|
13735
|
+
"-Infinity"
|
|
13736
|
+
]
|
|
13737
|
+
}
|
|
13738
|
+
],
|
|
13739
|
+
"description": "An OTLP attribute double encoded as a JSON number when finite or a canonical named string when non-finite."
|
|
13740
|
+
},
|
|
13741
|
+
"Common.AttributeDoubleValue": {
|
|
13742
|
+
"type": "object",
|
|
13743
|
+
"required": [
|
|
13744
|
+
"type",
|
|
13745
|
+
"value"
|
|
13746
|
+
],
|
|
13747
|
+
"properties": {
|
|
13748
|
+
"type": {
|
|
13749
|
+
"type": "string",
|
|
13750
|
+
"enum": [
|
|
13751
|
+
"double"
|
|
13752
|
+
]
|
|
13753
|
+
},
|
|
13754
|
+
"value": {
|
|
13755
|
+
"$ref": "#/components/schemas/Common.AttributeDouble"
|
|
13756
|
+
}
|
|
13757
|
+
},
|
|
13758
|
+
"unevaluatedProperties": {
|
|
13759
|
+
"not": {}
|
|
13760
|
+
},
|
|
13761
|
+
"description": "Tagged OTLP double attribute."
|
|
13762
|
+
},
|
|
13763
|
+
"Common.AttributeInt64": {
|
|
13764
|
+
"type": "string",
|
|
13765
|
+
"format": "int64",
|
|
13766
|
+
"description": "An OTLP signed 64-bit attribute integer encoded without JavaScript precision loss.",
|
|
13767
|
+
"x-csharp-type": "long"
|
|
13768
|
+
},
|
|
13769
|
+
"Common.AttributeIntValue": {
|
|
13770
|
+
"type": "object",
|
|
13771
|
+
"required": [
|
|
13772
|
+
"type",
|
|
13773
|
+
"value"
|
|
13774
|
+
],
|
|
13775
|
+
"properties": {
|
|
13776
|
+
"type": {
|
|
13777
|
+
"type": "string",
|
|
13778
|
+
"enum": [
|
|
13779
|
+
"int"
|
|
13780
|
+
]
|
|
13781
|
+
},
|
|
13782
|
+
"value": {
|
|
13783
|
+
"$ref": "#/components/schemas/Common.AttributeInt64"
|
|
13784
|
+
}
|
|
13785
|
+
},
|
|
13786
|
+
"unevaluatedProperties": {
|
|
13787
|
+
"not": {}
|
|
13788
|
+
},
|
|
13789
|
+
"description": "Tagged OTLP signed 64-bit integer attribute."
|
|
13790
|
+
},
|
|
13724
13791
|
"Common.AttributeKeyValueListValue": {
|
|
13725
13792
|
"type": "object",
|
|
13793
|
+
"required": [
|
|
13794
|
+
"type",
|
|
13795
|
+
"values"
|
|
13796
|
+
],
|
|
13797
|
+
"properties": {
|
|
13798
|
+
"type": {
|
|
13799
|
+
"type": "string",
|
|
13800
|
+
"enum": [
|
|
13801
|
+
"kvlist"
|
|
13802
|
+
]
|
|
13803
|
+
},
|
|
13804
|
+
"values": {
|
|
13805
|
+
"type": "object",
|
|
13806
|
+
"unevaluatedProperties": {
|
|
13807
|
+
"$ref": "#/components/schemas/Common.AttributeValue"
|
|
13808
|
+
}
|
|
13809
|
+
}
|
|
13810
|
+
},
|
|
13726
13811
|
"unevaluatedProperties": {
|
|
13727
|
-
"
|
|
13812
|
+
"not": {}
|
|
13728
13813
|
},
|
|
13729
|
-
"description": "
|
|
13814
|
+
"description": "Tagged recursive OTLP key-value-list, distinct from other object-shaped attribute variants."
|
|
13730
13815
|
},
|
|
13731
13816
|
"Common.AttributeValue": {
|
|
13732
13817
|
"anyOf": [
|
|
13818
|
+
{
|
|
13819
|
+
"type": "null"
|
|
13820
|
+
},
|
|
13733
13821
|
{
|
|
13734
13822
|
"type": "string"
|
|
13735
13823
|
},
|
|
@@ -13737,12 +13825,10 @@
|
|
|
13737
13825
|
"type": "boolean"
|
|
13738
13826
|
},
|
|
13739
13827
|
{
|
|
13740
|
-
"
|
|
13741
|
-
"format": "int64"
|
|
13828
|
+
"$ref": "#/components/schemas/Common.AttributeIntValue"
|
|
13742
13829
|
},
|
|
13743
13830
|
{
|
|
13744
|
-
"
|
|
13745
|
-
"format": "double"
|
|
13831
|
+
"$ref": "#/components/schemas/Common.AttributeDoubleValue"
|
|
13746
13832
|
},
|
|
13747
13833
|
{
|
|
13748
13834
|
"$ref": "#/components/schemas/Common.AttributeBytesValue"
|
|
@@ -13826,6 +13912,48 @@
|
|
|
13826
13912
|
"minimum": 0,
|
|
13827
13913
|
"description": "Duration in seconds"
|
|
13828
13914
|
},
|
|
13915
|
+
"Common.EntityAttributeKey": {
|
|
13916
|
+
"type": "string",
|
|
13917
|
+
"minLength": 1,
|
|
13918
|
+
"description": "A non-empty Resource attribute key referenced by an OpenTelemetry entity."
|
|
13919
|
+
},
|
|
13920
|
+
"Common.EntityRef": {
|
|
13921
|
+
"type": "object",
|
|
13922
|
+
"required": [
|
|
13923
|
+
"type",
|
|
13924
|
+
"id_keys"
|
|
13925
|
+
],
|
|
13926
|
+
"properties": {
|
|
13927
|
+
"schema_url": {
|
|
13928
|
+
"type": "string",
|
|
13929
|
+
"description": "Schema URL applying to the entity and its referenced Resource attributes, when known."
|
|
13930
|
+
},
|
|
13931
|
+
"type": {
|
|
13932
|
+
"type": "string",
|
|
13933
|
+
"minLength": 1,
|
|
13934
|
+
"description": "Stable non-empty entity type, such as service or host."
|
|
13935
|
+
},
|
|
13936
|
+
"id_keys": {
|
|
13937
|
+
"type": "array",
|
|
13938
|
+
"items": {
|
|
13939
|
+
"$ref": "#/components/schemas/Common.EntityAttributeKey"
|
|
13940
|
+
},
|
|
13941
|
+
"minItems": 1,
|
|
13942
|
+
"description": "Non-empty set of Resource attribute keys that identify the entity."
|
|
13943
|
+
},
|
|
13944
|
+
"description_keys": {
|
|
13945
|
+
"type": "array",
|
|
13946
|
+
"items": {
|
|
13947
|
+
"$ref": "#/components/schemas/Common.EntityAttributeKey"
|
|
13948
|
+
},
|
|
13949
|
+
"description": "Resource attribute keys that describe but do not identify the entity."
|
|
13950
|
+
}
|
|
13951
|
+
},
|
|
13952
|
+
"unevaluatedProperties": {
|
|
13953
|
+
"not": {}
|
|
13954
|
+
},
|
|
13955
|
+
"description": "A reference to an OpenTelemetry entity described by attributes on the containing Resource."
|
|
13956
|
+
},
|
|
13829
13957
|
"Common.Errors.ApiError": {
|
|
13830
13958
|
"anyOf": [
|
|
13831
13959
|
{
|
|
@@ -17883,7 +18011,7 @@
|
|
|
17883
18011
|
},
|
|
17884
18012
|
"event_name": {
|
|
17885
18013
|
"type": "string",
|
|
17886
|
-
"description": "
|
|
18014
|
+
"description": "Optional event category whose presence identifies this log record as an event; records with the same name are expected to share one body and attribute schema."
|
|
17887
18015
|
},
|
|
17888
18016
|
"resource": {
|
|
17889
18017
|
"allOf": [
|
|
@@ -17982,8 +18110,7 @@
|
|
|
17982
18110
|
"$ref": "#/components/schemas/OTel.Metrics.MetricUInt64"
|
|
17983
18111
|
},
|
|
17984
18112
|
"sum": {
|
|
17985
|
-
"
|
|
17986
|
-
"format": "double"
|
|
18113
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
17987
18114
|
},
|
|
17988
18115
|
"scale": {
|
|
17989
18116
|
"type": "integer",
|
|
@@ -17993,8 +18120,7 @@
|
|
|
17993
18120
|
"$ref": "#/components/schemas/OTel.Metrics.MetricUInt64"
|
|
17994
18121
|
},
|
|
17995
18122
|
"zero_threshold": {
|
|
17996
|
-
"
|
|
17997
|
-
"format": "double"
|
|
18123
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
17998
18124
|
},
|
|
17999
18125
|
"positive": {
|
|
18000
18126
|
"$ref": "#/components/schemas/OTel.Metrics.ExponentialHistogramBuckets"
|
|
@@ -18003,12 +18129,10 @@
|
|
|
18003
18129
|
"$ref": "#/components/schemas/OTel.Metrics.ExponentialHistogramBuckets"
|
|
18004
18130
|
},
|
|
18005
18131
|
"min": {
|
|
18006
|
-
"
|
|
18007
|
-
"format": "double"
|
|
18132
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18008
18133
|
},
|
|
18009
18134
|
"max": {
|
|
18010
|
-
"
|
|
18011
|
-
"format": "double"
|
|
18135
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18012
18136
|
},
|
|
18013
18137
|
"aggregation_temporality": {
|
|
18014
18138
|
"$ref": "#/components/schemas/OTel.Enums.AggregationTemporality"
|
|
@@ -18033,8 +18157,7 @@
|
|
|
18033
18157
|
"OTel.Metrics.GaugeMetricPoint": {
|
|
18034
18158
|
"type": "object",
|
|
18035
18159
|
"required": [
|
|
18036
|
-
"type"
|
|
18037
|
-
"value"
|
|
18160
|
+
"type"
|
|
18038
18161
|
],
|
|
18039
18162
|
"properties": {
|
|
18040
18163
|
"type": {
|
|
@@ -18044,7 +18167,12 @@
|
|
|
18044
18167
|
]
|
|
18045
18168
|
},
|
|
18046
18169
|
"value": {
|
|
18047
|
-
"
|
|
18170
|
+
"allOf": [
|
|
18171
|
+
{
|
|
18172
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricNumberValue"
|
|
18173
|
+
}
|
|
18174
|
+
],
|
|
18175
|
+
"description": "Recorded value, absent when flags contain NO_RECORDED_VALUE (bit 1)."
|
|
18048
18176
|
},
|
|
18049
18177
|
"exemplars": {
|
|
18050
18178
|
"type": "array",
|
|
@@ -18083,8 +18211,7 @@
|
|
|
18083
18211
|
"$ref": "#/components/schemas/OTel.Metrics.MetricUInt64"
|
|
18084
18212
|
},
|
|
18085
18213
|
"sum": {
|
|
18086
|
-
"
|
|
18087
|
-
"format": "double"
|
|
18214
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18088
18215
|
},
|
|
18089
18216
|
"bucket_counts": {
|
|
18090
18217
|
"type": "array",
|
|
@@ -18100,12 +18227,10 @@
|
|
|
18100
18227
|
}
|
|
18101
18228
|
},
|
|
18102
18229
|
"min": {
|
|
18103
|
-
"
|
|
18104
|
-
"format": "double"
|
|
18230
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18105
18231
|
},
|
|
18106
18232
|
"max": {
|
|
18107
|
-
"
|
|
18108
|
-
"format": "double"
|
|
18233
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18109
18234
|
},
|
|
18110
18235
|
"aggregation_temporality": {
|
|
18111
18236
|
"$ref": "#/components/schemas/OTel.Enums.AggregationTemporality"
|
|
@@ -18127,6 +18252,23 @@
|
|
|
18127
18252
|
],
|
|
18128
18253
|
"description": "Explicit-bucket histogram measurement."
|
|
18129
18254
|
},
|
|
18255
|
+
"OTel.Metrics.MetricDouble": {
|
|
18256
|
+
"anyOf": [
|
|
18257
|
+
{
|
|
18258
|
+
"type": "number",
|
|
18259
|
+
"format": "double"
|
|
18260
|
+
},
|
|
18261
|
+
{
|
|
18262
|
+
"type": "string",
|
|
18263
|
+
"enum": [
|
|
18264
|
+
"NaN",
|
|
18265
|
+
"Infinity",
|
|
18266
|
+
"-Infinity"
|
|
18267
|
+
]
|
|
18268
|
+
}
|
|
18269
|
+
],
|
|
18270
|
+
"description": "An OTLP double encoded as a JSON number when finite or as a canonical named string when non-finite."
|
|
18271
|
+
},
|
|
18130
18272
|
"OTel.Metrics.MetricDoubleValue": {
|
|
18131
18273
|
"type": "object",
|
|
18132
18274
|
"required": [
|
|
@@ -18134,8 +18276,7 @@
|
|
|
18134
18276
|
],
|
|
18135
18277
|
"properties": {
|
|
18136
18278
|
"as_double": {
|
|
18137
|
-
"
|
|
18138
|
-
"format": "double"
|
|
18279
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18139
18280
|
}
|
|
18140
18281
|
},
|
|
18141
18282
|
"unevaluatedProperties": {
|
|
@@ -18316,7 +18457,6 @@
|
|
|
18316
18457
|
"type": "object",
|
|
18317
18458
|
"required": [
|
|
18318
18459
|
"type",
|
|
18319
|
-
"value",
|
|
18320
18460
|
"aggregation_temporality",
|
|
18321
18461
|
"is_monotonic"
|
|
18322
18462
|
],
|
|
@@ -18328,7 +18468,12 @@
|
|
|
18328
18468
|
]
|
|
18329
18469
|
},
|
|
18330
18470
|
"value": {
|
|
18331
|
-
"
|
|
18471
|
+
"allOf": [
|
|
18472
|
+
{
|
|
18473
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricNumberValue"
|
|
18474
|
+
}
|
|
18475
|
+
],
|
|
18476
|
+
"description": "Recorded value, absent when flags contain NO_RECORDED_VALUE (bit 1)."
|
|
18332
18477
|
},
|
|
18333
18478
|
"aggregation_temporality": {
|
|
18334
18479
|
"$ref": "#/components/schemas/OTel.Enums.AggregationTemporality"
|
|
@@ -18372,8 +18517,7 @@
|
|
|
18372
18517
|
"$ref": "#/components/schemas/OTel.Metrics.MetricUInt64"
|
|
18373
18518
|
},
|
|
18374
18519
|
"sum": {
|
|
18375
|
-
"
|
|
18376
|
-
"format": "double"
|
|
18520
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18377
18521
|
},
|
|
18378
18522
|
"quantile_values": {
|
|
18379
18523
|
"type": "array",
|
|
@@ -18392,6 +18536,26 @@
|
|
|
18392
18536
|
],
|
|
18393
18537
|
"description": "Pre-aggregated summary measurement."
|
|
18394
18538
|
},
|
|
18539
|
+
"OTel.Metrics.SummaryQuantileDouble": {
|
|
18540
|
+
"anyOf": [
|
|
18541
|
+
{
|
|
18542
|
+
"$ref": "#/components/schemas/OTel.Metrics.SummaryQuantileFiniteValue"
|
|
18543
|
+
},
|
|
18544
|
+
{
|
|
18545
|
+
"type": "string",
|
|
18546
|
+
"enum": [
|
|
18547
|
+
"Infinity"
|
|
18548
|
+
]
|
|
18549
|
+
}
|
|
18550
|
+
],
|
|
18551
|
+
"description": "A non-negative OTLP summary quantile value, including canonical positive infinity."
|
|
18552
|
+
},
|
|
18553
|
+
"OTel.Metrics.SummaryQuantileFiniteValue": {
|
|
18554
|
+
"type": "number",
|
|
18555
|
+
"format": "double",
|
|
18556
|
+
"minimum": 0,
|
|
18557
|
+
"description": "A finite, non-negative value observed at an OTLP summary quantile."
|
|
18558
|
+
},
|
|
18395
18559
|
"OTel.Metrics.SummaryQuantileValue": {
|
|
18396
18560
|
"type": "object",
|
|
18397
18561
|
"required": [
|
|
@@ -18406,9 +18570,7 @@
|
|
|
18406
18570
|
"maximum": 1
|
|
18407
18571
|
},
|
|
18408
18572
|
"value": {
|
|
18409
|
-
"
|
|
18410
|
-
"format": "double",
|
|
18411
|
-
"minimum": 0
|
|
18573
|
+
"$ref": "#/components/schemas/OTel.Metrics.SummaryQuantileDouble"
|
|
18412
18574
|
}
|
|
18413
18575
|
},
|
|
18414
18576
|
"unevaluatedProperties": {
|
|
@@ -19192,6 +19354,13 @@
|
|
|
19192
19354
|
}
|
|
19193
19355
|
],
|
|
19194
19356
|
"description": "Dropped attributes count"
|
|
19357
|
+
},
|
|
19358
|
+
"entity_refs": {
|
|
19359
|
+
"type": "array",
|
|
19360
|
+
"items": {
|
|
19361
|
+
"$ref": "#/components/schemas/Common.EntityRef"
|
|
19362
|
+
},
|
|
19363
|
+
"description": "Entities participating in this Resource, keyed by attributes on the Resource."
|
|
19195
19364
|
}
|
|
19196
19365
|
},
|
|
19197
19366
|
"unevaluatedProperties": {
|
|
@@ -577,10 +577,13 @@ export declare const GenAiEtlFrontierCostBasisValues: {
|
|
|
577
577
|
readonly unavailable: "unavailable";
|
|
578
578
|
};
|
|
579
579
|
export type GenAiEtlFrontierCostBasis = typeof GenAiEtlFrontierCostBasisValues[keyof typeof GenAiEtlFrontierCostBasisValues];
|
|
580
|
-
export type
|
|
580
|
+
export type AttributeDouble = number | "NaN" | "Infinity" | "-Infinity";
|
|
581
|
+
export type AttributeValue = null | string | boolean | AttributeIntValue | AttributeDoubleValue | AttributeBytesValue | AttributeValue[] | AttributeKeyValueListValue;
|
|
581
582
|
export type ApiError = NotFoundError | ValidationError | UnauthorizedError | ForbiddenError | ConflictError | RateLimitError | InternalServerError | BadGatewayError | ServiceUnavailableError;
|
|
582
583
|
export type LogBody = LogBodyString | LogBodyKvList | LogBodyArray | LogBodyBytes;
|
|
584
|
+
export type MetricDouble = number | "NaN" | "Infinity" | "-Infinity";
|
|
583
585
|
export type MetricNumberValue = MetricIntegerValue | MetricDoubleValue;
|
|
586
|
+
export type SummaryQuantileDouble = number | "Infinity";
|
|
584
587
|
export type MetricPoint = GaugeMetricPoint | SumMetricPoint | HistogramMetricPoint | ExponentialHistogramMetricPoint | SummaryMetricPoint;
|
|
585
588
|
export type RunnerMcpServerConfiguration = RunnerMcpStdioServerConfiguration | RunnerMcpStreamableHttpServerConfiguration | RunnerMcpSseServerConfiguration | RunnerMcpInProcessServerConfiguration | RunnerMcpBuiltinServerConfiguration;
|
|
586
589
|
export type RunnerMcpTestAssertion = RunnerMcpStatusAssertion | RunnerMcpExactAssertion | RunnerMcpPartialAssertion | RunnerMcpSchemaAssertion | RunnerMcpPatternAssertion | RunnerMcpLatencyAssertion;
|
|
@@ -599,8 +602,17 @@ export interface AttributeBytesValue {
|
|
|
599
602
|
"type": "bytes";
|
|
600
603
|
"base64": string;
|
|
601
604
|
}
|
|
605
|
+
export interface AttributeIntValue {
|
|
606
|
+
"type": "int";
|
|
607
|
+
"value": string;
|
|
608
|
+
}
|
|
609
|
+
export interface AttributeDoubleValue {
|
|
610
|
+
"type": "double";
|
|
611
|
+
"value": AttributeDouble;
|
|
612
|
+
}
|
|
602
613
|
export interface AttributeKeyValueListValue {
|
|
603
|
-
|
|
614
|
+
"type": "kvlist";
|
|
615
|
+
"values": Record<string, AttributeValue>;
|
|
604
616
|
}
|
|
605
617
|
export interface Attribute {
|
|
606
618
|
"key": string;
|
|
@@ -609,6 +621,12 @@ export interface Attribute {
|
|
|
609
621
|
export interface Attributes {
|
|
610
622
|
"items": Attribute[];
|
|
611
623
|
}
|
|
624
|
+
export interface EntityRef {
|
|
625
|
+
"schema_url"?: string;
|
|
626
|
+
"type": string;
|
|
627
|
+
"id_keys": string[];
|
|
628
|
+
"description_keys"?: string[];
|
|
629
|
+
}
|
|
612
630
|
export interface InstrumentationScope {
|
|
613
631
|
"name": string;
|
|
614
632
|
"version"?: string;
|
|
@@ -727,6 +745,7 @@ export interface Resource {
|
|
|
727
745
|
"k8s.deployment.name"?: string;
|
|
728
746
|
"attributes"?: Attribute[];
|
|
729
747
|
"dropped_attributes_count"?: number;
|
|
748
|
+
"entity_refs"?: EntityRef[];
|
|
730
749
|
}
|
|
731
750
|
export interface Span {
|
|
732
751
|
"span_id": SpanId;
|
|
@@ -846,7 +865,7 @@ export interface MetricIntegerValue {
|
|
|
846
865
|
"as_int": string;
|
|
847
866
|
}
|
|
848
867
|
export interface MetricDoubleValue {
|
|
849
|
-
"as_double":
|
|
868
|
+
"as_double": MetricDouble;
|
|
850
869
|
}
|
|
851
870
|
export interface MetricExemplar {
|
|
852
871
|
"time_unix_nano": string;
|
|
@@ -861,7 +880,7 @@ export interface ExponentialHistogramBuckets {
|
|
|
861
880
|
}
|
|
862
881
|
export interface SummaryQuantileValue {
|
|
863
882
|
"quantile": number;
|
|
864
|
-
"value":
|
|
883
|
+
"value": SummaryQuantileDouble;
|
|
865
884
|
}
|
|
866
885
|
export interface MetricPointBase {
|
|
867
886
|
"name": string;
|
|
@@ -879,12 +898,12 @@ export interface MetricPointBase {
|
|
|
879
898
|
}
|
|
880
899
|
export interface GaugeMetricPoint extends MetricPointBase {
|
|
881
900
|
"type": "gauge";
|
|
882
|
-
"value"
|
|
901
|
+
"value"?: MetricNumberValue;
|
|
883
902
|
"exemplars"?: MetricExemplar[];
|
|
884
903
|
}
|
|
885
904
|
export interface SumMetricPoint extends MetricPointBase {
|
|
886
905
|
"type": "sum";
|
|
887
|
-
"value"
|
|
906
|
+
"value"?: MetricNumberValue;
|
|
888
907
|
"aggregation_temporality": AggregationTemporality;
|
|
889
908
|
"is_monotonic": boolean;
|
|
890
909
|
"exemplars"?: MetricExemplar[];
|
|
@@ -892,32 +911,32 @@ export interface SumMetricPoint extends MetricPointBase {
|
|
|
892
911
|
export interface HistogramMetricPoint extends MetricPointBase {
|
|
893
912
|
"type": "histogram";
|
|
894
913
|
"count": string;
|
|
895
|
-
"sum"?:
|
|
914
|
+
"sum"?: MetricDouble;
|
|
896
915
|
"bucket_counts": string[];
|
|
897
916
|
"explicit_bounds": number[];
|
|
898
|
-
"min"?:
|
|
899
|
-
"max"?:
|
|
917
|
+
"min"?: MetricDouble;
|
|
918
|
+
"max"?: MetricDouble;
|
|
900
919
|
"aggregation_temporality": AggregationTemporality;
|
|
901
920
|
"exemplars"?: MetricExemplar[];
|
|
902
921
|
}
|
|
903
922
|
export interface ExponentialHistogramMetricPoint extends MetricPointBase {
|
|
904
923
|
"type": "exponential_histogram";
|
|
905
924
|
"count": string;
|
|
906
|
-
"sum"?:
|
|
925
|
+
"sum"?: MetricDouble;
|
|
907
926
|
"scale": number;
|
|
908
927
|
"zero_count": string;
|
|
909
|
-
"zero_threshold":
|
|
928
|
+
"zero_threshold": MetricDouble;
|
|
910
929
|
"positive": ExponentialHistogramBuckets;
|
|
911
930
|
"negative": ExponentialHistogramBuckets;
|
|
912
|
-
"min"?:
|
|
913
|
-
"max"?:
|
|
931
|
+
"min"?: MetricDouble;
|
|
932
|
+
"max"?: MetricDouble;
|
|
914
933
|
"aggregation_temporality": AggregationTemporality;
|
|
915
934
|
"exemplars"?: MetricExemplar[];
|
|
916
935
|
}
|
|
917
936
|
export interface SummaryMetricPoint extends MetricPointBase {
|
|
918
937
|
"type": "summary";
|
|
919
938
|
"count": string;
|
|
920
|
-
"sum":
|
|
939
|
+
"sum": MetricDouble;
|
|
921
940
|
"quantile_values": SummaryQuantileValue[];
|
|
922
941
|
}
|
|
923
942
|
export interface Profile {
|
package/otel/logs.tsp
CHANGED
|
@@ -61,7 +61,7 @@ model LogRecord {
|
|
|
61
61
|
@encodedName("application/json", "span_id")
|
|
62
62
|
spanId?: SpanId;
|
|
63
63
|
|
|
64
|
-
@doc("
|
|
64
|
+
@doc("Optional event category whose presence identifies this log record as an event; records with the same name are expected to share one body and attribute schema.")
|
|
65
65
|
@encodedName("application/json", "event_name")
|
|
66
66
|
eventName?: string;
|
|
67
67
|
|
package/otel/metrics.tsp
CHANGED
|
@@ -38,6 +38,24 @@ scalar MetricUnixNanos extends uint64;
|
|
|
38
38
|
@TypeSpec.OpenAPI.extension("x-csharp-type", "ulong")
|
|
39
39
|
scalar MetricStartUnixNanos extends uint64;
|
|
40
40
|
|
|
41
|
+
@doc("An OTLP double encoded as a JSON number when finite or as a canonical named string when non-finite.")
|
|
42
|
+
union MetricDouble {
|
|
43
|
+
finite: float64,
|
|
44
|
+
nan: "NaN",
|
|
45
|
+
positiveInfinity: "Infinity",
|
|
46
|
+
negativeInfinity: "-Infinity",
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@doc("A finite, non-negative value observed at an OTLP summary quantile.")
|
|
50
|
+
@minValue(0)
|
|
51
|
+
scalar SummaryQuantileFiniteValue extends float64;
|
|
52
|
+
|
|
53
|
+
@doc("A non-negative OTLP summary quantile value, including canonical positive infinity.")
|
|
54
|
+
union SummaryQuantileDouble {
|
|
55
|
+
finite: SummaryQuantileFiniteValue,
|
|
56
|
+
positiveInfinity: "Infinity",
|
|
57
|
+
}
|
|
58
|
+
|
|
41
59
|
@doc("An integer measurement value from an OTLP number data point or exemplar.")
|
|
42
60
|
model MetricIntegerValue {
|
|
43
61
|
@encodedName("application/json", "as_int")
|
|
@@ -47,7 +65,7 @@ model MetricIntegerValue {
|
|
|
47
65
|
@doc("A floating-point measurement value from an OTLP number data point or exemplar.")
|
|
48
66
|
model MetricDoubleValue {
|
|
49
67
|
@encodedName("application/json", "as_double")
|
|
50
|
-
asDouble:
|
|
68
|
+
asDouble: MetricDouble;
|
|
51
69
|
}
|
|
52
70
|
|
|
53
71
|
@doc("The exactly-one numeric value carried by an OTLP number data point or exemplar.")
|
|
@@ -88,8 +106,7 @@ model SummaryQuantileValue {
|
|
|
88
106
|
@maxValue(1)
|
|
89
107
|
quantile: float64;
|
|
90
108
|
|
|
91
|
-
|
|
92
|
-
value: float64;
|
|
109
|
+
value: SummaryQuantileDouble;
|
|
93
110
|
}
|
|
94
111
|
|
|
95
112
|
@doc("Fields shared by every persisted OTLP metric data point.")
|
|
@@ -132,14 +149,19 @@ model MetricPointBase {
|
|
|
132
149
|
@doc("Instantaneous gauge measurement.")
|
|
133
150
|
model GaugeMetricPoint extends MetricPointBase {
|
|
134
151
|
type: "gauge";
|
|
135
|
-
|
|
152
|
+
|
|
153
|
+
@doc("Recorded value, absent when flags contain NO_RECORDED_VALUE (bit 1).")
|
|
154
|
+
value?: MetricNumberValue;
|
|
155
|
+
|
|
136
156
|
exemplars?: MetricExemplar[];
|
|
137
157
|
}
|
|
138
158
|
|
|
139
159
|
@doc("Delta or cumulative sum measurement.")
|
|
140
160
|
model SumMetricPoint extends MetricPointBase {
|
|
141
161
|
type: "sum";
|
|
142
|
-
|
|
162
|
+
|
|
163
|
+
@doc("Recorded value, absent when flags contain NO_RECORDED_VALUE (bit 1).")
|
|
164
|
+
value?: MetricNumberValue;
|
|
143
165
|
|
|
144
166
|
@encodedName("application/json", "aggregation_temporality")
|
|
145
167
|
aggregationTemporality: AggregationTemporality;
|
|
@@ -154,7 +176,7 @@ model SumMetricPoint extends MetricPointBase {
|
|
|
154
176
|
model HistogramMetricPoint extends MetricPointBase {
|
|
155
177
|
type: "histogram";
|
|
156
178
|
count: MetricUInt64;
|
|
157
|
-
sum?:
|
|
179
|
+
sum?: MetricDouble;
|
|
158
180
|
|
|
159
181
|
@encodedName("application/json", "bucket_counts")
|
|
160
182
|
bucketCounts: MetricUInt64[];
|
|
@@ -162,8 +184,8 @@ model HistogramMetricPoint extends MetricPointBase {
|
|
|
162
184
|
@encodedName("application/json", "explicit_bounds")
|
|
163
185
|
explicitBounds: float64[];
|
|
164
186
|
|
|
165
|
-
min?:
|
|
166
|
-
max?:
|
|
187
|
+
min?: MetricDouble;
|
|
188
|
+
max?: MetricDouble;
|
|
167
189
|
|
|
168
190
|
@encodedName("application/json", "aggregation_temporality")
|
|
169
191
|
aggregationTemporality: AggregationTemporality;
|
|
@@ -175,19 +197,19 @@ model HistogramMetricPoint extends MetricPointBase {
|
|
|
175
197
|
model ExponentialHistogramMetricPoint extends MetricPointBase {
|
|
176
198
|
type: "exponential_histogram";
|
|
177
199
|
count: MetricUInt64;
|
|
178
|
-
sum?:
|
|
200
|
+
sum?: MetricDouble;
|
|
179
201
|
scale: int32;
|
|
180
202
|
|
|
181
203
|
@encodedName("application/json", "zero_count")
|
|
182
204
|
zeroCount: MetricUInt64;
|
|
183
205
|
|
|
184
206
|
@encodedName("application/json", "zero_threshold")
|
|
185
|
-
zeroThreshold:
|
|
207
|
+
zeroThreshold: MetricDouble;
|
|
186
208
|
|
|
187
209
|
positive: ExponentialHistogramBuckets;
|
|
188
210
|
negative: ExponentialHistogramBuckets;
|
|
189
|
-
min?:
|
|
190
|
-
max?:
|
|
211
|
+
min?: MetricDouble;
|
|
212
|
+
max?: MetricDouble;
|
|
191
213
|
|
|
192
214
|
@encodedName("application/json", "aggregation_temporality")
|
|
193
215
|
aggregationTemporality: AggregationTemporality;
|
|
@@ -199,7 +221,7 @@ model ExponentialHistogramMetricPoint extends MetricPointBase {
|
|
|
199
221
|
model SummaryMetricPoint extends MetricPointBase {
|
|
200
222
|
type: "summary";
|
|
201
223
|
count: MetricUInt64;
|
|
202
|
-
sum:
|
|
224
|
+
sum: MetricDouble;
|
|
203
225
|
|
|
204
226
|
@encodedName("application/json", "quantile_values")
|
|
205
227
|
quantileValues: SummaryQuantileValue[];
|
package/otel/resource.tsp
CHANGED
|
@@ -163,6 +163,10 @@ model Resource {
|
|
|
163
163
|
@doc("Dropped attributes count")
|
|
164
164
|
@encodedName("application/json", "dropped_attributes_count")
|
|
165
165
|
droppedAttributesCount?: Count;
|
|
166
|
+
|
|
167
|
+
@doc("Entities participating in this Resource, keyed by attributes on the Resource.")
|
|
168
|
+
@encodedName("application/json", "entity_refs")
|
|
169
|
+
entityRefs?: EntityRef[];
|
|
166
170
|
}
|
|
167
171
|
|
|
168
172
|
// =============================================================================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ancplua/qyl-api-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "TypeSpec source of truth for qyl API contracts. Emits OpenAPI, JSON Schema, Qyl.Api.Contracts DTOs, and TypeScript contract types; not an OpenTelemetry package, storage schema, or server implementation.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|