@runblackcat/sdk 0.1.0-alpha.131 → 0.1.0-alpha.132

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runblackcat/sdk",
3
- "version": "0.1.0-alpha.131",
3
+ "version": "0.1.0-alpha.132",
4
4
  "description": "TypeScript SDK for the Blackcat sandbox gateway",
5
5
  "license": "Apache-2.0",
6
6
  "repository": "https://github.com/TreebeardHQ/blackcat",
@@ -455,6 +455,9 @@ interface CapacityReservationBase {
455
455
  ready_at?: number | null;
456
456
  /** `ready_at` less its creation time, in milliseconds, or null. */
457
457
  time_to_ready_ms?: number | null;
458
+ /** When the first sandbox that took one of its slots was placed (epoch
459
+ * milliseconds), or null until one is. */
460
+ first_placed_at?: number | null;
458
461
  }
459
462
  export interface CapacityReservationLaunch {
460
463
  state: string;
@@ -560,6 +563,33 @@ export interface ReservationTelemetryHeader {
560
563
  host_scan_ms_max: number;
561
564
  host_scan_truncated: boolean;
562
565
  }
566
+ /** What start admission did on a host during one minute. A field that needs
567
+ * a reading is null when the minute had none: unknown, never zero. */
568
+ export interface ReservationTelemetryAdmissionMinute {
569
+ /** The start of the minute, epoch milliseconds. */
570
+ at_ms: number;
571
+ /** Admissions refused for node CPU pressure. */
572
+ refused_cpu_pressure: number;
573
+ /** Admissions refused at the concurrent-start limit. */
574
+ refused_start_limit: number;
575
+ /** Every other refusal (memory, ublk, not schedulable, ...). */
576
+ refused_other: number;
577
+ /** Starts admitted. */
578
+ starts_begun: number;
579
+ /** Starts whose launch finished. */
580
+ starts_completed: number;
581
+ /** The most starts in flight at an admission decision. */
582
+ in_flight_starts_max: number;
583
+ /** CPU `some` avg10 read at admission decisions, hundredths of a percent
584
+ * (2601 is 26.01). */
585
+ cpu_psi_some_avg10_hundredths_max: number | null;
586
+ cpu_psi_some_avg10_hundredths_mean: number | null;
587
+ /** Admission to launch complete, milliseconds, over starts that completed. */
588
+ start_to_ready_ms_p50: number | null;
589
+ start_to_ready_ms_max: number | null;
590
+ /** The learned start budget in guest vCPUs at the end of the minute. */
591
+ start_budget_vcpus: number | null;
592
+ }
563
593
  /** The telemetry of one host of a reservation. */
564
594
  export interface ReservationTelemetryDocument {
565
595
  header: ReservationTelemetryHeader;
@@ -568,6 +598,9 @@ export interface ReservationTelemetryDocument {
568
598
  sandboxes: Record<string, ReservationTelemetrySandboxSeries>;
569
599
  /** When the document was archived; null while live. */
570
600
  flushed_at_ms: number | null;
601
+ /** Start admission per minute, oldest first. Absent from a document
602
+ * written before it existed. */
603
+ admission_minutes?: ReservationTelemetryAdmissionMinute[];
571
604
  }
572
605
  export interface ReservationTelemetry {
573
606
  reservation: string;