@ericminassian/platform-core 0.4.0 → 0.5.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/api.d.ts +367 -226
- package/dist/api.js +148 -92
- package/dist/api.js.map +1 -1
- package/dist/config.d.ts +0 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.d.ts +0 -17
- package/dist/constants.js +0 -17
- package/dist/constants.js.map +1 -1
- package/dist/explore.d.ts +367 -0
- package/dist/explore.js +440 -0
- package/dist/explore.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/jobs.d.ts +1 -1
- package/dist/jobs.js +1 -1
- package/dist/manifest.d.ts +10 -47
- package/dist/manifest.js +7 -15
- package/dist/manifest.js.map +1 -1
- package/dist/naming.d.ts +7 -23
- package/dist/naming.js +7 -23
- package/dist/naming.js.map +1 -1
- package/dist/platform-api.d.ts +3511 -2211
- package/dist/platform-api.js +117 -36
- package/dist/platform-api.js.map +1 -1
- package/dist/runtime-config.d.ts +0 -20
- package/dist/runtime-config.js.map +1 -1
- package/dist/storage.d.ts +10 -0
- package/dist/storage.js +10 -0
- package/dist/storage.js.map +1 -1
- package/dist/telemetry.d.ts +52 -27
- package/dist/telemetry.js +67 -19
- package/dist/telemetry.js.map +1 -1
- package/dist/web-compute.js +2 -1
- package/dist/web-compute.js.map +1 -1
- package/package.json +1 -1
- package/src/api.ts +176 -110
- package/src/config.ts +0 -2
- package/src/constants.ts +0 -19
- package/src/explore.ts +504 -0
- package/src/index.ts +1 -1
- package/src/jobs.ts +1 -1
- package/src/manifest.ts +15 -48
- package/src/naming.ts +7 -25
- package/src/platform-api.ts +140 -38
- package/src/runtime-config.ts +0 -21
- package/src/storage.ts +11 -0
- package/src/telemetry.ts +69 -19
- package/src/web-compute.ts +3 -1
- package/dist/compute.d.ts +0 -52
- package/dist/compute.js +0 -65
- package/dist/compute.js.map +0 -1
- package/src/compute.ts +0 -86
package/dist/api.d.ts
CHANGED
|
@@ -8,10 +8,18 @@
|
|
|
8
8
|
* possibly-missing values encodes; JSON drops them either way.
|
|
9
9
|
*/
|
|
10
10
|
import { Schema } from 'effect';
|
|
11
|
+
/** A GitHub repository's visibility, as its Actions OIDC tokens state it. */
|
|
12
|
+
export declare const RepoVisibility: Schema.Literals<readonly ["public", "private", "internal"]>;
|
|
13
|
+
export type RepoVisibility = typeof RepoVisibility.Type;
|
|
11
14
|
export declare const AppRecord: Schema.Struct<{
|
|
12
15
|
readonly name: Schema.String;
|
|
13
16
|
/** GitHub `owner/name` allowed to deploy this app from CI. */
|
|
14
17
|
readonly repo: Schema.String;
|
|
18
|
+
/**
|
|
19
|
+
* The repo's visibility at its last CI deploy (absent before one): the
|
|
20
|
+
* public directory links a public repo. Changing `repo` forgets it.
|
|
21
|
+
*/
|
|
22
|
+
readonly repoVisibility: Schema.optional<Schema.Literals<readonly ["public", "private", "internal"]>>;
|
|
15
23
|
readonly description: Schema.optional<Schema.String>;
|
|
16
24
|
/** GitHub usernames who can manage the app (admins can manage everything). */
|
|
17
25
|
readonly owners: Schema.$Array<Schema.String>;
|
|
@@ -109,6 +117,7 @@ export declare const DeploymentRecord: Schema.Struct<{
|
|
|
109
117
|
readonly manifest: Schema.optional<Schema.Struct<{
|
|
110
118
|
readonly name: Schema.String;
|
|
111
119
|
readonly description: Schema.optional<Schema.String>;
|
|
120
|
+
readonly listed: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
112
121
|
readonly web: Schema.optional<Schema.Struct<{
|
|
113
122
|
readonly server: Schema.optional<Schema.String>;
|
|
114
123
|
readonly static: Schema.optional<Schema.String>;
|
|
@@ -169,13 +178,6 @@ export declare const DeploymentRecord: Schema.Struct<{
|
|
|
169
178
|
readonly name: Schema.optional<Schema.String>;
|
|
170
179
|
readonly dailyLimit: Schema.Finite;
|
|
171
180
|
}>>;
|
|
172
|
-
readonly services: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
173
|
-
readonly entry: Schema.String;
|
|
174
|
-
readonly cpu: Schema.withDecodingDefault<Schema.Literals<readonly [0.25, 0.5, 1, 2, 4]>, never>;
|
|
175
|
-
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
176
|
-
readonly spot: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
177
|
-
readonly previewMinutes: Schema.withDecodingDefault<Schema.Int, never>;
|
|
178
|
-
}>>, never>;
|
|
179
181
|
}>>;
|
|
180
182
|
/** How it runs the server. */
|
|
181
183
|
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
@@ -243,6 +245,11 @@ export declare const AppSummary: Schema.Struct<{
|
|
|
243
245
|
readonly name: Schema.String;
|
|
244
246
|
/** GitHub `owner/name` allowed to deploy this app from CI. */
|
|
245
247
|
readonly repo: Schema.String;
|
|
248
|
+
/**
|
|
249
|
+
* The repo's visibility at its last CI deploy (absent before one): the
|
|
250
|
+
* public directory links a public repo. Changing `repo` forgets it.
|
|
251
|
+
*/
|
|
252
|
+
readonly repoVisibility: Schema.optional<Schema.Literals<readonly ["public", "private", "internal"]>>;
|
|
246
253
|
readonly description: Schema.optional<Schema.String>;
|
|
247
254
|
/** GitHub usernames who can manage the app (admins can manage everything). */
|
|
248
255
|
readonly owners: Schema.$Array<Schema.String>;
|
|
@@ -310,6 +317,7 @@ export declare const AppSummary: Schema.Struct<{
|
|
|
310
317
|
readonly manifest: Schema.optional<Schema.Struct<{
|
|
311
318
|
readonly name: Schema.String;
|
|
312
319
|
readonly description: Schema.optional<Schema.String>;
|
|
320
|
+
readonly listed: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
313
321
|
readonly web: Schema.optional<Schema.Struct<{
|
|
314
322
|
readonly server: Schema.optional<Schema.String>;
|
|
315
323
|
readonly static: Schema.optional<Schema.String>;
|
|
@@ -370,13 +378,6 @@ export declare const AppSummary: Schema.Struct<{
|
|
|
370
378
|
readonly name: Schema.optional<Schema.String>;
|
|
371
379
|
readonly dailyLimit: Schema.Finite;
|
|
372
380
|
}>>;
|
|
373
|
-
readonly services: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
374
|
-
readonly entry: Schema.String;
|
|
375
|
-
readonly cpu: Schema.withDecodingDefault<Schema.Literals<readonly [0.25, 0.5, 1, 2, 4]>, never>;
|
|
376
|
-
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
377
|
-
readonly spot: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
378
|
-
readonly previewMinutes: Schema.withDecodingDefault<Schema.Int, never>;
|
|
379
|
-
}>>, never>;
|
|
380
381
|
}>>;
|
|
381
382
|
/** How it runs the server. */
|
|
382
383
|
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
@@ -398,10 +399,71 @@ export declare const AppSummary: Schema.Struct<{
|
|
|
398
399
|
readonly startedAt: Schema.optional<Schema.String>;
|
|
399
400
|
readonly finishedAt: Schema.optional<Schema.String>;
|
|
400
401
|
}>>;
|
|
402
|
+
/** Prod's requests in each of the last 24 hours, oldest first (absent without a prod stage). */
|
|
403
|
+
readonly traffic: Schema.optional<Schema.$Array<Schema.Finite>>;
|
|
404
|
+
/** The app's alert rules on every stage: how many there are and how many are firing. */
|
|
405
|
+
readonly alerts: Schema.optional<Schema.Struct<{
|
|
406
|
+
readonly total: Schema.Finite;
|
|
407
|
+
readonly alarm: Schema.Finite;
|
|
408
|
+
}>>;
|
|
409
|
+
/** Whether the public directory lists prod: its live deployment's `listed` (absent without one). */
|
|
410
|
+
readonly listed: Schema.optional<Schema.Boolean>;
|
|
401
411
|
}>;
|
|
402
412
|
export type AppSummary = typeof AppSummary.Type;
|
|
403
|
-
/**
|
|
404
|
-
export declare const
|
|
413
|
+
/** Days of traffic the public directory gives each app. */
|
|
414
|
+
export declare const PUBLIC_DIRECTORY_DAYS = 30;
|
|
415
|
+
/** An app in the public directory: its prod stage, as anyone may see it. */
|
|
416
|
+
export declare const PublicApp: Schema.Struct<{
|
|
417
|
+
readonly name: Schema.String;
|
|
418
|
+
/** The live deployment's `description` in plat.config.ts, else the app's own. */
|
|
419
|
+
readonly description: Schema.optional<Schema.String>;
|
|
420
|
+
readonly url: Schema.String;
|
|
421
|
+
/** The GitHub repository's page, when the repo is public. */
|
|
422
|
+
readonly source: Schema.optional<Schema.String>;
|
|
423
|
+
/** When prod was first deployed. */
|
|
424
|
+
readonly liveSince: Schema.String;
|
|
425
|
+
/** When the deployment prod serves went live (a compute switch keeps its build's time). */
|
|
426
|
+
readonly lastDeployedAt: Schema.String;
|
|
427
|
+
/** Whether prod was up at the uptime pinger's last result; null before its first. */
|
|
428
|
+
readonly up: Schema.NullOr<Schema.Boolean>;
|
|
429
|
+
/** Pages the router served for prod's host on each of `days` (`isPageView`); today's so far. */
|
|
430
|
+
readonly pageViews: Schema.$Array<Schema.Finite>;
|
|
431
|
+
/** Every request the router served for it on each of `days`: files, server and stores. */
|
|
432
|
+
readonly requests: Schema.$Array<Schema.Finite>;
|
|
433
|
+
}>;
|
|
434
|
+
export type PublicApp = typeof PublicApp.Type;
|
|
435
|
+
/** Every app whose live prod deployment is `listed` (the default), by name. */
|
|
436
|
+
export declare const PublicAppsResponse: Schema.Struct<{
|
|
437
|
+
readonly generatedAt: Schema.String;
|
|
438
|
+
/** The UTC days the counts cover (`YYYY-MM-DD`), oldest first, ending today (so far). */
|
|
439
|
+
readonly days: Schema.$Array<Schema.String>;
|
|
440
|
+
/**
|
|
441
|
+
* The first UTC day the router's access log counted (`YYYY-MM-DD`): days
|
|
442
|
+
* before it have no counts, rather than no traffic. Absent where the
|
|
443
|
+
* platform has no access log (`plat dev`).
|
|
444
|
+
*/
|
|
445
|
+
readonly countingSince: Schema.optional<Schema.String>;
|
|
446
|
+
readonly apps: Schema.$Array<Schema.Struct<{
|
|
447
|
+
readonly name: Schema.String;
|
|
448
|
+
/** The live deployment's `description` in plat.config.ts, else the app's own. */
|
|
449
|
+
readonly description: Schema.optional<Schema.String>;
|
|
450
|
+
readonly url: Schema.String;
|
|
451
|
+
/** The GitHub repository's page, when the repo is public. */
|
|
452
|
+
readonly source: Schema.optional<Schema.String>;
|
|
453
|
+
/** When prod was first deployed. */
|
|
454
|
+
readonly liveSince: Schema.String;
|
|
455
|
+
/** When the deployment prod serves went live (a compute switch keeps its build's time). */
|
|
456
|
+
readonly lastDeployedAt: Schema.String;
|
|
457
|
+
/** Whether prod was up at the uptime pinger's last result; null before its first. */
|
|
458
|
+
readonly up: Schema.NullOr<Schema.Boolean>;
|
|
459
|
+
/** Pages the router served for prod's host on each of `days` (`isPageView`); today's so far. */
|
|
460
|
+
readonly pageViews: Schema.$Array<Schema.Finite>;
|
|
461
|
+
/** Every request the router served for it on each of `days`: files, server and stores. */
|
|
462
|
+
readonly requests: Schema.$Array<Schema.Finite>;
|
|
463
|
+
}>>;
|
|
464
|
+
}>;
|
|
465
|
+
export type PublicAppsResponse = typeof PublicAppsResponse.Type;
|
|
466
|
+
export declare const ArtifactFile: Schema.Literals<readonly ["manifest.json", "server.zip", "worker.zip", "static.zip"]>;
|
|
405
467
|
export type ArtifactFile = typeof ArtifactFile.Type;
|
|
406
468
|
export declare const PresignedPost: Schema.Struct<{
|
|
407
469
|
readonly url: Schema.String;
|
|
@@ -416,7 +478,7 @@ export declare const CreateDeploymentRequest: Schema.Struct<{
|
|
|
416
478
|
*/
|
|
417
479
|
readonly manifest: Schema.Unknown;
|
|
418
480
|
/** Which artifacts the CLI will upload (manifest.json is always uploaded). */
|
|
419
|
-
readonly files: Schema.optional<Schema.$Array<Schema.Literals<readonly ["manifest.json", "server.zip", "worker.zip", "static.zip"
|
|
481
|
+
readonly files: Schema.optional<Schema.$Array<Schema.Literals<readonly ["manifest.json", "server.zip", "worker.zip", "static.zip"]>>>;
|
|
420
482
|
readonly commit: Schema.optional<Schema.String>;
|
|
421
483
|
readonly ref: Schema.optional<Schema.String>;
|
|
422
484
|
readonly message: Schema.optional<Schema.String>;
|
|
@@ -440,6 +502,7 @@ export declare const CreateDeploymentResponse: Schema.Struct<{
|
|
|
440
502
|
readonly manifest: Schema.optional<Schema.Struct<{
|
|
441
503
|
readonly name: Schema.String;
|
|
442
504
|
readonly description: Schema.optional<Schema.String>;
|
|
505
|
+
readonly listed: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
443
506
|
readonly web: Schema.optional<Schema.Struct<{
|
|
444
507
|
readonly server: Schema.optional<Schema.String>;
|
|
445
508
|
readonly static: Schema.optional<Schema.String>;
|
|
@@ -500,13 +563,6 @@ export declare const CreateDeploymentResponse: Schema.Struct<{
|
|
|
500
563
|
readonly name: Schema.optional<Schema.String>;
|
|
501
564
|
readonly dailyLimit: Schema.Finite;
|
|
502
565
|
}>>;
|
|
503
|
-
readonly services: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.Struct<{
|
|
504
|
-
readonly entry: Schema.String;
|
|
505
|
-
readonly cpu: Schema.withDecodingDefault<Schema.Literals<readonly [0.25, 0.5, 1, 2, 4]>, never>;
|
|
506
|
-
readonly memoryMb: Schema.withDecodingDefault<Schema.Int, never>;
|
|
507
|
-
readonly spot: Schema.withDecodingDefault<Schema.Boolean, never>;
|
|
508
|
-
readonly previewMinutes: Schema.withDecodingDefault<Schema.Int, never>;
|
|
509
|
-
}>>, never>;
|
|
510
566
|
}>>;
|
|
511
567
|
/** How it runs the server. */
|
|
512
568
|
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
@@ -546,10 +602,6 @@ export declare const CreateDeploymentResponse: Schema.Struct<{
|
|
|
546
602
|
readonly url: Schema.String;
|
|
547
603
|
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
548
604
|
}>>;
|
|
549
|
-
readonly 'services.zip': Schema.optional<Schema.Struct<{
|
|
550
|
-
readonly url: Schema.String;
|
|
551
|
-
readonly fields: Schema.$Record<Schema.String, Schema.String>;
|
|
552
|
-
}>>;
|
|
553
605
|
}>;
|
|
554
606
|
}>;
|
|
555
607
|
export type CreateDeploymentResponse = typeof CreateDeploymentResponse.Type;
|
|
@@ -619,10 +671,10 @@ export declare const RouteStats: Schema.Struct<{
|
|
|
619
671
|
readonly p95: Schema.NullOr<Schema.Finite>;
|
|
620
672
|
}>;
|
|
621
673
|
export type RouteStats = typeof RouteStats.Type;
|
|
622
|
-
export declare const JobKind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"
|
|
674
|
+
export declare const JobKind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
623
675
|
export type JobKind = typeof JobKind.Type;
|
|
624
676
|
export declare const JobStats: Schema.Struct<{
|
|
625
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"
|
|
677
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
626
678
|
readonly name: Schema.String;
|
|
627
679
|
readonly ok: Schema.Finite;
|
|
628
680
|
readonly error: Schema.Finite;
|
|
@@ -632,7 +684,7 @@ export declare const JobStats: Schema.Struct<{
|
|
|
632
684
|
export type JobStats = typeof JobStats.Type;
|
|
633
685
|
export declare const JobsResponse: Schema.Struct<{
|
|
634
686
|
readonly jobs: Schema.$Array<Schema.Struct<{
|
|
635
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"
|
|
687
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
636
688
|
readonly name: Schema.String;
|
|
637
689
|
readonly ok: Schema.Finite;
|
|
638
690
|
readonly error: Schema.Finite;
|
|
@@ -936,7 +988,7 @@ export declare const UpdateErrorRequest: Schema.Struct<{
|
|
|
936
988
|
readonly status: Schema.Literals<readonly ["open", "resolved", "ignored"]>;
|
|
937
989
|
}>;
|
|
938
990
|
export type UpdateErrorRequest = typeof UpdateErrorRequest.Type;
|
|
939
|
-
/** Log stream of a line: `web
|
|
991
|
+
/** Log stream of a line: `web` or `worker`. */
|
|
940
992
|
export declare const LogStream: Schema.String;
|
|
941
993
|
export type LogStream = typeof LogStream.Type;
|
|
942
994
|
export declare const LogLine: Schema.Struct<{
|
|
@@ -976,7 +1028,7 @@ export declare const LogLine: Schema.Struct<{
|
|
|
976
1028
|
readonly span: Schema.optional<Schema.String>;
|
|
977
1029
|
readonly parent: Schema.optional<Schema.String>;
|
|
978
1030
|
readonly t: Schema.Literal<"err">;
|
|
979
|
-
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"
|
|
1031
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
980
1032
|
readonly name: Schema.String;
|
|
981
1033
|
readonly message: Schema.String;
|
|
982
1034
|
readonly stack: Schema.optional<Schema.String>;
|
|
@@ -995,7 +1047,7 @@ export declare const LogLine: Schema.Struct<{
|
|
|
995
1047
|
readonly calls: Schema.optional<Schema.Finite>;
|
|
996
1048
|
readonly callMs: Schema.optional<Schema.Finite>;
|
|
997
1049
|
readonly t: Schema.Literal<"job">;
|
|
998
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"
|
|
1050
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
999
1051
|
readonly name: Schema.String;
|
|
1000
1052
|
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1001
1053
|
readonly dur: Schema.Finite;
|
|
@@ -1064,10 +1116,8 @@ export declare const LogLine: Schema.Struct<{
|
|
|
1064
1116
|
readonly parent: Schema.optional<Schema.String>;
|
|
1065
1117
|
readonly t: Schema.Literal<"env">;
|
|
1066
1118
|
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
1067
|
-
readonly runtime: Schema.Literals<readonly ["web", "worker"
|
|
1119
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
1068
1120
|
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1069
|
-
readonly name: Schema.optional<Schema.String>;
|
|
1070
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
1071
1121
|
readonly initMs: Schema.optional<Schema.Finite>;
|
|
1072
1122
|
}>]>>;
|
|
1073
1123
|
}>;
|
|
@@ -1110,7 +1160,7 @@ export declare const LogsResponse: Schema.Struct<{
|
|
|
1110
1160
|
readonly span: Schema.optional<Schema.String>;
|
|
1111
1161
|
readonly parent: Schema.optional<Schema.String>;
|
|
1112
1162
|
readonly t: Schema.Literal<"err">;
|
|
1113
|
-
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"
|
|
1163
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
1114
1164
|
readonly name: Schema.String;
|
|
1115
1165
|
readonly message: Schema.String;
|
|
1116
1166
|
readonly stack: Schema.optional<Schema.String>;
|
|
@@ -1129,7 +1179,7 @@ export declare const LogsResponse: Schema.Struct<{
|
|
|
1129
1179
|
readonly calls: Schema.optional<Schema.Finite>;
|
|
1130
1180
|
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1131
1181
|
readonly t: Schema.Literal<"job">;
|
|
1132
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"
|
|
1182
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
1133
1183
|
readonly name: Schema.String;
|
|
1134
1184
|
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1135
1185
|
readonly dur: Schema.Finite;
|
|
@@ -1198,10 +1248,8 @@ export declare const LogsResponse: Schema.Struct<{
|
|
|
1198
1248
|
readonly parent: Schema.optional<Schema.String>;
|
|
1199
1249
|
readonly t: Schema.Literal<"env">;
|
|
1200
1250
|
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
1201
|
-
readonly runtime: Schema.Literals<readonly ["web", "worker"
|
|
1251
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
1202
1252
|
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1203
|
-
readonly name: Schema.optional<Schema.String>;
|
|
1204
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
1205
1253
|
readonly initMs: Schema.optional<Schema.Finite>;
|
|
1206
1254
|
}>]>>;
|
|
1207
1255
|
}>>;
|
|
@@ -1241,7 +1289,7 @@ export declare const TraceResponse: Schema.Struct<{
|
|
|
1241
1289
|
readonly span: Schema.optional<Schema.String>;
|
|
1242
1290
|
readonly parent: Schema.optional<Schema.String>;
|
|
1243
1291
|
readonly t: Schema.Literal<"err">;
|
|
1244
|
-
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"
|
|
1292
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
1245
1293
|
readonly name: Schema.String;
|
|
1246
1294
|
readonly message: Schema.String;
|
|
1247
1295
|
readonly stack: Schema.optional<Schema.String>;
|
|
@@ -1260,7 +1308,7 @@ export declare const TraceResponse: Schema.Struct<{
|
|
|
1260
1308
|
readonly calls: Schema.optional<Schema.Finite>;
|
|
1261
1309
|
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1262
1310
|
readonly t: Schema.Literal<"job">;
|
|
1263
|
-
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"
|
|
1311
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
1264
1312
|
readonly name: Schema.String;
|
|
1265
1313
|
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1266
1314
|
readonly dur: Schema.Finite;
|
|
@@ -1329,14 +1377,286 @@ export declare const TraceResponse: Schema.Struct<{
|
|
|
1329
1377
|
readonly parent: Schema.optional<Schema.String>;
|
|
1330
1378
|
readonly t: Schema.Literal<"env">;
|
|
1331
1379
|
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
1332
|
-
readonly runtime: Schema.Literals<readonly ["web", "worker"
|
|
1380
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
1333
1381
|
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1334
|
-
readonly name: Schema.optional<Schema.String>;
|
|
1335
|
-
readonly reason: Schema.optional<Schema.String>;
|
|
1336
1382
|
readonly initMs: Schema.optional<Schema.Finite>;
|
|
1337
1383
|
}>]>>;
|
|
1338
1384
|
}>;
|
|
1339
1385
|
export type TraceResponse = typeof TraceResponse.Type;
|
|
1386
|
+
/** Lines around one line of a stream, oldest first; `anchor` is that line's index. */
|
|
1387
|
+
export declare const LogContextResponse: Schema.Struct<{
|
|
1388
|
+
readonly lines: Schema.$Array<Schema.Struct<{
|
|
1389
|
+
readonly ts: Schema.String;
|
|
1390
|
+
readonly stream: Schema.String;
|
|
1391
|
+
readonly level: Schema.optional<Schema.String>;
|
|
1392
|
+
readonly message: Schema.String;
|
|
1393
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1394
|
+
readonly event: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
1395
|
+
readonly _p: Schema.Literal<1>;
|
|
1396
|
+
readonly ts: Schema.Finite;
|
|
1397
|
+
readonly app: Schema.String;
|
|
1398
|
+
readonly stage: Schema.String;
|
|
1399
|
+
readonly rev: Schema.String;
|
|
1400
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1401
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1402
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1403
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1404
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1405
|
+
readonly t: Schema.Literal<"req">;
|
|
1406
|
+
readonly method: Schema.String;
|
|
1407
|
+
readonly route: Schema.String;
|
|
1408
|
+
readonly path: Schema.optional<Schema.String>;
|
|
1409
|
+
readonly status: Schema.Finite;
|
|
1410
|
+
readonly dur: Schema.Finite;
|
|
1411
|
+
readonly bytes: Schema.optional<Schema.Finite>;
|
|
1412
|
+
readonly country: Schema.optional<Schema.String>;
|
|
1413
|
+
readonly user: Schema.optional<Schema.String>;
|
|
1414
|
+
readonly cold: Schema.optional<Schema.Boolean>;
|
|
1415
|
+
}>, Schema.Struct<{
|
|
1416
|
+
readonly _p: Schema.Literal<1>;
|
|
1417
|
+
readonly ts: Schema.Finite;
|
|
1418
|
+
readonly app: Schema.String;
|
|
1419
|
+
readonly stage: Schema.String;
|
|
1420
|
+
readonly rev: Schema.String;
|
|
1421
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1422
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1423
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1424
|
+
readonly t: Schema.Literal<"err">;
|
|
1425
|
+
readonly source: Schema.Literals<readonly ["http", "job", "unhandled", "log"]>;
|
|
1426
|
+
readonly name: Schema.String;
|
|
1427
|
+
readonly message: Schema.String;
|
|
1428
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
1429
|
+
readonly route: Schema.optional<Schema.String>;
|
|
1430
|
+
readonly job: Schema.optional<Schema.String>;
|
|
1431
|
+
readonly fingerprint: Schema.String;
|
|
1432
|
+
}>, Schema.Struct<{
|
|
1433
|
+
readonly _p: Schema.Literal<1>;
|
|
1434
|
+
readonly ts: Schema.Finite;
|
|
1435
|
+
readonly app: Schema.String;
|
|
1436
|
+
readonly stage: Schema.String;
|
|
1437
|
+
readonly rev: Schema.String;
|
|
1438
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1439
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1440
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1441
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1442
|
+
readonly callMs: Schema.optional<Schema.Finite>;
|
|
1443
|
+
readonly t: Schema.Literal<"job">;
|
|
1444
|
+
readonly kind: Schema.Literals<readonly ["queue", "event", "cron", "invoke"]>;
|
|
1445
|
+
readonly name: Schema.String;
|
|
1446
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1447
|
+
readonly dur: Schema.Finite;
|
|
1448
|
+
readonly attempt: Schema.optional<Schema.Finite>;
|
|
1449
|
+
readonly next: Schema.optional<Schema.Literals<readonly ["retry", "dead"]>>;
|
|
1450
|
+
}>, Schema.Struct<{
|
|
1451
|
+
readonly _p: Schema.Literal<1>;
|
|
1452
|
+
readonly ts: Schema.Finite;
|
|
1453
|
+
readonly app: Schema.String;
|
|
1454
|
+
readonly stage: Schema.String;
|
|
1455
|
+
readonly rev: Schema.String;
|
|
1456
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1457
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1458
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1459
|
+
readonly t: Schema.Literal<"span">;
|
|
1460
|
+
readonly op: Schema.String;
|
|
1461
|
+
readonly name: Schema.optional<Schema.String>;
|
|
1462
|
+
readonly dur: Schema.Finite;
|
|
1463
|
+
readonly status: Schema.Literals<readonly ["ok", "error"]>;
|
|
1464
|
+
readonly start: Schema.optional<Schema.Finite>;
|
|
1465
|
+
}>, Schema.StructWithRest<Schema.Struct<{
|
|
1466
|
+
readonly _p: Schema.Literal<1>;
|
|
1467
|
+
readonly ts: Schema.Finite;
|
|
1468
|
+
readonly app: Schema.String;
|
|
1469
|
+
readonly stage: Schema.String;
|
|
1470
|
+
readonly rev: Schema.String;
|
|
1471
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1472
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1473
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1474
|
+
readonly t: Schema.Literal<"log">;
|
|
1475
|
+
readonly level: Schema.Literals<readonly ["debug", "info", "warn", "error"]>;
|
|
1476
|
+
readonly msg: Schema.String;
|
|
1477
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.Struct<{
|
|
1478
|
+
readonly _p: Schema.Literal<1>;
|
|
1479
|
+
readonly ts: Schema.Finite;
|
|
1480
|
+
readonly app: Schema.String;
|
|
1481
|
+
readonly stage: Schema.String;
|
|
1482
|
+
readonly rev: Schema.String;
|
|
1483
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1484
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1485
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1486
|
+
readonly t: Schema.Literal<"metric">;
|
|
1487
|
+
readonly name: Schema.String;
|
|
1488
|
+
readonly value: Schema.Finite;
|
|
1489
|
+
readonly unit: Schema.optional<Schema.String>;
|
|
1490
|
+
}>, Schema.Struct<{
|
|
1491
|
+
readonly _p: Schema.Literal<1>;
|
|
1492
|
+
readonly ts: Schema.Finite;
|
|
1493
|
+
readonly app: Schema.String;
|
|
1494
|
+
readonly stage: Schema.String;
|
|
1495
|
+
readonly rev: Schema.String;
|
|
1496
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1497
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1498
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1499
|
+
readonly t: Schema.Literal<"limit">;
|
|
1500
|
+
readonly name: Schema.String;
|
|
1501
|
+
readonly ok: Schema.Boolean;
|
|
1502
|
+
}>, Schema.Struct<{
|
|
1503
|
+
readonly _p: Schema.Literal<1>;
|
|
1504
|
+
readonly ts: Schema.Finite;
|
|
1505
|
+
readonly app: Schema.String;
|
|
1506
|
+
readonly stage: Schema.String;
|
|
1507
|
+
readonly rev: Schema.String;
|
|
1508
|
+
readonly trace: Schema.optional<Schema.String>;
|
|
1509
|
+
readonly span: Schema.optional<Schema.String>;
|
|
1510
|
+
readonly parent: Schema.optional<Schema.String>;
|
|
1511
|
+
readonly t: Schema.Literal<"env">;
|
|
1512
|
+
readonly event: Schema.Literals<readonly ["start", "stop"]>;
|
|
1513
|
+
readonly runtime: Schema.Literals<readonly ["web", "worker"]>;
|
|
1514
|
+
readonly compute: Schema.optional<Schema.Literals<readonly ["request", "instance"]>>;
|
|
1515
|
+
readonly initMs: Schema.optional<Schema.Finite>;
|
|
1516
|
+
}>]>>;
|
|
1517
|
+
}>>;
|
|
1518
|
+
readonly anchor: Schema.Finite;
|
|
1519
|
+
}>;
|
|
1520
|
+
export type LogContextResponse = typeof LogContextResponse.Type;
|
|
1521
|
+
/** How many lines of a range have a value of a field. */
|
|
1522
|
+
export declare const FacetCount: Schema.Struct<{
|
|
1523
|
+
readonly value: Schema.String;
|
|
1524
|
+
readonly count: Schema.Finite;
|
|
1525
|
+
}>;
|
|
1526
|
+
export type FacetCount = typeof FacetCount.Type;
|
|
1527
|
+
/** Lines per bucket by level, and counts of each field's commonest values, for the range and filters. */
|
|
1528
|
+
export declare const LogStatsResponse: Schema.Struct<{
|
|
1529
|
+
readonly res: Schema.Literals<readonly ["1m", "5m", "10m", "15m", "30m", "1h", "1d"]>;
|
|
1530
|
+
readonly timestamps: Schema.$Array<Schema.String>;
|
|
1531
|
+
readonly levels: Schema.Struct<{
|
|
1532
|
+
readonly error: Schema.$Array<Schema.Finite>;
|
|
1533
|
+
readonly warn: Schema.$Array<Schema.Finite>;
|
|
1534
|
+
readonly info: Schema.$Array<Schema.Finite>;
|
|
1535
|
+
readonly debug: Schema.$Array<Schema.Finite>;
|
|
1536
|
+
readonly system: Schema.$Array<Schema.Finite>;
|
|
1537
|
+
}>;
|
|
1538
|
+
readonly total: Schema.Finite;
|
|
1539
|
+
readonly facets: Schema.Struct<{
|
|
1540
|
+
readonly level: Schema.$Array<Schema.Struct<{
|
|
1541
|
+
readonly value: Schema.String;
|
|
1542
|
+
readonly count: Schema.Finite;
|
|
1543
|
+
}>>;
|
|
1544
|
+
readonly stream: Schema.$Array<Schema.Struct<{
|
|
1545
|
+
readonly value: Schema.String;
|
|
1546
|
+
readonly count: Schema.Finite;
|
|
1547
|
+
}>>;
|
|
1548
|
+
readonly route: Schema.$Array<Schema.Struct<{
|
|
1549
|
+
readonly value: Schema.String;
|
|
1550
|
+
readonly count: Schema.Finite;
|
|
1551
|
+
}>>;
|
|
1552
|
+
readonly status: Schema.$Array<Schema.Struct<{
|
|
1553
|
+
readonly value: Schema.String;
|
|
1554
|
+
readonly count: Schema.Finite;
|
|
1555
|
+
}>>;
|
|
1556
|
+
readonly rev: Schema.$Array<Schema.Struct<{
|
|
1557
|
+
readonly value: Schema.String;
|
|
1558
|
+
readonly count: Schema.Finite;
|
|
1559
|
+
}>>;
|
|
1560
|
+
}>;
|
|
1561
|
+
}>;
|
|
1562
|
+
export type LogStatsResponse = typeof LogStatsResponse.Type;
|
|
1563
|
+
/** A request or job that started a trace (its root line). */
|
|
1564
|
+
export declare const TraceSummary: Schema.Struct<{
|
|
1565
|
+
readonly trace: Schema.String;
|
|
1566
|
+
/** When it started, ISO. */
|
|
1567
|
+
readonly ts: Schema.String;
|
|
1568
|
+
readonly kind: Schema.Literals<readonly ["req", "job"]>;
|
|
1569
|
+
/** `GET /api/items/:id` or `queue refresh`. */
|
|
1570
|
+
readonly name: Schema.String;
|
|
1571
|
+
/** The HTTP status of a request. */
|
|
1572
|
+
readonly status: Schema.optional<Schema.Finite>;
|
|
1573
|
+
/** A 5xx request or a failed job. */
|
|
1574
|
+
readonly failed: Schema.Boolean;
|
|
1575
|
+
readonly dur: Schema.Finite;
|
|
1576
|
+
/** Its spans were written (it failed, was slow, or its trace was sampled). */
|
|
1577
|
+
readonly recorded: Schema.Boolean;
|
|
1578
|
+
/** Calls it made that weren't written. */
|
|
1579
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1580
|
+
readonly rev: Schema.optional<Schema.String>;
|
|
1581
|
+
}>;
|
|
1582
|
+
export type TraceSummary = typeof TraceSummary.Type;
|
|
1583
|
+
export declare const TracesResponse: Schema.Struct<{
|
|
1584
|
+
readonly traces: Schema.$Array<Schema.Struct<{
|
|
1585
|
+
readonly trace: Schema.String;
|
|
1586
|
+
/** When it started, ISO. */
|
|
1587
|
+
readonly ts: Schema.String;
|
|
1588
|
+
readonly kind: Schema.Literals<readonly ["req", "job"]>;
|
|
1589
|
+
/** `GET /api/items/:id` or `queue refresh`. */
|
|
1590
|
+
readonly name: Schema.String;
|
|
1591
|
+
/** The HTTP status of a request. */
|
|
1592
|
+
readonly status: Schema.optional<Schema.Finite>;
|
|
1593
|
+
/** A 5xx request or a failed job. */
|
|
1594
|
+
readonly failed: Schema.Boolean;
|
|
1595
|
+
readonly dur: Schema.Finite;
|
|
1596
|
+
/** Its spans were written (it failed, was slow, or its trace was sampled). */
|
|
1597
|
+
readonly recorded: Schema.Boolean;
|
|
1598
|
+
/** Calls it made that weren't written. */
|
|
1599
|
+
readonly calls: Schema.optional<Schema.Finite>;
|
|
1600
|
+
readonly rev: Schema.optional<Schema.String>;
|
|
1601
|
+
}>>;
|
|
1602
|
+
/** More matched than `limit`; narrow the range or filters to see the rest. */
|
|
1603
|
+
readonly truncated: Schema.Boolean;
|
|
1604
|
+
}>;
|
|
1605
|
+
export type TracesResponse = typeof TracesResponse.Type;
|
|
1606
|
+
export declare const InsightsRequest: Schema.Struct<{
|
|
1607
|
+
readonly stage: Schema.optional<Schema.String>;
|
|
1608
|
+
/**
|
|
1609
|
+
* A Logs Insights query (the Logs Insights language only). It runs on the
|
|
1610
|
+
* stage's own log groups; one that picks its own (`SOURCE`) is refused.
|
|
1611
|
+
*/
|
|
1612
|
+
readonly query: Schema.String;
|
|
1613
|
+
readonly from: Schema.optional<Schema.String>;
|
|
1614
|
+
readonly to: Schema.optional<Schema.String>;
|
|
1615
|
+
readonly range: Schema.optional<Schema.String>;
|
|
1616
|
+
}>;
|
|
1617
|
+
export type InsightsRequest = typeof InsightsRequest.Type;
|
|
1618
|
+
export declare const InsightsResponse: Schema.Struct<{
|
|
1619
|
+
/** Result fields in the order the query produced them (hidden `@ptr` left out). */
|
|
1620
|
+
readonly columns: Schema.$Array<Schema.String>;
|
|
1621
|
+
readonly rows: Schema.$Array<Schema.$Array<Schema.NullOr<Schema.String>>>;
|
|
1622
|
+
readonly recordsMatched: Schema.Finite;
|
|
1623
|
+
readonly recordsScanned: Schema.Finite;
|
|
1624
|
+
readonly bytesScanned: Schema.Finite;
|
|
1625
|
+
}>;
|
|
1626
|
+
export type InsightsResponse = typeof InsightsResponse.Type;
|
|
1627
|
+
/** An error group's events per bucket, and the deployments they happened on (Logs Insights). */
|
|
1628
|
+
export declare const ErrorOccurrencesResponse: Schema.Struct<{
|
|
1629
|
+
readonly res: Schema.Literals<readonly ["1m", "5m", "10m", "15m", "30m", "1h", "1d"]>;
|
|
1630
|
+
readonly timestamps: Schema.$Array<Schema.String>;
|
|
1631
|
+
readonly counts: Schema.$Array<Schema.Finite>;
|
|
1632
|
+
readonly revs: Schema.$Array<Schema.Struct<{
|
|
1633
|
+
readonly value: Schema.String;
|
|
1634
|
+
readonly count: Schema.Finite;
|
|
1635
|
+
}>>;
|
|
1636
|
+
}>;
|
|
1637
|
+
export type ErrorOccurrencesResponse = typeof ErrorOccurrencesResponse.Type;
|
|
1638
|
+
/** One line of a series answer: a group's values (key `all` when ungrouped), one per timestamp. */
|
|
1639
|
+
export declare const SeriesLine: Schema.Struct<{
|
|
1640
|
+
readonly key: Schema.String;
|
|
1641
|
+
readonly values: Schema.$Array<Schema.NullOr<Schema.Finite>>;
|
|
1642
|
+
}>;
|
|
1643
|
+
export type SeriesLine = typeof SeriesLine.Type;
|
|
1644
|
+
export declare const SeriesResponse: Schema.Struct<{
|
|
1645
|
+
readonly res: Schema.Literals<readonly ["1m", "5m", "10m", "15m", "30m", "1h", "1d"]>;
|
|
1646
|
+
/** Bucket start times, ISO, oldest first. */
|
|
1647
|
+
readonly timestamps: Schema.$Array<Schema.String>;
|
|
1648
|
+
/** `count`, `per_second`, `percent`, `ms`, or a custom metric's own unit. */
|
|
1649
|
+
readonly unit: Schema.String;
|
|
1650
|
+
readonly series: Schema.$Array<Schema.Struct<{
|
|
1651
|
+
readonly key: Schema.String;
|
|
1652
|
+
readonly values: Schema.$Array<Schema.NullOr<Schema.Finite>>;
|
|
1653
|
+
}>>;
|
|
1654
|
+
/** `stat: histogram`: per timestamp, the count in each latency bucket (`LATENCY_BUCKETS_MS`, then the overflow). */
|
|
1655
|
+
readonly histogram: Schema.optional<Schema.$Array<Schema.$Array<Schema.Finite>>>;
|
|
1656
|
+
/** Why the answer differs from what was asked (coarser buckets past minute data's 3 days, groups cut to the top 10). */
|
|
1657
|
+
readonly note: Schema.optional<Schema.String>;
|
|
1658
|
+
}>;
|
|
1659
|
+
export type SeriesResponse = typeof SeriesResponse.Type;
|
|
1340
1660
|
/** A GET of the stage's health path, for a stage that served nothing lately or has no server. */
|
|
1341
1661
|
export declare const UptimeCheck: Schema.Struct<{
|
|
1342
1662
|
readonly ts: Schema.String;
|
|
@@ -1371,30 +1691,6 @@ export declare const UptimePoint: Schema.Union<readonly [Schema.Struct<{
|
|
|
1371
1691
|
readonly s5xx: Schema.Finite;
|
|
1372
1692
|
}>]>;
|
|
1373
1693
|
export type UptimePoint = typeof UptimePoint.Type;
|
|
1374
|
-
/** Monthly cost of one container if it runs all month (`estimateContainerCost`). */
|
|
1375
|
-
export declare const MonthlyContainerCost: Schema.Struct<{
|
|
1376
|
-
readonly computeUsd: Schema.Finite;
|
|
1377
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
1378
|
-
readonly totalUsd: Schema.Finite;
|
|
1379
|
-
}>;
|
|
1380
|
-
/**
|
|
1381
|
-
* Something billed for as long as it runs, estimated from its size because
|
|
1382
|
-
* Cost Explorer lags a day and doesn't attribute every part of it to the
|
|
1383
|
-
* app (a container's public IPv4 address).
|
|
1384
|
-
*/
|
|
1385
|
-
export declare const AlwaysOnCost: Schema.Struct<{
|
|
1386
|
-
readonly stage: Schema.String;
|
|
1387
|
-
readonly kind: Schema.Literal<"service">;
|
|
1388
|
-
readonly name: Schema.String;
|
|
1389
|
-
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1390
|
-
readonly detail: Schema.String;
|
|
1391
|
-
readonly monthly: Schema.Struct<{
|
|
1392
|
-
readonly computeUsd: Schema.Finite;
|
|
1393
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
1394
|
-
readonly totalUsd: Schema.Finite;
|
|
1395
|
-
}>;
|
|
1396
|
-
}>;
|
|
1397
|
-
export type AlwaysOnCost = typeof AlwaysOnCost.Type;
|
|
1398
1694
|
/** A non-preview stage's server: how it runs, and (prod) what each mode would cost. */
|
|
1399
1695
|
export declare const StageCompute: Schema.Struct<{
|
|
1400
1696
|
readonly stage: Schema.String;
|
|
@@ -1430,19 +1726,6 @@ export declare const CostResponse: Schema.Struct<{
|
|
|
1430
1726
|
readonly usd: Schema.Finite;
|
|
1431
1727
|
}>>;
|
|
1432
1728
|
readonly monthToDateUsd: Schema.Finite;
|
|
1433
|
-
/** Services of the app's non-preview stages (previews run theirs for minutes after a deploy). */
|
|
1434
|
-
readonly alwaysOn: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1435
|
-
readonly stage: Schema.String;
|
|
1436
|
-
readonly kind: Schema.Literal<"service">;
|
|
1437
|
-
readonly name: Schema.String;
|
|
1438
|
-
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1439
|
-
readonly detail: Schema.String;
|
|
1440
|
-
readonly monthly: Schema.Struct<{
|
|
1441
|
-
readonly computeUsd: Schema.Finite;
|
|
1442
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
1443
|
-
readonly totalUsd: Schema.Finite;
|
|
1444
|
-
}>;
|
|
1445
|
-
}>>>;
|
|
1446
1729
|
/** Servers of the app's non-preview stages (previews run request mode). */
|
|
1447
1730
|
readonly compute: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1448
1731
|
readonly stage: Schema.String;
|
|
@@ -1542,121 +1825,6 @@ export type UrlResponse = typeof UrlResponse.Type;
|
|
|
1542
1825
|
export declare const CronRunResponse: Schema.Struct<{
|
|
1543
1826
|
readonly started: Schema.String;
|
|
1544
1827
|
}>;
|
|
1545
|
-
/**
|
|
1546
|
-
* - `running`: every desired task is up and the latest rollout finished
|
|
1547
|
-
* - `starting`: a rollout or replacement is under way
|
|
1548
|
-
* - `failing`: tasks keep stopping before they settle, or the last rollout failed
|
|
1549
|
-
* - `stopped`: scaled to zero (a preview past its minutes, or `plat services stop`)
|
|
1550
|
-
*/
|
|
1551
|
-
export declare const ServiceState: Schema.Literals<readonly ["running", "starting", "failing", "stopped"]>;
|
|
1552
|
-
export type ServiceState = typeof ServiceState.Type;
|
|
1553
|
-
export declare const ServiceInfo: Schema.Struct<{
|
|
1554
|
-
readonly name: Schema.String;
|
|
1555
|
-
/** Size and capacity the live deployment declares. */
|
|
1556
|
-
readonly cpu: Schema.Finite;
|
|
1557
|
-
readonly memoryMb: Schema.Finite;
|
|
1558
|
-
readonly spot: Schema.Boolean;
|
|
1559
|
-
readonly state: Schema.Literals<readonly ["running", "starting", "failing", "stopped"]>;
|
|
1560
|
-
readonly desired: Schema.Finite;
|
|
1561
|
-
readonly running: Schema.Finite;
|
|
1562
|
-
readonly pending: Schema.Finite;
|
|
1563
|
-
/** Deployment whose build the service runs. */
|
|
1564
|
-
readonly deployment: Schema.optional<Schema.String>;
|
|
1565
|
-
/** When the current task started. */
|
|
1566
|
-
readonly startedAt: Schema.optional<Schema.String>;
|
|
1567
|
-
/** When a preview's stop schedule scales it to zero. */
|
|
1568
|
-
readonly stopsAt: Schema.optional<Schema.String>;
|
|
1569
|
-
/** The task that stopped most recently (ECS keeps stopped tasks for about an hour). */
|
|
1570
|
-
readonly lastStop: Schema.optional<Schema.Struct<{
|
|
1571
|
-
readonly at: Schema.String;
|
|
1572
|
-
readonly reason: Schema.String;
|
|
1573
|
-
readonly exitCode: Schema.optional<Schema.Finite>;
|
|
1574
|
-
}>>;
|
|
1575
|
-
/** Recent ECS service events, newest first. */
|
|
1576
|
-
readonly events: Schema.$Array<Schema.Struct<{
|
|
1577
|
-
readonly at: Schema.String;
|
|
1578
|
-
readonly message: Schema.String;
|
|
1579
|
-
}>>;
|
|
1580
|
-
/** Containers started in the range: deploys, crashes, Spot replacements. */
|
|
1581
|
-
readonly starts: Schema.Finite;
|
|
1582
|
-
/** Runs of `run` that failed and were rerun in the same container, in the range. */
|
|
1583
|
-
readonly failedRuns: Schema.Finite;
|
|
1584
|
-
/** CPU and memory use, % of the task's size (ECS's per-service CloudWatch metrics). */
|
|
1585
|
-
readonly points: Schema.$Array<Schema.Struct<{
|
|
1586
|
-
readonly ts: Schema.String;
|
|
1587
|
-
readonly cpu: Schema.NullOr<Schema.Finite>;
|
|
1588
|
-
readonly memory: Schema.NullOr<Schema.Finite>;
|
|
1589
|
-
}>>;
|
|
1590
|
-
/** If it ran all month. */
|
|
1591
|
-
readonly monthly: Schema.Struct<{
|
|
1592
|
-
readonly computeUsd: Schema.Finite;
|
|
1593
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
1594
|
-
readonly totalUsd: Schema.Finite;
|
|
1595
|
-
}>;
|
|
1596
|
-
}>;
|
|
1597
|
-
export type ServiceInfo = typeof ServiceInfo.Type;
|
|
1598
|
-
export declare const ServicesResponse: Schema.Struct<{
|
|
1599
|
-
readonly app: Schema.String;
|
|
1600
|
-
readonly stage: Schema.String;
|
|
1601
|
-
readonly res: Schema.Literals<readonly ["1m", "1h", "1d"]>;
|
|
1602
|
-
readonly services: Schema.$Array<Schema.Struct<{
|
|
1603
|
-
readonly name: Schema.String;
|
|
1604
|
-
/** Size and capacity the live deployment declares. */
|
|
1605
|
-
readonly cpu: Schema.Finite;
|
|
1606
|
-
readonly memoryMb: Schema.Finite;
|
|
1607
|
-
readonly spot: Schema.Boolean;
|
|
1608
|
-
readonly state: Schema.Literals<readonly ["running", "starting", "failing", "stopped"]>;
|
|
1609
|
-
readonly desired: Schema.Finite;
|
|
1610
|
-
readonly running: Schema.Finite;
|
|
1611
|
-
readonly pending: Schema.Finite;
|
|
1612
|
-
/** Deployment whose build the service runs. */
|
|
1613
|
-
readonly deployment: Schema.optional<Schema.String>;
|
|
1614
|
-
/** When the current task started. */
|
|
1615
|
-
readonly startedAt: Schema.optional<Schema.String>;
|
|
1616
|
-
/** When a preview's stop schedule scales it to zero. */
|
|
1617
|
-
readonly stopsAt: Schema.optional<Schema.String>;
|
|
1618
|
-
/** The task that stopped most recently (ECS keeps stopped tasks for about an hour). */
|
|
1619
|
-
readonly lastStop: Schema.optional<Schema.Struct<{
|
|
1620
|
-
readonly at: Schema.String;
|
|
1621
|
-
readonly reason: Schema.String;
|
|
1622
|
-
readonly exitCode: Schema.optional<Schema.Finite>;
|
|
1623
|
-
}>>;
|
|
1624
|
-
/** Recent ECS service events, newest first. */
|
|
1625
|
-
readonly events: Schema.$Array<Schema.Struct<{
|
|
1626
|
-
readonly at: Schema.String;
|
|
1627
|
-
readonly message: Schema.String;
|
|
1628
|
-
}>>;
|
|
1629
|
-
/** Containers started in the range: deploys, crashes, Spot replacements. */
|
|
1630
|
-
readonly starts: Schema.Finite;
|
|
1631
|
-
/** Runs of `run` that failed and were rerun in the same container, in the range. */
|
|
1632
|
-
readonly failedRuns: Schema.Finite;
|
|
1633
|
-
/** CPU and memory use, % of the task's size (ECS's per-service CloudWatch metrics). */
|
|
1634
|
-
readonly points: Schema.$Array<Schema.Struct<{
|
|
1635
|
-
readonly ts: Schema.String;
|
|
1636
|
-
readonly cpu: Schema.NullOr<Schema.Finite>;
|
|
1637
|
-
readonly memory: Schema.NullOr<Schema.Finite>;
|
|
1638
|
-
}>>;
|
|
1639
|
-
/** If it ran all month. */
|
|
1640
|
-
readonly monthly: Schema.Struct<{
|
|
1641
|
-
readonly computeUsd: Schema.Finite;
|
|
1642
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
1643
|
-
readonly totalUsd: Schema.Finite;
|
|
1644
|
-
}>;
|
|
1645
|
-
}>>;
|
|
1646
|
-
}>;
|
|
1647
|
-
export type ServicesResponse = typeof ServicesResponse.Type;
|
|
1648
|
-
export declare const StartServiceRequest: Schema.Struct<{
|
|
1649
|
-
/** Stop it again after this many minutes. Previews default to the service's `previewMinutes`. */
|
|
1650
|
-
readonly minutes: Schema.optional<Schema.Int>;
|
|
1651
|
-
}>;
|
|
1652
|
-
export type StartServiceRequest = typeof StartServiceRequest.Encoded;
|
|
1653
|
-
export declare const ServiceActionResponse: Schema.Struct<{
|
|
1654
|
-
readonly name: Schema.String;
|
|
1655
|
-
/** Tasks the service now asks for (1 running, 0 stopped). */
|
|
1656
|
-
readonly desired: Schema.Finite;
|
|
1657
|
-
readonly stopsAt: Schema.optional<Schema.String>;
|
|
1658
|
-
}>;
|
|
1659
|
-
export type ServiceActionResponse = typeof ServiceActionResponse.Type;
|
|
1660
1828
|
export type CronRunResponse = typeof CronRunResponse.Type;
|
|
1661
1829
|
export declare const AdminOverview: Schema.Struct<{
|
|
1662
1830
|
readonly members: Schema.$Array<Schema.Struct<{
|
|
@@ -1669,7 +1837,6 @@ export declare const AdminOverview: Schema.Struct<{
|
|
|
1669
1837
|
readonly emailsPerDay: Schema.Finite;
|
|
1670
1838
|
readonly edgeRequestsPerMinute: Schema.optional<Schema.Finite>;
|
|
1671
1839
|
readonly edgeFloorAt: Schema.optional<Schema.Finite>;
|
|
1672
|
-
readonly servicesPerApp: Schema.Finite;
|
|
1673
1840
|
}>;
|
|
1674
1841
|
readonly apps: Schema.Finite;
|
|
1675
1842
|
readonly stages: Schema.Finite;
|
|
@@ -1685,19 +1852,6 @@ export declare const AdminOverview: Schema.Struct<{
|
|
|
1685
1852
|
readonly usd: Schema.Finite;
|
|
1686
1853
|
}>>;
|
|
1687
1854
|
readonly monthToDateUsd: Schema.Finite;
|
|
1688
|
-
/** Services of the app's non-preview stages (previews run theirs for minutes after a deploy). */
|
|
1689
|
-
readonly alwaysOn: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1690
|
-
readonly stage: Schema.String;
|
|
1691
|
-
readonly kind: Schema.Literal<"service">;
|
|
1692
|
-
readonly name: Schema.String;
|
|
1693
|
-
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1694
|
-
readonly detail: Schema.String;
|
|
1695
|
-
readonly monthly: Schema.Struct<{
|
|
1696
|
-
readonly computeUsd: Schema.Finite;
|
|
1697
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
1698
|
-
readonly totalUsd: Schema.Finite;
|
|
1699
|
-
}>;
|
|
1700
|
-
}>>>;
|
|
1701
1855
|
/** Servers of the app's non-preview stages (previews run request mode). */
|
|
1702
1856
|
readonly compute: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1703
1857
|
readonly stage: Schema.String;
|
|
@@ -1733,19 +1887,6 @@ export declare const AdminOverview: Schema.Struct<{
|
|
|
1733
1887
|
readonly usd: Schema.Finite;
|
|
1734
1888
|
}>>;
|
|
1735
1889
|
readonly monthToDateUsd: Schema.Finite;
|
|
1736
|
-
/** Services of the app's non-preview stages (previews run theirs for minutes after a deploy). */
|
|
1737
|
-
readonly alwaysOn: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1738
|
-
readonly stage: Schema.String;
|
|
1739
|
-
readonly kind: Schema.Literal<"service">;
|
|
1740
|
-
readonly name: Schema.String;
|
|
1741
|
-
/** `0.25 vCPU · 512 MB · Spot`. */
|
|
1742
|
-
readonly detail: Schema.String;
|
|
1743
|
-
readonly monthly: Schema.Struct<{
|
|
1744
|
-
readonly computeUsd: Schema.Finite;
|
|
1745
|
-
readonly publicIpv4Usd: Schema.Finite;
|
|
1746
|
-
readonly totalUsd: Schema.Finite;
|
|
1747
|
-
}>;
|
|
1748
|
-
}>>>;
|
|
1749
1890
|
/** Servers of the app's non-preview stages (previews run request mode). */
|
|
1750
1891
|
readonly compute: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1751
1892
|
readonly stage: Schema.String;
|