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

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.133",
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,41 @@ 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
+ /** Of `starts_completed`, those admitted before the host began recording.
582
+ * Optional because a record written earlier lacks it (read as 0). */
583
+ starts_carried_in?: number;
584
+ /** Starts that ended without a launch (aborted, failed, expired), counted
585
+ * in the minute they ended. */
586
+ starts_abandoned?: number;
587
+ /** Starts admitted in this record and still in flight at the minute's end. */
588
+ starts_in_flight_end?: number;
589
+ /** The most starts in flight at an admission decision. */
590
+ in_flight_starts_max: number;
591
+ /** CPU `some` avg10 read at admission decisions, hundredths of a percent
592
+ * (2601 is 26.01). */
593
+ cpu_psi_some_avg10_hundredths_max: number | null;
594
+ cpu_psi_some_avg10_hundredths_mean: number | null;
595
+ /** Admission to launch complete, milliseconds, over starts that completed. */
596
+ start_to_ready_ms_p50: number | null;
597
+ start_to_ready_ms_max: number | null;
598
+ /** The learned start budget in guest vCPUs at the end of the minute. */
599
+ start_budget_vcpus: number | null;
600
+ }
563
601
  /** The telemetry of one host of a reservation. */
564
602
  export interface ReservationTelemetryDocument {
565
603
  header: ReservationTelemetryHeader;
@@ -568,6 +606,9 @@ export interface ReservationTelemetryDocument {
568
606
  sandboxes: Record<string, ReservationTelemetrySandboxSeries>;
569
607
  /** When the document was archived; null while live. */
570
608
  flushed_at_ms: number | null;
609
+ /** Start admission per minute, oldest first. Absent from a document
610
+ * written before it existed. */
611
+ admission_minutes?: ReservationTelemetryAdmissionMinute[];
571
612
  }
572
613
  export interface ReservationTelemetry {
573
614
  reservation: string;