@tracelens/shared 0.1.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/dist/__tests__/validation.test.d.ts +2 -0
- package/dist/__tests__/validation.test.d.ts.map +1 -0
- package/dist/__tests__/validation.test.js +16 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/schemas/dependency.schema.d.ts +177 -0
- package/dist/schemas/dependency.schema.d.ts.map +1 -0
- package/dist/schemas/dependency.schema.js +187 -0
- package/dist/schemas/error.schema.d.ts +170 -0
- package/dist/schemas/error.schema.d.ts.map +1 -0
- package/dist/schemas/error.schema.js +176 -0
- package/dist/schemas/index.d.ts +5 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +5 -0
- package/dist/schemas/performance.schema.d.ts +333 -0
- package/dist/schemas/performance.schema.d.ts.map +1 -0
- package/dist/schemas/performance.schema.js +200 -0
- package/dist/schemas/trace.schema.d.ts +325 -0
- package/dist/schemas/trace.schema.d.ts.map +1 -0
- package/dist/schemas/trace.schema.js +145 -0
- package/dist/types/dependency.types.d.ts +109 -0
- package/dist/types/dependency.types.d.ts.map +1 -0
- package/dist/types/dependency.types.js +8 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +5 -0
- package/dist/types/performance.types.d.ts +95 -0
- package/dist/types/performance.types.d.ts.map +1 -0
- package/dist/types/performance.types.js +1 -0
- package/dist/types/security.types.d.ts +154 -0
- package/dist/types/security.types.d.ts.map +1 -0
- package/dist/types/security.types.js +8 -0
- package/dist/types/trace.types.d.ts +57 -0
- package/dist/types/trace.types.d.ts.map +1 -0
- package/dist/types/trace.types.js +20 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/validation.d.ts +21 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +157 -0
- package/jest.config.js +14 -0
- package/package.json +22 -0
- package/src/__tests__/validation.test.ts +19 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.ts +4 -0
- package/src/schemas/dependency.schema.ts +187 -0
- package/src/schemas/error.schema.ts +176 -0
- package/src/schemas/index.ts +5 -0
- package/src/schemas/performance.schema.ts +200 -0
- package/src/schemas/trace.schema.ts +146 -0
- package/src/types/dependency.types.ts +120 -0
- package/src/types/index.d.ts.map +1 -0
- package/src/types/index.ts +11 -0
- package/src/types/performance.types.ts +108 -0
- package/src/types/security.types.ts +172 -0
- package/src/types/trace.types.ts +62 -0
- package/src/utils/index.d.ts.map +1 -0
- package/src/utils/index.ts +6 -0
- package/src/utils/validation.ts +209 -0
- package/tsconfig.json +9 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
// Error event schema for TraceLens
|
|
2
|
+
export const ErrorEventSchema = {
|
|
3
|
+
type: 'object',
|
|
4
|
+
required: ['id', 'timestamp', 'type', 'message', 'source', 'projectId'],
|
|
5
|
+
properties: {
|
|
6
|
+
id: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
pattern: '^[a-zA-Z0-9_-]+$',
|
|
9
|
+
minLength: 1,
|
|
10
|
+
maxLength: 100,
|
|
11
|
+
description: 'Unique identifier for this error event'
|
|
12
|
+
},
|
|
13
|
+
timestamp: {
|
|
14
|
+
type: 'number',
|
|
15
|
+
minimum: 1577836800000, // 2020-01-01
|
|
16
|
+
maximum: 2524608000000, // 2050-01-01
|
|
17
|
+
description: 'Error timestamp in milliseconds since epoch'
|
|
18
|
+
},
|
|
19
|
+
type: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
enum: [
|
|
22
|
+
'javascript-error',
|
|
23
|
+
'unhandled-promise-rejection',
|
|
24
|
+
'resource-error',
|
|
25
|
+
'network-error',
|
|
26
|
+
'csp-violation',
|
|
27
|
+
'server-error',
|
|
28
|
+
'database-error',
|
|
29
|
+
'validation-error'
|
|
30
|
+
],
|
|
31
|
+
description: 'Type of error that occurred'
|
|
32
|
+
},
|
|
33
|
+
message: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
maxLength: 2048,
|
|
36
|
+
description: 'Error message'
|
|
37
|
+
},
|
|
38
|
+
source: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
enum: ['browser', 'server', 'network'],
|
|
41
|
+
description: 'Source of the error'
|
|
42
|
+
},
|
|
43
|
+
projectId: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
pattern: '^[a-zA-Z0-9_-]+$',
|
|
46
|
+
minLength: 3,
|
|
47
|
+
maxLength: 50,
|
|
48
|
+
description: 'Project identifier'
|
|
49
|
+
},
|
|
50
|
+
stack: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
maxLength: 8192,
|
|
53
|
+
description: 'Error stack trace'
|
|
54
|
+
},
|
|
55
|
+
filename: {
|
|
56
|
+
type: 'string',
|
|
57
|
+
maxLength: 1024,
|
|
58
|
+
description: 'File where error occurred'
|
|
59
|
+
},
|
|
60
|
+
lineno: {
|
|
61
|
+
type: 'number',
|
|
62
|
+
minimum: 0,
|
|
63
|
+
description: 'Line number where error occurred'
|
|
64
|
+
},
|
|
65
|
+
colno: {
|
|
66
|
+
type: 'number',
|
|
67
|
+
minimum: 0,
|
|
68
|
+
description: 'Column number where error occurred'
|
|
69
|
+
},
|
|
70
|
+
url: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
format: 'uri',
|
|
73
|
+
maxLength: 2048,
|
|
74
|
+
description: 'URL where error occurred'
|
|
75
|
+
},
|
|
76
|
+
userAgent: {
|
|
77
|
+
type: 'string',
|
|
78
|
+
maxLength: 512,
|
|
79
|
+
description: 'User agent string'
|
|
80
|
+
},
|
|
81
|
+
userId: {
|
|
82
|
+
type: 'string',
|
|
83
|
+
maxLength: 100,
|
|
84
|
+
description: 'User identifier (if available)'
|
|
85
|
+
},
|
|
86
|
+
sessionId: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
maxLength: 100,
|
|
89
|
+
description: 'Session identifier'
|
|
90
|
+
},
|
|
91
|
+
traceId: {
|
|
92
|
+
type: 'string',
|
|
93
|
+
pattern: '^[a-f0-9]{32}$',
|
|
94
|
+
description: 'Associated trace ID if available'
|
|
95
|
+
},
|
|
96
|
+
spanId: {
|
|
97
|
+
type: 'string',
|
|
98
|
+
pattern: '^[a-f0-9]{16}$',
|
|
99
|
+
description: 'Associated span ID if available'
|
|
100
|
+
},
|
|
101
|
+
severity: {
|
|
102
|
+
type: 'string',
|
|
103
|
+
enum: ['low', 'medium', 'high', 'critical'],
|
|
104
|
+
description: 'Error severity level'
|
|
105
|
+
},
|
|
106
|
+
tags: {
|
|
107
|
+
type: 'object',
|
|
108
|
+
patternProperties: {
|
|
109
|
+
'^[a-zA-Z][a-zA-Z0-9._-]*$': {
|
|
110
|
+
oneOf: [
|
|
111
|
+
{ type: 'string', maxLength: 256 },
|
|
112
|
+
{ type: 'number' },
|
|
113
|
+
{ type: 'boolean' }
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
additionalProperties: false,
|
|
118
|
+
maxProperties: 50,
|
|
119
|
+
description: 'Additional tags for categorization'
|
|
120
|
+
},
|
|
121
|
+
context: {
|
|
122
|
+
type: 'object',
|
|
123
|
+
properties: {
|
|
124
|
+
component: {
|
|
125
|
+
type: 'string',
|
|
126
|
+
maxLength: 256,
|
|
127
|
+
description: 'Component where error occurred'
|
|
128
|
+
},
|
|
129
|
+
action: {
|
|
130
|
+
type: 'string',
|
|
131
|
+
maxLength: 256,
|
|
132
|
+
description: 'Action being performed when error occurred'
|
|
133
|
+
},
|
|
134
|
+
environment: {
|
|
135
|
+
type: 'string',
|
|
136
|
+
enum: ['development', 'staging', 'production'],
|
|
137
|
+
description: 'Environment where error occurred'
|
|
138
|
+
},
|
|
139
|
+
version: {
|
|
140
|
+
type: 'string',
|
|
141
|
+
maxLength: 50,
|
|
142
|
+
description: 'Application version'
|
|
143
|
+
},
|
|
144
|
+
buildId: {
|
|
145
|
+
type: 'string',
|
|
146
|
+
maxLength: 100,
|
|
147
|
+
description: 'Build identifier'
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
additionalProperties: false,
|
|
151
|
+
description: 'Additional context about the error'
|
|
152
|
+
},
|
|
153
|
+
fingerprint: {
|
|
154
|
+
type: 'string',
|
|
155
|
+
pattern: '^[a-f0-9]{32}$',
|
|
156
|
+
description: 'Error fingerprint for grouping similar errors'
|
|
157
|
+
},
|
|
158
|
+
count: {
|
|
159
|
+
type: 'number',
|
|
160
|
+
minimum: 1,
|
|
161
|
+
default: 1,
|
|
162
|
+
description: 'Number of times this error occurred'
|
|
163
|
+
},
|
|
164
|
+
firstSeen: {
|
|
165
|
+
type: 'number',
|
|
166
|
+
minimum: 1577836800000,
|
|
167
|
+
description: 'Timestamp when this error was first seen'
|
|
168
|
+
},
|
|
169
|
+
lastSeen: {
|
|
170
|
+
type: 'number',
|
|
171
|
+
minimum: 1577836800000,
|
|
172
|
+
description: 'Timestamp when this error was last seen'
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
additionalProperties: false
|
|
176
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
export declare const PerformanceEventSchema: {
|
|
2
|
+
readonly type: "object";
|
|
3
|
+
readonly required: readonly ["id", "timestamp", "type", "data", "url", "userAgent"];
|
|
4
|
+
readonly properties: {
|
|
5
|
+
readonly id: {
|
|
6
|
+
readonly type: "string";
|
|
7
|
+
readonly pattern: "^[a-zA-Z0-9_-]+$";
|
|
8
|
+
readonly minLength: 1;
|
|
9
|
+
readonly maxLength: 100;
|
|
10
|
+
};
|
|
11
|
+
readonly timestamp: {
|
|
12
|
+
readonly type: "number";
|
|
13
|
+
readonly minimum: 1577836800000;
|
|
14
|
+
readonly maximum: 2524608000000;
|
|
15
|
+
};
|
|
16
|
+
readonly type: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly enum: readonly ["web-vitals", "resource-timing", "navigation-timing", "long-task"];
|
|
19
|
+
};
|
|
20
|
+
readonly data: {
|
|
21
|
+
readonly oneOf: readonly [{
|
|
22
|
+
readonly $ref: "#/definitions/WebVitalsData";
|
|
23
|
+
}, {
|
|
24
|
+
readonly $ref: "#/definitions/ResourceTimingData";
|
|
25
|
+
}, {
|
|
26
|
+
readonly $ref: "#/definitions/NavigationTimingData";
|
|
27
|
+
}, {
|
|
28
|
+
readonly $ref: "#/definitions/LongTaskData";
|
|
29
|
+
}];
|
|
30
|
+
};
|
|
31
|
+
readonly url: {
|
|
32
|
+
readonly type: "string";
|
|
33
|
+
readonly format: "uri";
|
|
34
|
+
readonly maxLength: 2048;
|
|
35
|
+
};
|
|
36
|
+
readonly userAgent: {
|
|
37
|
+
readonly type: "string";
|
|
38
|
+
readonly maxLength: 512;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly definitions: {
|
|
42
|
+
readonly WebVitalsData: {
|
|
43
|
+
readonly type: "object";
|
|
44
|
+
readonly properties: {
|
|
45
|
+
readonly cls: {
|
|
46
|
+
readonly $ref: "#/definitions/CLSMetric";
|
|
47
|
+
};
|
|
48
|
+
readonly fid: {
|
|
49
|
+
readonly $ref: "#/definitions/FIDMetric";
|
|
50
|
+
};
|
|
51
|
+
readonly lcp: {
|
|
52
|
+
readonly $ref: "#/definitions/LCPMetric";
|
|
53
|
+
};
|
|
54
|
+
readonly fcp: {
|
|
55
|
+
readonly $ref: "#/definitions/FCPMetric";
|
|
56
|
+
};
|
|
57
|
+
readonly ttfb: {
|
|
58
|
+
readonly $ref: "#/definitions/TTFBMetric";
|
|
59
|
+
};
|
|
60
|
+
readonly inp: {
|
|
61
|
+
readonly $ref: "#/definitions/INPMetric";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
readonly BaseMetric: {
|
|
66
|
+
readonly type: "object";
|
|
67
|
+
readonly required: readonly ["name", "value", "rating", "delta", "id", "navigationType"];
|
|
68
|
+
readonly properties: {
|
|
69
|
+
readonly name: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
};
|
|
72
|
+
readonly value: {
|
|
73
|
+
readonly type: "number";
|
|
74
|
+
readonly minimum: 0;
|
|
75
|
+
};
|
|
76
|
+
readonly rating: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
readonly enum: readonly ["good", "needs-improvement", "poor"];
|
|
79
|
+
};
|
|
80
|
+
readonly delta: {
|
|
81
|
+
readonly type: "number";
|
|
82
|
+
};
|
|
83
|
+
readonly id: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
};
|
|
86
|
+
readonly navigationType: {
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
readonly enum: readonly ["navigate", "reload", "back-forward", "prerender"];
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly CLSMetric: {
|
|
93
|
+
readonly allOf: readonly [{
|
|
94
|
+
readonly $ref: "#/definitions/BaseMetric";
|
|
95
|
+
}, {
|
|
96
|
+
readonly properties: {
|
|
97
|
+
readonly name: {
|
|
98
|
+
readonly const: "CLS";
|
|
99
|
+
};
|
|
100
|
+
readonly value: {
|
|
101
|
+
readonly maximum: 1;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
}];
|
|
105
|
+
};
|
|
106
|
+
readonly FIDMetric: {
|
|
107
|
+
readonly allOf: readonly [{
|
|
108
|
+
readonly $ref: "#/definitions/BaseMetric";
|
|
109
|
+
}, {
|
|
110
|
+
readonly properties: {
|
|
111
|
+
readonly name: {
|
|
112
|
+
readonly const: "FID";
|
|
113
|
+
};
|
|
114
|
+
readonly value: {
|
|
115
|
+
readonly maximum: 10000;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}];
|
|
119
|
+
};
|
|
120
|
+
readonly LCPMetric: {
|
|
121
|
+
readonly allOf: readonly [{
|
|
122
|
+
readonly $ref: "#/definitions/BaseMetric";
|
|
123
|
+
}, {
|
|
124
|
+
readonly properties: {
|
|
125
|
+
readonly name: {
|
|
126
|
+
readonly const: "LCP";
|
|
127
|
+
};
|
|
128
|
+
readonly value: {
|
|
129
|
+
readonly maximum: 30000;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
}];
|
|
133
|
+
};
|
|
134
|
+
readonly FCPMetric: {
|
|
135
|
+
readonly allOf: readonly [{
|
|
136
|
+
readonly $ref: "#/definitions/BaseMetric";
|
|
137
|
+
}, {
|
|
138
|
+
readonly properties: {
|
|
139
|
+
readonly name: {
|
|
140
|
+
readonly const: "FCP";
|
|
141
|
+
};
|
|
142
|
+
readonly value: {
|
|
143
|
+
readonly maximum: 10000;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
}];
|
|
147
|
+
};
|
|
148
|
+
readonly TTFBMetric: {
|
|
149
|
+
readonly allOf: readonly [{
|
|
150
|
+
readonly $ref: "#/definitions/BaseMetric";
|
|
151
|
+
}, {
|
|
152
|
+
readonly properties: {
|
|
153
|
+
readonly name: {
|
|
154
|
+
readonly const: "TTFB";
|
|
155
|
+
};
|
|
156
|
+
readonly value: {
|
|
157
|
+
readonly maximum: 5000;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
}];
|
|
161
|
+
};
|
|
162
|
+
readonly INPMetric: {
|
|
163
|
+
readonly allOf: readonly [{
|
|
164
|
+
readonly $ref: "#/definitions/BaseMetric";
|
|
165
|
+
}, {
|
|
166
|
+
readonly properties: {
|
|
167
|
+
readonly name: {
|
|
168
|
+
readonly const: "INP";
|
|
169
|
+
};
|
|
170
|
+
readonly value: {
|
|
171
|
+
readonly maximum: 1000;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
}];
|
|
175
|
+
};
|
|
176
|
+
readonly ResourceTimingData: {
|
|
177
|
+
readonly type: "object";
|
|
178
|
+
readonly required: readonly ["name", "entryType", "startTime", "duration"];
|
|
179
|
+
readonly properties: {
|
|
180
|
+
readonly name: {
|
|
181
|
+
readonly type: "string";
|
|
182
|
+
readonly maxLength: 2048;
|
|
183
|
+
};
|
|
184
|
+
readonly entryType: {
|
|
185
|
+
readonly const: "resource";
|
|
186
|
+
};
|
|
187
|
+
readonly startTime: {
|
|
188
|
+
readonly type: "number";
|
|
189
|
+
readonly minimum: 0;
|
|
190
|
+
};
|
|
191
|
+
readonly duration: {
|
|
192
|
+
readonly type: "number";
|
|
193
|
+
readonly minimum: 0;
|
|
194
|
+
};
|
|
195
|
+
readonly initiatorType: {
|
|
196
|
+
readonly type: "string";
|
|
197
|
+
};
|
|
198
|
+
readonly nextHopProtocol: {
|
|
199
|
+
readonly type: "string";
|
|
200
|
+
};
|
|
201
|
+
readonly renderBlockingStatus: {
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
};
|
|
204
|
+
readonly responseStatus: {
|
|
205
|
+
readonly type: "number";
|
|
206
|
+
readonly minimum: 100;
|
|
207
|
+
readonly maximum: 599;
|
|
208
|
+
};
|
|
209
|
+
readonly transferSize: {
|
|
210
|
+
readonly type: "number";
|
|
211
|
+
readonly minimum: 0;
|
|
212
|
+
};
|
|
213
|
+
readonly encodedBodySize: {
|
|
214
|
+
readonly type: "number";
|
|
215
|
+
readonly minimum: 0;
|
|
216
|
+
};
|
|
217
|
+
readonly decodedBodySize: {
|
|
218
|
+
readonly type: "number";
|
|
219
|
+
readonly minimum: 0;
|
|
220
|
+
};
|
|
221
|
+
readonly responseStart: {
|
|
222
|
+
readonly type: "number";
|
|
223
|
+
readonly minimum: 0;
|
|
224
|
+
};
|
|
225
|
+
readonly responseEnd: {
|
|
226
|
+
readonly type: "number";
|
|
227
|
+
readonly minimum: 0;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
readonly NavigationTimingData: {
|
|
232
|
+
readonly type: "object";
|
|
233
|
+
readonly required: readonly ["type"];
|
|
234
|
+
readonly properties: {
|
|
235
|
+
readonly domComplete: {
|
|
236
|
+
readonly type: "number";
|
|
237
|
+
readonly minimum: 0;
|
|
238
|
+
};
|
|
239
|
+
readonly domContentLoadedEventEnd: {
|
|
240
|
+
readonly type: "number";
|
|
241
|
+
readonly minimum: 0;
|
|
242
|
+
};
|
|
243
|
+
readonly domContentLoadedEventStart: {
|
|
244
|
+
readonly type: "number";
|
|
245
|
+
readonly minimum: 0;
|
|
246
|
+
};
|
|
247
|
+
readonly domInteractive: {
|
|
248
|
+
readonly type: "number";
|
|
249
|
+
readonly minimum: 0;
|
|
250
|
+
};
|
|
251
|
+
readonly loadEventEnd: {
|
|
252
|
+
readonly type: "number";
|
|
253
|
+
readonly minimum: 0;
|
|
254
|
+
};
|
|
255
|
+
readonly loadEventStart: {
|
|
256
|
+
readonly type: "number";
|
|
257
|
+
readonly minimum: 0;
|
|
258
|
+
};
|
|
259
|
+
readonly redirectCount: {
|
|
260
|
+
readonly type: "number";
|
|
261
|
+
readonly minimum: 0;
|
|
262
|
+
};
|
|
263
|
+
readonly type: {
|
|
264
|
+
readonly type: "string";
|
|
265
|
+
readonly enum: readonly ["navigate", "reload", "back-forward", "prerender"];
|
|
266
|
+
};
|
|
267
|
+
readonly unloadEventEnd: {
|
|
268
|
+
readonly type: "number";
|
|
269
|
+
readonly minimum: 0;
|
|
270
|
+
};
|
|
271
|
+
readonly unloadEventStart: {
|
|
272
|
+
readonly type: "number";
|
|
273
|
+
readonly minimum: 0;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
readonly LongTaskData: {
|
|
278
|
+
readonly type: "object";
|
|
279
|
+
readonly required: readonly ["name", "entryType", "startTime", "duration"];
|
|
280
|
+
readonly properties: {
|
|
281
|
+
readonly name: {
|
|
282
|
+
readonly const: "longtask";
|
|
283
|
+
};
|
|
284
|
+
readonly entryType: {
|
|
285
|
+
readonly const: "longtask";
|
|
286
|
+
};
|
|
287
|
+
readonly startTime: {
|
|
288
|
+
readonly type: "number";
|
|
289
|
+
readonly minimum: 0;
|
|
290
|
+
};
|
|
291
|
+
readonly duration: {
|
|
292
|
+
readonly type: "number";
|
|
293
|
+
readonly minimum: 50;
|
|
294
|
+
};
|
|
295
|
+
readonly attribution: {
|
|
296
|
+
readonly type: "array";
|
|
297
|
+
readonly items: {
|
|
298
|
+
readonly type: "object";
|
|
299
|
+
readonly properties: {
|
|
300
|
+
readonly name: {
|
|
301
|
+
readonly type: "string";
|
|
302
|
+
};
|
|
303
|
+
readonly entryType: {
|
|
304
|
+
readonly const: "taskattribution";
|
|
305
|
+
};
|
|
306
|
+
readonly startTime: {
|
|
307
|
+
readonly type: "number";
|
|
308
|
+
readonly minimum: 0;
|
|
309
|
+
};
|
|
310
|
+
readonly duration: {
|
|
311
|
+
readonly type: "number";
|
|
312
|
+
readonly minimum: 0;
|
|
313
|
+
};
|
|
314
|
+
readonly containerType: {
|
|
315
|
+
readonly type: "string";
|
|
316
|
+
};
|
|
317
|
+
readonly containerSrc: {
|
|
318
|
+
readonly type: "string";
|
|
319
|
+
};
|
|
320
|
+
readonly containerId: {
|
|
321
|
+
readonly type: "string";
|
|
322
|
+
};
|
|
323
|
+
readonly containerName: {
|
|
324
|
+
readonly type: "string";
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
//# sourceMappingURL=performance.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"performance.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/performance.schema.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsMzB,CAAC"}
|