diff --git a/proto/viam/robot/v1/robot.proto b/proto/viam/robot/v1/robot.proto index 2ffe5718a..165321d43 100644 --- a/proto/viam/robot/v1/robot.proto +++ b/proto/viam/robot/v1/robot.proto @@ -127,6 +127,12 @@ service RobotService { get: "/viam/api/v1/cloud_metadata" }; } + + rpc RestartModule(RestartModuleRequest) returns (RestartModuleResponse) { + option (google.api.http) = { + post: "/viam/api/v1/restart_module" + }; + } } message FrameSystemConfig { @@ -330,3 +336,20 @@ message GetCloudMetadataResponse { string machine_id = 4; string machine_part_id = 5; } + +message RestartModuleRequest { + oneof id_or_name { + // ID is for registry modules, name for local modules + string module_id = 1; + string module_name = 2; + } + // optional process shutdown params + int32 signal = 3; + int32 timeout_seconds = 4; +} + +message RestartModuleRequest { + bool module_found = 1; + bool timed_out = 2; + int32 exit_code = 3; +}