OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
8 | 8 |
9 package enterprise_management; | 9 package enterprise_management; |
10 | 10 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 optional TimePeriod duration = 2; | 257 optional TimePeriod duration = 2; |
258 | 258 |
259 // Client will send at most 50 timestamps to DM. All the rest | 259 // Client will send at most 50 timestamps to DM. All the rest |
260 // launch activities will be summed into the total count. | 260 // launch activities will be summed into the total count. |
261 // We will distribute the count evenly among the time span when | 261 // We will distribute the count evenly among the time span when |
262 // doing time based aggregation. | 262 // doing time based aggregation. |
263 repeated int64 timestamp = 3; | 263 repeated int64 timestamp = 3; |
264 optional int64 total_count = 4; | 264 optional int64 total_count = 4; |
265 } | 265 } |
266 | 266 |
| 267 // Used to report the device location. |
| 268 message DeviceLocation { |
| 269 enum ErrorCode { |
| 270 ERROR_CODE_NONE = 0; |
| 271 ERROR_CODE_POSITION_UNAVAILABLE = 1; |
| 272 } |
| 273 |
| 274 // Latitude in decimal degrees north (WGS84 coordinate frame). |
| 275 optional double latitude = 1; |
| 276 |
| 277 // Longitude in decimal degrees west (WGS84 coordinate frame). |
| 278 optional double longitude = 2; |
| 279 |
| 280 // Altitude in meters (above WGS84 datum). |
| 281 optional double altitude = 3; |
| 282 |
| 283 // Accuracy of horizontal position in meters. |
| 284 optional double accuracy = 4; |
| 285 |
| 286 // Accuracy of altitude in meters. |
| 287 optional double altitude_accuracy = 5; |
| 288 |
| 289 // Heading in decimal degrees clockwise from true north. |
| 290 optional double heading = 6; |
| 291 |
| 292 // Horizontal component of device velocity in meters per second. |
| 293 optional double speed = 7; |
| 294 |
| 295 // Time of position measurement in milisecons since Epoch in UTC time. |
| 296 optional int64 timestamp = 8; |
| 297 |
| 298 // Error code, see enum above. |
| 299 optional ErrorCode error_code = 9; |
| 300 |
| 301 // Human-readable error message. |
| 302 optional string error_message = 10; |
| 303 } |
| 304 |
267 // Report device level status. | 305 // Report device level status. |
268 message DeviceStatusReportRequest { | 306 message DeviceStatusReportRequest { |
269 optional string os_version = 1; | 307 optional string os_version = 1; |
270 optional string firmware_version = 2; | 308 optional string firmware_version = 2; |
271 | 309 |
272 // "Validated", "Dev". Same as verified mode. | 310 // "Validated", "Dev". Same as verified mode. |
273 // If the mode is unknown, this field should not be set. | 311 // If the mode is unknown, this field should not be set. |
274 optional string boot_mode = 3; | 312 optional string boot_mode = 3; |
275 | 313 |
276 // No longer used -- use active_period instead. | 314 // No longer used -- use active_period instead. |
277 repeated TimePeriod active_time = 4 [deprecated=true]; | 315 repeated TimePeriod active_time = 4 [deprecated=true]; |
278 | 316 |
279 // The browser version string as shown in the About dialog. | 317 // The browser version string as shown in the About dialog. |
280 optional string browser_version = 5; | 318 optional string browser_version = 5; |
281 | 319 |
282 // A list of periods when the device was active, aggregated by day. | 320 // A list of periods when the device was active, aggregated by day. |
283 repeated ActiveTimePeriod active_period = 6; | 321 repeated ActiveTimePeriod active_period = 6; |
| 322 |
| 323 // The device location. |
| 324 optional DeviceLocation device_location = 7; |
284 } | 325 } |
285 | 326 |
286 // Report session (a user on one device) level status. | 327 // Report session (a user on one device) level status. |
287 message SessionStatusReportRequest { | 328 message SessionStatusReportRequest { |
288 // Installed apps for this user on this device. | 329 // Installed apps for this user on this device. |
289 repeated string installed_app_id = 1; | 330 repeated string installed_app_id = 1; |
290 | 331 |
291 // Installed extensions for this user on this device. | 332 // Installed extensions for this user on this device. |
292 repeated string installed_extension_id = 2; | 333 repeated string installed_extension_id = 2; |
293 | 334 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 | 485 |
445 // Device status report response. | 486 // Device status report response. |
446 optional DeviceStatusReportResponse device_status_report_response = 6; | 487 optional DeviceStatusReportResponse device_status_report_response = 6; |
447 | 488 |
448 // Session status report response. | 489 // Session status report response. |
449 optional SessionStatusReportResponse session_status_report_response = 7; | 490 optional SessionStatusReportResponse session_status_report_response = 7; |
450 | 491 |
451 // Auto-enrollment detection response. | 492 // Auto-enrollment detection response. |
452 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8; | 493 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8; |
453 } | 494 } |
OLD | NEW |