Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1 | syntax = "proto3";
|
| 2 |
|
| 3 | option go_package = "github.com/opencord/device-management-interface/v3/go/dmi";
|
| 4 | package dmi;
|
| 5 |
|
| 6 | import "dmi/commons.proto";
|
| 7 | import "dmi/hw.proto";
|
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 8 | import "google/protobuf/empty.proto";
|
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 9 |
|
| 10 | // Protos for the management of a hardware and it's components
|
| 11 |
|
| 12 | message PhysicalInventoryRequest {
|
| 13 | Uuid device_uuid = 1;
|
| 14 | }
|
| 15 |
|
| 16 | message PhysicalInventoryResponse {
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 17 | enum Reason {
|
| 18 | UNDEFINED_REASON = 0;
|
| 19 | UNKNOWN_DEVICE = 1;
|
| 20 | INTERNAL_ERROR = 2;
|
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 21 | DEVICE_UNREACHABLE = 3;
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 22 | }
|
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 23 | Status status = 1;
|
| 24 | Reason reason = 2;
|
| 25 | Hardware inventory = 3;
|
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 26 | // It is recommended that upstream components/users of the DMI interface
|
| 27 | // do not really interpret/parse the reson_detail, but rather use it for
|
| 28 | // display purposes to the end user or use it for logging the error
|
| 29 | string reason_detail = 4;
|
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 30 | }
|
| 31 |
|
| 32 | message HWComponentInfoGetRequest {
|
| 33 | Uuid device_uuid = 1;
|
| 34 | Uuid component_uuid = 2;
|
| 35 | string component_name = 3;
|
| 36 | }
|
| 37 |
|
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 38 | message HWComponentInfoGetResponse {
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 39 | enum Reason {
|
| 40 | UNDEFINED_REASON = 0;
|
| 41 | UNKNOWN_DEVICE = 1;
|
| 42 | UNKNOWN_COMPONENT = 2;
|
| 43 | INTERNAL_ERROR = 3;
|
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 44 | DEVICE_UNREACHABLE = 4;
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 45 | }
|
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 46 | Status status = 1;
|
| 47 | Reason reason = 2;
|
| 48 | Component component = 3;
|
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 49 | string reason_detail = 4;
|
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 50 | }
|
| 51 |
|
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 52 | message HWComponentInfoSetRequest {
|
| 53 | Uuid device_uuid = 1;
|
| 54 | Uuid component_uuid = 2;
|
| 55 | string component_name = 3;
|
| 56 | ModifiableComponent changes = 4;
|
| 57 | }
|
| 58 |
|
| 59 | message HWComponentInfoSetResponse {
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 60 | enum Reason {
|
| 61 | UNDEFINED_REASON = 0;
|
| 62 | UNKNOWN_DEVICE = 1;
|
| 63 | UNKNOWN_COMPONENT = 2;
|
| 64 | INVALID_PARAMS = 3;
|
| 65 | INTERNAL_ERROR = 4;
|
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 66 | DEVICE_UNREACHABLE = 5;
|
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 67 | SET_UNSUPPORTED = 6;
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 68 | }
|
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 69 | Status status = 1;
|
| 70 | Reason reason = 2;
|
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 71 | string reason_detail = 3;
|
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 72 | }
|
| 73 |
|
| 74 | message StartManagingDeviceResponse {
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 75 | enum Reason {
|
| 76 | UNDEFINED_REASON = 0;
|
| 77 | // DEVICE_ALREADY_MANAGED is returned when StartManagingDevice is called again for the same name AFTER a previously
|
| 78 | // successful StartManagingDevice operation
|
| 79 | DEVICE_ALREADY_MANAGED = 1;
|
| 80 | // OPERATION_ALREADY_IN_PROGRESS is returned when StartManagingDevice is called again for the same name BEFORE
|
| 81 | // a previous StartManagingDevice operation has completed
|
| 82 | OPERATION_ALREADY_IN_PROGRESS = 2;
|
| 83 | INVALID_PARAMS = 3;
|
| 84 | INTERNAL_ERROR = 4;
|
amit.ghosh | 6bdb0f7 | 2021-06-02 14:42:29 +0200 | [diff] [blame] | 85 | // AUTHENTICATION_FAILURE is returned when the device management software/server is not able to connect to the underlying
|
| 86 | // hardware because of authentication failures
|
| 87 | AUTHENTICATION_FAILURE = 5;
|
| 88 | // INCOMPATIBLE_DEVICE is returned when there is a mismatch between the device management software/server and the underlying
|
| 89 | // hardware
|
| 90 | INCOMPATIBLE_DEVICE = 6;
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 91 | }
|
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 92 | Status status = 1;
|
| 93 | Reason reason = 2;
|
| 94 | Uuid device_uuid = 3;
|
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 95 | string reason_detail = 4;
|
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 96 | }
|
| 97 |
|
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 98 | message StopManagingDeviceRequest {
|
| 99 | string name = 1;
|
| 100 | }
|
| 101 |
|
| 102 | message StopManagingDeviceResponse {
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 103 | // The only case in which an error is expected is if the name of the
|
| 104 | // device to be stopped is not found
|
| 105 | enum Reason {
|
| 106 | UNDEFINED_REASON = 0;
|
amit.ghosh | 0c68741 | 2021-03-24 19:01:08 +0100 | [diff] [blame] | 107 | UNKNOWN_DEVICE = 1;
|
amit.ghosh | dd12d88 | 2022-07-01 12:32:36 +0200 | [diff] [blame] | 108 | // DEVICE_UNREACHABLE is to be returned when the device manager cannot reach the device and stop managing it
|
| 109 | DEVICE_UNREACHABLE = 2;
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 110 | }
|
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 111 | Status status = 1;
|
| 112 | Reason reason = 2;
|
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 113 | string reason_detail = 3;
|
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 114 | }
|
| 115 |
|
amit.ghosh | 0c68741 | 2021-03-24 19:01:08 +0100 | [diff] [blame] | 116 | message ManagedDeviceInfo {
|
| 117 | ModifiableComponent info = 1;
|
| 118 | Uuid device_uuid = 2;
|
| 119 | }
|
| 120 |
|
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 121 | message ManagedDevicesResponse {
|
amit.ghosh | 0c68741 | 2021-03-24 19:01:08 +0100 | [diff] [blame] | 122 | enum Reason {
|
| 123 | UNDEFINED_REASON = 0;
|
| 124 | INTERNAL_ERROR = 1;
|
| 125 | }
|
| 126 | Status status = 1;
|
| 127 | Reason reason = 2;
|
| 128 | repeated ManagedDeviceInfo devices = 3;
|
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 129 | }
|
| 130 |
|
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 131 | message SetLoggingEndpointRequest {
|
| 132 | Uuid device_uuid = 1;
|
| 133 | string logging_endpoint = 2;
|
| 134 | string logging_protocol = 3;
|
| 135 | }
|
| 136 |
|
| 137 | message SetRemoteEndpointResponse {
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 138 | enum Reason {
|
| 139 | UNDEFINED_REASON = 0;
|
| 140 | UNKNOWN_DEVICE = 1;
|
| 141 | INTERNAL_ERROR = 2;
|
| 142 | LOGGING_ENDPOINT_ERROR = 3;
|
| 143 | LOGGING_ENDPOINT_PROTOCOL_ERROR = 4;
|
| 144 | MSGBUS_ENDPOINT_ERROR = 5;
|
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 145 | DEVICE_UNREACHABLE = 6;
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 146 | }
|
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 147 | Status status = 1;
|
| 148 | Reason reason = 2;
|
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 149 | string reason_detail = 3;
|
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 150 | }
|
| 151 |
|
| 152 | message GetLoggingEndpointResponse {
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 153 | enum Reason {
|
| 154 | UNDEFINED_REASON = 0;
|
| 155 | UNKNOWN_DEVICE = 1;
|
| 156 | INTERNAL_ERROR = 2;
|
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 157 | DEVICE_UNREACHABLE = 3;
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 158 | }
|
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 159 | Status status = 1;
|
| 160 | Reason reason = 2;
|
| 161 | string logging_endpoint = 3;
|
| 162 | string logging_protocol = 4;
|
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 163 | string reason_detail = 5;
|
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 164 | }
|
| 165 |
|
| 166 | message SetMsgBusEndpointRequest {
|
| 167 | string msgbus_endpoint = 1;
|
| 168 | }
|
| 169 |
|
| 170 | message GetMsgBusEndpointResponse {
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 171 | enum Reason {
|
| 172 | UNDEFINED_REASON = 0;
|
| 173 | INTERNAL_ERROR = 1;
|
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 174 | DEVICE_UNREACHABLE = 2;
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 175 | }
|
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 176 | Status status = 1;
|
| 177 | Reason reason = 2;
|
| 178 | string msgbus_endpoint = 3;
|
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 179 | string reason_detail = 4;
|
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 180 | }
|
| 181 |
|
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 182 | message EntitiesLogLevel {
|
| 183 | LogLevel logLevel = 1;
|
| 184 | repeated string entities = 2;
|
| 185 | }
|
| 186 |
|
| 187 | message SetLogLevelRequest {
|
| 188 | Uuid device_uuid = 1;
|
| 189 | repeated EntitiesLogLevel loglevels = 2;
|
| 190 | }
|
| 191 |
|
| 192 | message SetLogLevelResponse {
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 193 | enum Reason {
|
| 194 | UNDEFINED_REASON = 0;
|
| 195 | UNKNOWN_DEVICE = 1;
|
| 196 | INTERNAL_ERROR = 2;
|
| 197 | UNKNOWN_LOG_ENTITY = 3;
|
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 198 | DEVICE_UNREACHABLE = 4;
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 199 | }
|
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 200 | Uuid device_uuid = 1;
|
| 201 | Status status = 2;
|
| 202 | Reason reason = 3;
|
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 203 | string reason_detail = 4;
|
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 204 | }
|
| 205 |
|
| 206 | message GetLogLevelRequest {
|
| 207 | Uuid device_uuid = 1;
|
| 208 | repeated string entities = 2;
|
| 209 | }
|
| 210 |
|
| 211 | message GetLogLevelResponse {
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 212 | enum Reason {
|
| 213 | UNDEFINED_REASON = 0;
|
| 214 | UNKNOWN_DEVICE = 1;
|
| 215 | INTERNAL_ERROR = 2;
|
| 216 | UNKNOWN_LOG_ENTITY = 3;
|
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 217 | DEVICE_UNREACHABLE = 4;
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 218 | }
|
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 219 | Uuid device_uuid = 1;
|
| 220 | repeated EntitiesLogLevel logLevels = 2;
|
| 221 | Status status = 3;
|
| 222 | Reason reason = 4;
|
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 223 | string reason_detail = 5;
|
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 224 | }
|
| 225 |
|
| 226 | message GetLoggableEntitiesRequest {
|
| 227 | Uuid device_uuid = 1;
|
| 228 | }
|
| 229 |
|
amit.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame^] | 230 | message SetDmLogLevelRequest {
|
| 231 | LogLevel level = 1;
|
| 232 | }
|
| 233 |
|
| 234 | message SetDmLogLevelResponse {
|
| 235 | enum Reason {
|
| 236 | UNDEFINED_REASON = 0;
|
| 237 | INTERNAL_ERROR = 1;
|
| 238 | UNKNOWN_LOG_LEVEL = 2;
|
| 239 | }
|
| 240 | Status status = 1;
|
| 241 | Reason reason = 2;
|
| 242 | string reason_detail = 3;
|
| 243 | }
|
| 244 |
|
| 245 | message GetDmLogLevelRequest {
|
| 246 | }
|
| 247 |
|
| 248 | message GetDmLogLevelResponse {
|
| 249 | enum Reason {
|
| 250 | UNDEFINED_REASON = 0;
|
| 251 | INTERNAL_ERROR = 1;
|
| 252 | }
|
| 253 |
|
| 254 | LogLevel level = 1;
|
| 255 | Status status = 2;
|
| 256 | Reason reason = 3;
|
| 257 | string reason_detail = 4;
|
| 258 | }
|
| 259 |
|
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 260 | message Heartbeat {
|
| 261 | fixed32 heartbeat_signature = 1;
|
| 262 | }
|
| 263 |
|
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 264 | message RebootDeviceRequest {
|
| 265 | Uuid device_uuid = 1;
|
| 266 | }
|
| 267 |
|
| 268 | message RebootDeviceResponse {
|
| 269 | enum Reason {
|
| 270 | UNDEFINED_REASON = 0;
|
| 271 | UNKNOWN_DEVICE = 1;
|
| 272 | INTERNAL_ERROR = 2;
|
| 273 | DEVICE_UNREACHABLE = 3;
|
amit.ghosh | 840cb60 | 2022-04-08 16:10:50 +0200 | [diff] [blame] | 274 | DEVICE_IN_WRONG_STATE = 4; // This reason would be returned by the Device Manager if doing the reboot could lead the device to an inconsistent state.
|
| 275 | // For example, if a RebootRequest is issued while the startup configuration is being updated
|
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 276 | }
|
| 277 | Status status = 3;
|
| 278 | Reason reason = 4;
|
| 279 | string reason_detail = 5;
|
| 280 | }
|
| 281 |
|
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 282 | service NativeHWManagementService {
|
| 283 | // Initializes context for a device and sets up required states
|
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 284 | // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
|
| 285 | // and their meanings in this context is mentioned below:
|
| 286 | // name = The unique name that needs to be assigned to this hardware;
|
| 287 | // class = COMPONENT_TYPE_UNDEFINED;
|
| 288 | // parent = nil;
|
| 289 | // alias = Optional;
|
| 290 | // asset_id = Optional;
|
| 291 | // uri = IP Address of the Hardware;
|
| 292 | rpc StartManagingDevice(ModifiableComponent) returns(stream StartManagingDeviceResponse);
|
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 293 |
|
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 294 | // Stop management of a device and clean up any context and caches for that device
|
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 295 | // This rpc can be called at any time, even before the StartManagingDevice operation
|
| 296 | // has completed, and should be able to cleanup.
|
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 297 | rpc StopManagingDevice(StopManagingDeviceRequest) returns(StopManagingDeviceResponse);
|
| 298 |
|
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 299 | // Returns an object containing a list of devices managed by this entity
|
| 300 | rpc GetManagedDevices(google.protobuf.Empty) returns(ManagedDevicesResponse);
|
| 301 |
|
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 302 | // Get the HW inventory details of the Device
|
| 303 | rpc GetPhysicalInventory(PhysicalInventoryRequest) returns(stream PhysicalInventoryResponse);
|
| 304 |
|
| 305 | // Get the details of a particular HW component
|
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 306 | rpc GetHWComponentInfo(HWComponentInfoGetRequest) returns(stream HWComponentInfoGetResponse);
|
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 307 |
|
| 308 | // Sets the permissible attributes of a HW component
|
| 309 | rpc SetHWComponentInfo(HWComponentInfoSetRequest) returns(HWComponentInfoSetResponse);
|
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 310 |
|
| 311 | // Sets the location to which logs need to be shipped
|
| 312 | rpc SetLoggingEndpoint(SetLoggingEndpointRequest) returns(SetRemoteEndpointResponse);
|
| 313 |
|
| 314 | // Gets the configured location to which the logs are being shipped
|
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 315 | rpc GetLoggingEndpoint(HardwareID) returns(GetLoggingEndpointResponse);
|
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 316 |
|
| 317 | // Sets the location of the Message Bus to which events and metrics are shipped
|
| 318 | rpc SetMsgBusEndpoint(SetMsgBusEndpointRequest) returns(SetRemoteEndpointResponse);
|
| 319 |
|
| 320 | // Gets the configured location to which the events and metrics are being shipped
|
| 321 | rpc GetMsgBusEndpoint(google.protobuf.Empty) returns(GetMsgBusEndpointResponse);
|
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 322 |
|
| 323 | // Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
|
| 324 | // In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
|
| 325 | // interface, package etc.
|
| 326 | rpc GetLoggableEntities(GetLoggableEntitiesRequest) returns(GetLogLevelResponse);
|
| 327 |
|
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 328 | // Sets the log level of the device, for each given entity to a certain level.
|
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 329 | // If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
|
| 330 | // no entity in the list it's assumed that the caller wants to set that level for all the entities.
|
| 331 | rpc SetLogLevel(SetLogLevelRequest) returns(SetLogLevelResponse);
|
| 332 |
|
| 333 | // Gets the configured log level for a certain entity on a certain device.
|
| 334 | // If no entity is specified in the request all the entities with their log level should be returned.
|
| 335 | rpc GetLogLevel(GetLogLevelRequest) returns(GetLogLevelResponse);
|
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 336 |
|
| 337 | // Performs the heartbeat check
|
| 338 | rpc HeartbeatCheck(google.protobuf.Empty) returns (Heartbeat);
|
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 339 |
|
| 340 | // Performs the reboot of the device
|
| 341 | rpc RebootDevice(RebootDeviceRequest) returns(RebootDeviceResponse);
|
amit.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame^] | 342 |
|
| 343 | // Sets the log level of the Device Manager itself
|
| 344 | rpc SetDmLogLevel(SetDmLogLevelRequest) returns(SetDmLogLevelResponse);
|
| 345 |
|
| 346 | // Gets the log level at which the Device Manager is running
|
| 347 | rpc GetDmLogLevel(GetDmLogLevelRequest) returns(GetDmLogLevelResponse);
|
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 348 | }
|