@ancplua/qyl-api-schema 7.4.0 → 8.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/api/routes.tsp +109 -0
- package/generated/json-schema/qyl-api-schema.json +350 -0
- package/generated/openapi/qyl.openapi.json +918 -37
- package/generated/ts-runtime/api.d.ts +78 -0
- package/generated/ts-runtime/api.js +24 -1
- package/index.tsp +1 -0
- package/package.json +1 -1
|
@@ -237,6 +237,32 @@ export declare const OsTypeValues: {
|
|
|
237
237
|
readonly zOs: "z_os";
|
|
238
238
|
};
|
|
239
239
|
export type OsType = typeof OsTypeValues[keyof typeof OsTypeValues];
|
|
240
|
+
export declare const MetricKindValues: {
|
|
241
|
+
readonly gauge: "gauge";
|
|
242
|
+
readonly sum: "sum";
|
|
243
|
+
readonly histogram: "histogram";
|
|
244
|
+
readonly exponential_histogram: "exponential_histogram";
|
|
245
|
+
};
|
|
246
|
+
export type MetricKind = typeof MetricKindValues[keyof typeof MetricKindValues];
|
|
247
|
+
export declare const MetricTemporalityValues: {
|
|
248
|
+
readonly unspecified: "unspecified";
|
|
249
|
+
readonly delta: "delta";
|
|
250
|
+
readonly cumulative: "cumulative";
|
|
251
|
+
};
|
|
252
|
+
export type MetricTemporality = typeof MetricTemporalityValues[keyof typeof MetricTemporalityValues];
|
|
253
|
+
export declare const MetricAggregationValues: {
|
|
254
|
+
readonly avg: "avg";
|
|
255
|
+
readonly min: "min";
|
|
256
|
+
readonly max: "max";
|
|
257
|
+
readonly sum: "sum";
|
|
258
|
+
readonly count: "count";
|
|
259
|
+
readonly last: "last";
|
|
260
|
+
readonly p50: "p50";
|
|
261
|
+
readonly p90: "p90";
|
|
262
|
+
readonly p95: "p95";
|
|
263
|
+
readonly p99: "p99";
|
|
264
|
+
};
|
|
265
|
+
export type MetricAggregation = typeof MetricAggregationValues[keyof typeof MetricAggregationValues];
|
|
240
266
|
export declare const SessionEventNameValues: {
|
|
241
267
|
readonly sessionStart: "session.start";
|
|
242
268
|
readonly sessionEnd: "session.end";
|
|
@@ -869,6 +895,46 @@ export interface LogTemplate {
|
|
|
869
895
|
"parameters": Attribute[];
|
|
870
896
|
"rendered_message"?: string;
|
|
871
897
|
}
|
|
898
|
+
export interface MetricDescriptor {
|
|
899
|
+
"name": string;
|
|
900
|
+
"kind": MetricKind;
|
|
901
|
+
"temporality": MetricTemporality;
|
|
902
|
+
"monotonic": boolean;
|
|
903
|
+
"unit"?: string;
|
|
904
|
+
"description"?: string;
|
|
905
|
+
"series_count": number;
|
|
906
|
+
"last_seen": string;
|
|
907
|
+
}
|
|
908
|
+
export interface MetricSeries {
|
|
909
|
+
"series_id": string;
|
|
910
|
+
"name": string;
|
|
911
|
+
"kind": MetricKind;
|
|
912
|
+
"attributes": Attribute[];
|
|
913
|
+
"service_name"?: string;
|
|
914
|
+
"unit"?: string;
|
|
915
|
+
"first_seen": string;
|
|
916
|
+
"last_seen": string;
|
|
917
|
+
}
|
|
918
|
+
export interface MetricBucket {
|
|
919
|
+
"bucket_start": string;
|
|
920
|
+
"value": number | null;
|
|
921
|
+
"point_count": number;
|
|
922
|
+
}
|
|
923
|
+
export interface MetricSeriesResult {
|
|
924
|
+
"attributes": Attribute[];
|
|
925
|
+
"buckets": MetricBucket[];
|
|
926
|
+
}
|
|
927
|
+
export interface MetricQueryResult {
|
|
928
|
+
"name": string;
|
|
929
|
+
"kind": MetricKind;
|
|
930
|
+
"unit"?: string;
|
|
931
|
+
"aggregation": MetricAggregation;
|
|
932
|
+
"step_ms": number;
|
|
933
|
+
"start_time": string;
|
|
934
|
+
"end_time": string;
|
|
935
|
+
"series": MetricSeriesResult[];
|
|
936
|
+
"truncated": boolean;
|
|
937
|
+
}
|
|
872
938
|
export interface SessionAttributes {
|
|
873
939
|
"session_id": SessionId;
|
|
874
940
|
"previous_session_id"?: SessionId;
|
|
@@ -1961,6 +2027,18 @@ export interface CursorPageLogRecord {
|
|
|
1961
2027
|
"prev_cursor"?: string;
|
|
1962
2028
|
"has_more": boolean;
|
|
1963
2029
|
}
|
|
2030
|
+
export interface CursorPageMetricDescriptor {
|
|
2031
|
+
"items": MetricDescriptor[];
|
|
2032
|
+
"next_cursor"?: string;
|
|
2033
|
+
"prev_cursor"?: string;
|
|
2034
|
+
"has_more": boolean;
|
|
2035
|
+
}
|
|
2036
|
+
export interface CursorPageMetricSeries {
|
|
2037
|
+
"items": MetricSeries[];
|
|
2038
|
+
"next_cursor"?: string;
|
|
2039
|
+
"prev_cursor"?: string;
|
|
2040
|
+
"has_more": boolean;
|
|
2041
|
+
}
|
|
1964
2042
|
export interface CursorPageSessionEntity {
|
|
1965
2043
|
"items": SessionEntity[];
|
|
1966
2044
|
"next_cursor"?: string;
|
|
@@ -135,6 +135,29 @@ export const OsTypeValues = {
|
|
|
135
135
|
"solaris": "solaris",
|
|
136
136
|
"zOs": "z_os",
|
|
137
137
|
};
|
|
138
|
+
export const MetricKindValues = {
|
|
139
|
+
"gauge": "gauge",
|
|
140
|
+
"sum": "sum",
|
|
141
|
+
"histogram": "histogram",
|
|
142
|
+
"exponential_histogram": "exponential_histogram",
|
|
143
|
+
};
|
|
144
|
+
export const MetricTemporalityValues = {
|
|
145
|
+
"unspecified": "unspecified",
|
|
146
|
+
"delta": "delta",
|
|
147
|
+
"cumulative": "cumulative",
|
|
148
|
+
};
|
|
149
|
+
export const MetricAggregationValues = {
|
|
150
|
+
"avg": "avg",
|
|
151
|
+
"min": "min",
|
|
152
|
+
"max": "max",
|
|
153
|
+
"sum": "sum",
|
|
154
|
+
"count": "count",
|
|
155
|
+
"last": "last",
|
|
156
|
+
"p50": "p50",
|
|
157
|
+
"p90": "p90",
|
|
158
|
+
"p95": "p95",
|
|
159
|
+
"p99": "p99",
|
|
160
|
+
};
|
|
138
161
|
export const SessionEventNameValues = {
|
|
139
162
|
"sessionStart": "session.start",
|
|
140
163
|
"sessionEnd": "session.end",
|
|
@@ -445,4 +468,4 @@ export const FetchTelemetryViewValues = {
|
|
|
445
468
|
};
|
|
446
469
|
// --- contract revision (scripts/emit-contract-revision.mjs) ---
|
|
447
470
|
/** Revision of the API contract these types were emitted from; compare against HealthReport.contract_revision. */
|
|
448
|
-
export const CONTRACT_REVISION = "sha256:
|
|
471
|
+
export const CONTRACT_REVISION = "sha256:64c464569005a485";
|
package/index.tsp
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ancplua/qyl-api-schema",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.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": {
|