diff --git a/src/robot/client.ts b/src/robot/client.ts index 7e6640f71..f845bc0a1 100644 --- a/src/robot/client.ts +++ b/src/robot/client.ts @@ -719,6 +719,12 @@ export class RobotClient extends EventDispatcher implements Robot { return resp.resourceRpcSubtypes; } + // MACHINE STATUS + + async getMachineStatus() { + return this.robotService.getMachineStatus({}); + } + // MODULES async restartModule(moduleId?: string, moduleName?: string) { diff --git a/src/robot/robot.ts b/src/robot/robot.ts index 746e1a4ce..f279e826f 100644 --- a/src/robot/robot.ts +++ b/src/robot/robot.ts @@ -155,6 +155,13 @@ export interface Robot { */ getCloudMetadata(): Promise; + /** + * Get the current status of the robot. + * + * @alpha + */ + getMachineStatus(): Promise; + /** * Restarts a module running on the machine with the given id or name. *