@archildata/api-types 0.0.102 → 0.0.103

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.
Files changed (2) hide show
  1. package/index.d.ts +98 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -654,6 +654,26 @@ export interface paths {
654
654
  patch?: never;
655
655
  trace?: never;
656
656
  };
657
+ "/api/disks/{id}/metrics": {
658
+ parameters: {
659
+ query?: never;
660
+ header?: never;
661
+ path?: never;
662
+ cookie?: never;
663
+ };
664
+ /**
665
+ * Get a disk's metrics
666
+ * @description Returns points in time order, omitting intervals with no samples. The current interval updates about once a minute. History follows usage retention (90 days by default).
667
+ */
668
+ get: operations["getDiskMetrics"];
669
+ put?: never;
670
+ post?: never;
671
+ delete?: never;
672
+ options?: never;
673
+ head?: never;
674
+ patch?: never;
675
+ trace?: never;
676
+ };
657
677
  "/api/disks/{id}/sandbox-mount": {
658
678
  parameters: {
659
679
  query?: never;
@@ -3281,6 +3301,50 @@ export interface components {
3281
3301
  allowedIps: string[];
3282
3302
  };
3283
3303
  };
3304
+ ApiResponse_DiskMetricSeries: {
3305
+ /** @example true */
3306
+ success: boolean;
3307
+ data: components["schemas"]["DiskMetricSeries"];
3308
+ };
3309
+ DiskMetricSeries: {
3310
+ /** @example dsk-0123456789abcdef */
3311
+ diskId: string;
3312
+ /**
3313
+ * Format: int64
3314
+ * @description Start of the range served, in Unix seconds.
3315
+ * @example 1794268800
3316
+ */
3317
+ from: number;
3318
+ /**
3319
+ * Format: int64
3320
+ * @description End of the range served, in Unix seconds, exclusive.
3321
+ * @example 1794355200
3322
+ */
3323
+ to: number;
3324
+ /**
3325
+ * @description Seconds each point covers.
3326
+ * @example 600
3327
+ */
3328
+ step: number;
3329
+ /** @description Only metrics recorded in this region appear here. */
3330
+ series: {
3331
+ /** @description Mean active bytes over the sampled portion of each interval. */
3332
+ activeBytes?: components["schemas"]["DiskMetricPoint"][];
3333
+ };
3334
+ };
3335
+ DiskMetricPoint: {
3336
+ /**
3337
+ * Format: int64
3338
+ * @description Start of the interval, in Unix seconds.
3339
+ * @example 1794268800
3340
+ */
3341
+ t: number;
3342
+ /**
3343
+ * Format: int64
3344
+ * @example 1073741824
3345
+ */
3346
+ v: number;
3347
+ };
3284
3348
  ApiResponse_SandboxMount: {
3285
3349
  /** @example true */
3286
3350
  success: boolean;
@@ -5416,6 +5480,40 @@ export interface operations {
5416
5480
  500: components["responses"]["InternalError"];
5417
5481
  };
5418
5482
  };
5483
+ getDiskMetrics: {
5484
+ parameters: {
5485
+ query?: {
5486
+ /** @description Start of the range, in Unix seconds. Defaults to 24 hours before `to`. Rounded down to a multiple of `step`. */
5487
+ from?: number;
5488
+ /** @description End of the range, in Unix seconds, exclusive. Defaults to now. */
5489
+ to?: number;
5490
+ /** @description Seconds each point covers, a multiple of 600. Defaults to 600 for a range up to a day, 1800 up to a week, and 3600 beyond. A range of more than 3,000 steps is refused. */
5491
+ step?: number;
5492
+ };
5493
+ header?: never;
5494
+ path: {
5495
+ /** @description Disk ID (format `dsk-{16 hex chars}`) */
5496
+ id: components["parameters"]["DiskId"];
5497
+ };
5498
+ cookie?: never;
5499
+ };
5500
+ requestBody?: never;
5501
+ responses: {
5502
+ /** @description The disk's metric series */
5503
+ 200: {
5504
+ headers: {
5505
+ [name: string]: unknown;
5506
+ };
5507
+ content: {
5508
+ "application/json": components["schemas"]["ApiResponse_DiskMetricSeries"];
5509
+ };
5510
+ };
5511
+ 400: components["responses"]["ValidationError"];
5512
+ 401: components["responses"]["Unauthorized"];
5513
+ 404: components["responses"]["NotFound"];
5514
+ 500: components["responses"]["InternalError"];
5515
+ };
5516
+ };
5419
5517
  getSandboxMount: {
5420
5518
  parameters: {
5421
5519
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.102",
3
+ "version": "0.0.103",
4
4
  "description": "Public API types for Archil",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",