Skip to content

Commit

Permalink
RSDK-8844 - Expose machine status (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheukt authored Dec 19, 2024
1 parent 220de28 commit 99e4ccb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/robot/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
7 changes: 7 additions & 0 deletions src/robot/robot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@ export interface Robot {
*/
getCloudMetadata(): Promise<CloudMetadata>;

/**
* Get the current status of the robot.
*
* @alpha
*/
getMachineStatus(): Promise<proto.GetMachineStatusResponse>;

/**
* Restarts a module running on the machine with the given id or name.
*
Expand Down

0 comments on commit 99e4ccb

Please sign in to comment.