@ancplua/qyl-api-schema 0.6.0 → 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 +5 -3
- package/common/types.tsp +59 -6
- package/generated/json-schema/qyl-api-schema.json +1674 -32
- package/generated/openapi/qyl.openapi.json +205 -32
- package/generated/ts-runtime/api.d.ts +34 -14
- package/otel/logs.tsp +4 -0
- package/otel/metrics.tsp +35 -13
- package/otel/resource.tsp +4 -0
- package/package.json +1 -1
|
@@ -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
|
{
|
|
@@ -17881,6 +18009,10 @@
|
|
|
17881
18009
|
],
|
|
17882
18010
|
"description": "Associated span ID"
|
|
17883
18011
|
},
|
|
18012
|
+
"event_name": {
|
|
18013
|
+
"type": "string",
|
|
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."
|
|
18015
|
+
},
|
|
17884
18016
|
"resource": {
|
|
17885
18017
|
"allOf": [
|
|
17886
18018
|
{
|
|
@@ -17978,8 +18110,7 @@
|
|
|
17978
18110
|
"$ref": "#/components/schemas/OTel.Metrics.MetricUInt64"
|
|
17979
18111
|
},
|
|
17980
18112
|
"sum": {
|
|
17981
|
-
"
|
|
17982
|
-
"format": "double"
|
|
18113
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
17983
18114
|
},
|
|
17984
18115
|
"scale": {
|
|
17985
18116
|
"type": "integer",
|
|
@@ -17989,8 +18120,7 @@
|
|
|
17989
18120
|
"$ref": "#/components/schemas/OTel.Metrics.MetricUInt64"
|
|
17990
18121
|
},
|
|
17991
18122
|
"zero_threshold": {
|
|
17992
|
-
"
|
|
17993
|
-
"format": "double"
|
|
18123
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
17994
18124
|
},
|
|
17995
18125
|
"positive": {
|
|
17996
18126
|
"$ref": "#/components/schemas/OTel.Metrics.ExponentialHistogramBuckets"
|
|
@@ -17999,12 +18129,10 @@
|
|
|
17999
18129
|
"$ref": "#/components/schemas/OTel.Metrics.ExponentialHistogramBuckets"
|
|
18000
18130
|
},
|
|
18001
18131
|
"min": {
|
|
18002
|
-
"
|
|
18003
|
-
"format": "double"
|
|
18132
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18004
18133
|
},
|
|
18005
18134
|
"max": {
|
|
18006
|
-
"
|
|
18007
|
-
"format": "double"
|
|
18135
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18008
18136
|
},
|
|
18009
18137
|
"aggregation_temporality": {
|
|
18010
18138
|
"$ref": "#/components/schemas/OTel.Enums.AggregationTemporality"
|
|
@@ -18029,8 +18157,7 @@
|
|
|
18029
18157
|
"OTel.Metrics.GaugeMetricPoint": {
|
|
18030
18158
|
"type": "object",
|
|
18031
18159
|
"required": [
|
|
18032
|
-
"type"
|
|
18033
|
-
"value"
|
|
18160
|
+
"type"
|
|
18034
18161
|
],
|
|
18035
18162
|
"properties": {
|
|
18036
18163
|
"type": {
|
|
@@ -18040,7 +18167,12 @@
|
|
|
18040
18167
|
]
|
|
18041
18168
|
},
|
|
18042
18169
|
"value": {
|
|
18043
|
-
"
|
|
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)."
|
|
18044
18176
|
},
|
|
18045
18177
|
"exemplars": {
|
|
18046
18178
|
"type": "array",
|
|
@@ -18079,8 +18211,7 @@
|
|
|
18079
18211
|
"$ref": "#/components/schemas/OTel.Metrics.MetricUInt64"
|
|
18080
18212
|
},
|
|
18081
18213
|
"sum": {
|
|
18082
|
-
"
|
|
18083
|
-
"format": "double"
|
|
18214
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18084
18215
|
},
|
|
18085
18216
|
"bucket_counts": {
|
|
18086
18217
|
"type": "array",
|
|
@@ -18096,12 +18227,10 @@
|
|
|
18096
18227
|
}
|
|
18097
18228
|
},
|
|
18098
18229
|
"min": {
|
|
18099
|
-
"
|
|
18100
|
-
"format": "double"
|
|
18230
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18101
18231
|
},
|
|
18102
18232
|
"max": {
|
|
18103
|
-
"
|
|
18104
|
-
"format": "double"
|
|
18233
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18105
18234
|
},
|
|
18106
18235
|
"aggregation_temporality": {
|
|
18107
18236
|
"$ref": "#/components/schemas/OTel.Enums.AggregationTemporality"
|
|
@@ -18123,6 +18252,23 @@
|
|
|
18123
18252
|
],
|
|
18124
18253
|
"description": "Explicit-bucket histogram measurement."
|
|
18125
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
|
+
},
|
|
18126
18272
|
"OTel.Metrics.MetricDoubleValue": {
|
|
18127
18273
|
"type": "object",
|
|
18128
18274
|
"required": [
|
|
@@ -18130,8 +18276,7 @@
|
|
|
18130
18276
|
],
|
|
18131
18277
|
"properties": {
|
|
18132
18278
|
"as_double": {
|
|
18133
|
-
"
|
|
18134
|
-
"format": "double"
|
|
18279
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18135
18280
|
}
|
|
18136
18281
|
},
|
|
18137
18282
|
"unevaluatedProperties": {
|
|
@@ -18312,7 +18457,6 @@
|
|
|
18312
18457
|
"type": "object",
|
|
18313
18458
|
"required": [
|
|
18314
18459
|
"type",
|
|
18315
|
-
"value",
|
|
18316
18460
|
"aggregation_temporality",
|
|
18317
18461
|
"is_monotonic"
|
|
18318
18462
|
],
|
|
@@ -18324,7 +18468,12 @@
|
|
|
18324
18468
|
]
|
|
18325
18469
|
},
|
|
18326
18470
|
"value": {
|
|
18327
|
-
"
|
|
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)."
|
|
18328
18477
|
},
|
|
18329
18478
|
"aggregation_temporality": {
|
|
18330
18479
|
"$ref": "#/components/schemas/OTel.Enums.AggregationTemporality"
|
|
@@ -18368,8 +18517,7 @@
|
|
|
18368
18517
|
"$ref": "#/components/schemas/OTel.Metrics.MetricUInt64"
|
|
18369
18518
|
},
|
|
18370
18519
|
"sum": {
|
|
18371
|
-
"
|
|
18372
|
-
"format": "double"
|
|
18520
|
+
"$ref": "#/components/schemas/OTel.Metrics.MetricDouble"
|
|
18373
18521
|
},
|
|
18374
18522
|
"quantile_values": {
|
|
18375
18523
|
"type": "array",
|
|
@@ -18388,6 +18536,26 @@
|
|
|
18388
18536
|
],
|
|
18389
18537
|
"description": "Pre-aggregated summary measurement."
|
|
18390
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
|
+
},
|
|
18391
18559
|
"OTel.Metrics.SummaryQuantileValue": {
|
|
18392
18560
|
"type": "object",
|
|
18393
18561
|
"required": [
|
|
@@ -18402,9 +18570,7 @@
|
|
|
18402
18570
|
"maximum": 1
|
|
18403
18571
|
},
|
|
18404
18572
|
"value": {
|
|
18405
|
-
"
|
|
18406
|
-
"format": "double",
|
|
18407
|
-
"minimum": 0
|
|
18573
|
+
"$ref": "#/components/schemas/OTel.Metrics.SummaryQuantileDouble"
|
|
18408
18574
|
}
|
|
18409
18575
|
},
|
|
18410
18576
|
"unevaluatedProperties": {
|
|
@@ -19188,6 +19354,13 @@
|
|
|
19188
19354
|
}
|
|
19189
19355
|
],
|
|
19190
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."
|
|
19191
19364
|
}
|
|
19192
19365
|
},
|
|
19193
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;
|
|
@@ -821,6 +840,7 @@ export interface LogRecord {
|
|
|
821
840
|
"flags"?: number;
|
|
822
841
|
"trace_id"?: TraceId;
|
|
823
842
|
"span_id"?: SpanId;
|
|
843
|
+
"event_name"?: string;
|
|
824
844
|
"resource": Resource;
|
|
825
845
|
"instrumentation_scope"?: InstrumentationScope;
|
|
826
846
|
}
|
|
@@ -845,7 +865,7 @@ export interface MetricIntegerValue {
|
|
|
845
865
|
"as_int": string;
|
|
846
866
|
}
|
|
847
867
|
export interface MetricDoubleValue {
|
|
848
|
-
"as_double":
|
|
868
|
+
"as_double": MetricDouble;
|
|
849
869
|
}
|
|
850
870
|
export interface MetricExemplar {
|
|
851
871
|
"time_unix_nano": string;
|
|
@@ -860,7 +880,7 @@ export interface ExponentialHistogramBuckets {
|
|
|
860
880
|
}
|
|
861
881
|
export interface SummaryQuantileValue {
|
|
862
882
|
"quantile": number;
|
|
863
|
-
"value":
|
|
883
|
+
"value": SummaryQuantileDouble;
|
|
864
884
|
}
|
|
865
885
|
export interface MetricPointBase {
|
|
866
886
|
"name": string;
|
|
@@ -878,12 +898,12 @@ export interface MetricPointBase {
|
|
|
878
898
|
}
|
|
879
899
|
export interface GaugeMetricPoint extends MetricPointBase {
|
|
880
900
|
"type": "gauge";
|
|
881
|
-
"value"
|
|
901
|
+
"value"?: MetricNumberValue;
|
|
882
902
|
"exemplars"?: MetricExemplar[];
|
|
883
903
|
}
|
|
884
904
|
export interface SumMetricPoint extends MetricPointBase {
|
|
885
905
|
"type": "sum";
|
|
886
|
-
"value"
|
|
906
|
+
"value"?: MetricNumberValue;
|
|
887
907
|
"aggregation_temporality": AggregationTemporality;
|
|
888
908
|
"is_monotonic": boolean;
|
|
889
909
|
"exemplars"?: MetricExemplar[];
|
|
@@ -891,32 +911,32 @@ export interface SumMetricPoint extends MetricPointBase {
|
|
|
891
911
|
export interface HistogramMetricPoint extends MetricPointBase {
|
|
892
912
|
"type": "histogram";
|
|
893
913
|
"count": string;
|
|
894
|
-
"sum"?:
|
|
914
|
+
"sum"?: MetricDouble;
|
|
895
915
|
"bucket_counts": string[];
|
|
896
916
|
"explicit_bounds": number[];
|
|
897
|
-
"min"?:
|
|
898
|
-
"max"?:
|
|
917
|
+
"min"?: MetricDouble;
|
|
918
|
+
"max"?: MetricDouble;
|
|
899
919
|
"aggregation_temporality": AggregationTemporality;
|
|
900
920
|
"exemplars"?: MetricExemplar[];
|
|
901
921
|
}
|
|
902
922
|
export interface ExponentialHistogramMetricPoint extends MetricPointBase {
|
|
903
923
|
"type": "exponential_histogram";
|
|
904
924
|
"count": string;
|
|
905
|
-
"sum"?:
|
|
925
|
+
"sum"?: MetricDouble;
|
|
906
926
|
"scale": number;
|
|
907
927
|
"zero_count": string;
|
|
908
|
-
"zero_threshold":
|
|
928
|
+
"zero_threshold": MetricDouble;
|
|
909
929
|
"positive": ExponentialHistogramBuckets;
|
|
910
930
|
"negative": ExponentialHistogramBuckets;
|
|
911
|
-
"min"?:
|
|
912
|
-
"max"?:
|
|
931
|
+
"min"?: MetricDouble;
|
|
932
|
+
"max"?: MetricDouble;
|
|
913
933
|
"aggregation_temporality": AggregationTemporality;
|
|
914
934
|
"exemplars"?: MetricExemplar[];
|
|
915
935
|
}
|
|
916
936
|
export interface SummaryMetricPoint extends MetricPointBase {
|
|
917
937
|
"type": "summary";
|
|
918
938
|
"count": string;
|
|
919
|
-
"sum":
|
|
939
|
+
"sum": MetricDouble;
|
|
920
940
|
"quantile_values": SummaryQuantileValue[];
|
|
921
941
|
}
|
|
922
942
|
export interface Profile {
|
package/otel/logs.tsp
CHANGED
|
@@ -61,6 +61,10 @@ model LogRecord {
|
|
|
61
61
|
@encodedName("application/json", "span_id")
|
|
62
62
|
spanId?: SpanId;
|
|
63
63
|
|
|
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
|
+
@encodedName("application/json", "event_name")
|
|
66
|
+
eventName?: string;
|
|
67
|
+
|
|
64
68
|
@doc("Resource describing the entity that produced this log")
|
|
65
69
|
resource: Qyl.Api.Contracts.OTel.Resource.Resource;
|
|
66
70
|
|
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": {
|