OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
473 // formatted as an ASCII string with 12 hex digits. Example: A0B1C2D3E4F5. | 473 // formatted as an ASCII string with 12 hex digits. Example: A0B1C2D3E4F5. |
474 optional string mac_address = 2; | 474 optional string mac_address = 2; |
475 | 475 |
476 // MEID (if applicable) of the corresponding network device. Formatted as | 476 // MEID (if applicable) of the corresponding network device. Formatted as |
477 // ASCII string composed of 14 hex digits. Example: A10000009296F2. | 477 // ASCII string composed of 14 hex digits. Example: A10000009296F2. |
478 optional string meid = 3; | 478 optional string meid = 3; |
479 | 479 |
480 // IMEI (if applicable) of the corresponding network device. 15-16 decimal | 480 // IMEI (if applicable) of the corresponding network device. 15-16 decimal |
481 // digits encoded as ASCII string. Example: 355402040158759. | 481 // digits encoded as ASCII string. Example: 355402040158759. |
482 optional string imei = 4; | 482 optional string imei = 4; |
483 | |
484 // The device path associated with this network interface. | |
485 optional string device_path = 5; | |
486 } | |
487 | |
488 | |
489 // Information about configured/visible networks - this is separate from | |
490 // NetworkInterface because a configured network may not be associated with | |
491 // any specific interface, or may be visible across multiple interfaces. | |
492 message NetworkState { | |
493 // The current state of this network. | |
494 enum ConnectionState { | |
495 IDLE=0; | |
ygorshenin1
2014/12/05 15:55:41
nit: could you please surround '=' characters by s
Andrew T Wilson (Slow)
2014/12/11 00:09:55
Done.
| |
496 CARRIER=1; | |
497 ASSOCIATION=2; | |
498 CONFIGURATION=3; | |
499 READY=4; | |
500 PORTAL=5; | |
501 OFFLINE=6; | |
502 ONLINE=7; | |
503 DISCONNECT = 8; | |
504 FAILURE = 9; | |
505 ACTIVATION_FAILURE=10; | |
506 UNKNOWN=11; | |
507 } | |
508 | |
509 // For networks associated with a device, the path of the device. | |
510 optional string device_path = 1; | |
511 | |
512 // Current state of this connection as reported by shill. | |
513 optional ConnectionState connection_state = 2; | |
514 | |
515 // For wireless networks, the signal_strength in dBm. | |
516 optional int32 signal_strength = 3; | |
483 } | 517 } |
484 | 518 |
485 // Details about a device user. | 519 // Details about a device user. |
486 message DeviceUser { | 520 message DeviceUser { |
487 // Types of device users which can be reported. | 521 // Types of device users which can be reported. |
488 enum UserType { | 522 enum UserType { |
489 // A user managed by the same domain as the device. | 523 // A user managed by the same domain as the device. |
490 USER_TYPE_MANAGED = 0; | 524 USER_TYPE_MANAGED = 0; |
491 | 525 |
492 // A user not managed by the same domain as the device. | 526 // A user not managed by the same domain as the device. |
493 USER_TYPE_UNMANAGED = 1; | 527 USER_TYPE_UNMANAGED = 1; |
494 } | 528 } |
495 | 529 |
496 // The type of the user. | 530 // The type of the user. |
497 required UserType type = 1; | 531 required UserType type = 1; |
498 | 532 |
499 // Email address of the user. Present only if the user type is managed. | 533 // Email address of the user. Present only if the user type is managed. |
500 optional string email = 2; | 534 optional string email = 2; |
501 } | 535 } |
502 | 536 |
537 // Information about a single disk volume. | |
pneubeck (no reviews)
2014/12/09 03:00:10
are the changes down from here required for / used
Andrew T Wilson (Slow)
2014/12/11 00:09:55
Not strictly required, but I'm trying to put all o
| |
538 message VolumeInfo { | |
539 optional string volume_id = 1; | |
540 optional int64 storage_used = 2; | |
541 optional int64 storage_free = 3; | |
542 } | |
543 | |
503 // Report device level status. | 544 // Report device level status. |
504 message DeviceStatusReportRequest { | 545 message DeviceStatusReportRequest { |
505 // The OS version reported by the device is a platform version | 546 // The OS version reported by the device is a platform version |
506 // e.g. 1435.0.2011_12_16_1635. | 547 // e.g. 1435.0.2011_12_16_1635. |
507 optional string os_version = 1; | 548 optional string os_version = 1; |
508 optional string firmware_version = 2; | 549 optional string firmware_version = 2; |
509 | 550 |
510 // "Verified", "Dev". Same as verified mode. | 551 // "Verified", "Dev". Same as verified mode. |
511 // If the mode is unknown, this field should not be set. | 552 // If the mode is unknown, this field should not be set. |
512 optional string boot_mode = 3; | 553 optional string boot_mode = 3; |
(...skipping 10 matching lines...) Expand all Loading... | |
523 repeated ActiveTimePeriod active_period = 6; | 564 repeated ActiveTimePeriod active_period = 6; |
524 | 565 |
525 // The device location. | 566 // The device location. |
526 optional DeviceLocation device_location = 7; | 567 optional DeviceLocation device_location = 7; |
527 | 568 |
528 // List of network interfaces. | 569 // List of network interfaces. |
529 repeated NetworkInterface network_interface = 8; | 570 repeated NetworkInterface network_interface = 8; |
530 | 571 |
531 // List of recent device users, in descending order by last login time. | 572 // List of recent device users, in descending order by last login time. |
532 repeated DeviceUser user = 9; | 573 repeated DeviceUser user = 9; |
574 | |
575 // Disk space + other info about mounted/connected volumes. | |
576 repeated VolumeInfo volume_info = 10; | |
577 | |
578 // List of visible/configured networks | |
579 repeated NetworkState network_state = 11; | |
580 | |
581 // Samples of CPU utilization (0-100), sampled once every 60 seconds. | |
582 repeated int32 cpu_utilization_pct = 12; | |
583 | |
584 // RAM free (as reported on a per-process level, unreliable due to GC). | |
585 optional int64 system_ram_free = 13; | |
586 optional int64 system_ram_used = 14; | |
587 } | |
588 | |
589 // Provides status information for an installed app/extension. | |
590 message AppStatus { | |
591 // ID of the installed app/extension | |
592 required string app_id = 1; | |
593 | |
594 // Currently installed version of the app. | |
595 required string extension_version = 2; | |
596 | |
597 // Self-reported status summary (via chrome.reporting APIs) | |
598 optional string status = 3; | |
599 | |
600 // If true, the application is currently in a self-reported error state. | |
601 optional bool error = 4; | |
533 } | 602 } |
534 | 603 |
535 // Report session (a user on one device) level status. | 604 // Report session (a user on one device) level status. |
536 message SessionStatusReportRequest { | 605 message SessionStatusReportRequest { |
537 // Installed apps for this user on this device. | 606 // Installed apps for this user on this device. |
538 repeated string installed_app_id = 1; | 607 // No longer used -- use installed_apps instead. |
608 repeated string installed_app_id = 1 [deprecated = true]; | |
539 | 609 |
540 // Installed extensions for this user on this device. | 610 // Installed extensions for this user on this device. |
541 repeated string installed_extension_id = 2; | 611 // No longer used -- use installed_extensions instead. |
612 repeated string installed_extension_id = 2 [deprecated = true]; | |
542 | 613 |
543 // One stat per app for top 30 apps. | 614 // One stat per app for top 30 apps. |
544 repeated InstallableLaunch app_launch_stat = 3; | 615 repeated InstallableLaunch app_launch_stat = 3; |
616 | |
617 // If this is a kiosk session, this is the device local account ID. | |
618 optional string device_local_account_id = 4; | |
619 | |
620 // Information about installed apps for this user on this device. | |
621 repeated AppStatus installed_apps = 5; | |
622 | |
623 // Information about installed extensions for this user on this device. | |
624 repeated AppStatus installed_extensions = 6; | |
545 } | 625 } |
546 | 626 |
547 // Response from DMServer to update devices' status. | 627 // Response from DMServer to update devices' status. |
548 // It is possible that status report fails but policy request succeed. In such | 628 // It is possible that status report fails but policy request succeed. In such |
549 // case, the DeviceStatusReportResponse will contain an error code and the | 629 // case, the DeviceStatusReportResponse will contain an error code and the |
550 // device should re-send status report data in the next policy request. The | 630 // device should re-send status report data in the next policy request. The |
551 // device should re-send report data if policy request fails, even if | 631 // device should re-send report data if policy request fails, even if |
552 // DeviceStatusReportResponse contains no error code. | 632 // DeviceStatusReportResponse contains no error code. |
553 message DeviceStatusReportResponse { | 633 message DeviceStatusReportResponse { |
554 optional int32 error_code = 1; | 634 optional int32 error_code = 1; |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
875 | 955 |
876 // Device-state retrieval. | 956 // Device-state retrieval. |
877 optional DeviceStateRetrievalResponse device_state_retrieval_response = 11; | 957 optional DeviceStateRetrievalResponse device_state_retrieval_response = 11; |
878 | 958 |
879 // Response to device pairing request. | 959 // Response to device pairing request. |
880 optional DevicePairingResponse device_pairing_response = 12; | 960 optional DevicePairingResponse device_pairing_response = 12; |
881 | 961 |
882 // Response to check device pairing request. | 962 // Response to check device pairing request. |
883 optional CheckDevicePairingResponse check_device_pairing_response = 13; | 963 optional CheckDevicePairingResponse check_device_pairing_response = 13; |
884 } | 964 } |
OLD | NEW |