Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSDK-8844 - Expose machine status #432

Merged
merged 3 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading