Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/next/lib/api/schema/compute/get-detailed-state.ts
Views: 688
import { z } from "../../framework";12import { FailedAPIOperationSchema } from "../common";34import { ProjectIdSchema } from "../projects/common";56import { ComputeServerIdSchema } from "./common";78// OpenAPI spec9//10export const GetDetailedServerStateInputSchema = z11.object({12id: ComputeServerIdSchema,13project_id: ProjectIdSchema,14name: z15.string()16.describe(17`Optional JSON path to select a particular property of the compute18server's detailed state.`,19)20.optional(),21})22.describe(23`Returns a map from component name to something like \`{state:'running',time:Date.now()}\`.24This is used to provide users with insight into what's currently happening on their25compute server. The response may optionally be filtered via a JSON path specified in26the \`name\` attribute to obtain a particular (possibly nested) state property.`,27);2829export const GetDetailedServerStateOutputSchema = z.union([30FailedAPIOperationSchema,31z.string().describe(32`When the \`name\` field is not specified, the entire server state is returned as a33string; otherwise, only the subset of the server state corresponding to the JSON34path specified in \`name\` is returned.`,35),36]);3738export type GetDetailedServerStateInput = z.infer<39typeof GetDetailedServerStateInputSchema40>;41export type GetDetailedServerStateOutput = z.infer<42typeof GetDetailedServerStateOutputSchema43>;444546