Chromium Code Reviews| 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 |
| 11 // Data along with a cryptographic signature verifying their authenticity. | 11 // Data along with a cryptographic signature verifying their authenticity. |
| 12 message SignedData { | 12 message SignedData { |
| 13 // The data to be signed. | 13 // The data to be signed. |
| 14 optional bytes data = 1; | 14 optional bytes data = 1; |
| 15 // The signature of the data field. | 15 // The signature of the data field. |
| 16 optional bytes signature = 2; | 16 optional bytes signature = 2; |
| 17 // How many bytes were added to the end of original data before signature | 17 // How many bytes were added to the end of original data before signature |
| 18 // (e.g. a nonce to avoid proxy attacks of the signing service). | 18 // (e.g. a nonce to avoid proxy attacks of the signing service). |
| 19 optional int32 extra_data_bytes = 3; | 19 optional int32 extra_data_bytes = 3; |
| 20 } | 20 } |
| 21 | 21 |
| 22 // Request from device to server to register a device, user or browser. | 22 // Request from device to server to register a device, user or browser. |
| 23 message DeviceRegisterRequest { | 23 message DeviceRegisterRequest { |
| 24 reserved 5; | |
| 25 | |
| 24 // Reregister device without erasing server state. It can be used | 26 // Reregister device without erasing server state. It can be used |
| 25 // to refresh dmtoken etc. Client MUST set this value to true if it | 27 // to refresh dmtoken etc. Client MUST set this value to true if it |
| 26 // reuses an existing device id. | 28 // reuses an existing device id. |
| 27 optional bool reregister = 1; | 29 optional bool reregister = 1; |
| 28 | 30 |
| 29 // Register type. This field does not exist for TT release. | 31 // Register type. This field does not exist for TT release. |
| 30 // When a client requests for policies, server should verify the | 32 // When a client requests for policies, server should verify the |
| 31 // client has been registered properly. For example, a client must | 33 // client has been registered properly. For example, a client must |
| 32 // register with type DEVICE in order to retrieve device policies. | 34 // register with type DEVICE in order to retrieve device policies. |
| 33 enum Type { | 35 enum Type { |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 45 | 47 |
| 46 // Machine hardware id, such as serial number. | 48 // Machine hardware id, such as serial number. |
| 47 // This field is required if register type == DEVICE. | 49 // This field is required if register type == DEVICE. |
| 48 optional string machine_id = 3; | 50 optional string machine_id = 3; |
| 49 | 51 |
| 50 // Machine model name, such as "ZGA", "Cr-48", "Nexus One". If the | 52 // Machine model name, such as "ZGA", "Cr-48", "Nexus One". If the |
| 51 // model name is not available, client SHOULD send generic name like | 53 // model name is not available, client SHOULD send generic name like |
| 52 // "Android", or "Chrome OS". | 54 // "Android", or "Chrome OS". |
| 53 optional string machine_model = 4; | 55 optional string machine_model = 4; |
| 54 | 56 |
| 55 // OBSOLETE: Legacy auto-enrollment is not longer supported. | |
| 56 optional bool OBSOLETE_auto_enrolled = 5 [deprecated = true]; | |
| 57 | |
| 58 // Indicates a requisition of the registering entity that the server can act | 57 // Indicates a requisition of the registering entity that the server can act |
| 59 // upon. This allows clients to pass hints e.g. at device enrollment time | 58 // upon. This allows clients to pass hints e.g. at device enrollment time |
| 60 // about the intended use of the device. | 59 // about the intended use of the device. |
| 61 optional string requisition = 6; | 60 optional string requisition = 6; |
| 62 | 61 |
| 63 // The current server-backed state key for the client, if applicable. This can | 62 // The current server-backed state key for the client, if applicable. This can |
| 64 // be used by the server to link the registration request to an existing | 63 // be used by the server to link the registration request to an existing |
| 65 // device record for re-enrollment. | 64 // device record for re-enrollment. |
| 66 optional bytes server_backed_state_key = 7; | 65 optional bytes server_backed_state_key = 7; |
| 67 | 66 |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 543 } | 542 } |
| 544 | 543 |
| 545 message ActiveTimePeriod { | 544 message ActiveTimePeriod { |
| 546 optional TimePeriod time_period = 1; | 545 optional TimePeriod time_period = 1; |
| 547 | 546 |
| 548 // The active duration during the above time period. | 547 // The active duration during the above time period. |
| 549 // The unit is milli-second. | 548 // The unit is milli-second. |
| 550 optional int32 active_duration = 2; | 549 optional int32 active_duration = 2; |
| 551 } | 550 } |
| 552 | 551 |
| 553 // This captures launch events for one app/extension or other installments. | |
| 554 message InstallableLaunch { | |
| 555 optional string install_id = 1; | |
| 556 | |
| 557 // Time duration where this report covers. These are required | |
| 558 // and the record will be ignored if not set. | |
| 559 optional TimePeriod duration = 2; | |
| 560 | |
| 561 // Client will send at most 50 timestamps to DM. All the rest | |
| 562 // launch activities will be summed into the total count. | |
| 563 // We will distribute the count evenly among the time span when | |
| 564 // doing time based aggregation. | |
| 565 repeated int64 timestamp = 3; | |
| 566 optional int64 total_count = 4; | |
| 567 } | |
| 568 | |
| 569 // OBSOLETE: Used to report the device location. | |
| 570 message OBSOLETE_DeviceLocation { | |
| 571 enum ErrorCode { | |
| 572 ERROR_CODE_NONE = 0; | |
| 573 ERROR_CODE_POSITION_UNAVAILABLE = 1; | |
| 574 } | |
| 575 | |
| 576 // Latitude in decimal degrees north (WGS84 coordinate frame). | |
| 577 optional double latitude = 1; | |
| 578 | |
| 579 // Longitude in decimal degrees west (WGS84 coordinate frame). | |
| 580 optional double longitude = 2; | |
| 581 | |
| 582 // Altitude in meters (above WGS84 datum). | |
| 583 optional double altitude = 3; | |
| 584 | |
| 585 // Accuracy of horizontal position in meters. | |
| 586 optional double accuracy = 4; | |
| 587 | |
| 588 // Accuracy of altitude in meters. | |
| 589 optional double altitude_accuracy = 5; | |
| 590 | |
| 591 // Heading in decimal degrees clockwise from true north. | |
| 592 optional double heading = 6; | |
| 593 | |
| 594 // Horizontal component of device velocity in meters per second. | |
| 595 optional double speed = 7; | |
| 596 | |
| 597 // Time of position measurement in milisecons since Epoch in UTC time. | |
| 598 optional int64 timestamp = 8; | |
| 599 | |
| 600 // Error code, see enum above. | |
| 601 optional ErrorCode error_code = 9; | |
| 602 | |
| 603 // Human-readable error message. | |
| 604 optional string error_message = 10; | |
| 605 } | |
| 606 | |
| 607 // Details about a network interface. | 552 // Details about a network interface. |
| 608 message NetworkInterface { | 553 message NetworkInterface { |
| 609 // Indicates the type of network device. | 554 // Indicates the type of network device. |
| 610 enum NetworkDeviceType { | 555 enum NetworkDeviceType { |
| 611 TYPE_ETHERNET = 0; | 556 TYPE_ETHERNET = 0; |
| 612 TYPE_WIFI = 1; | 557 TYPE_WIFI = 1; |
| 613 TYPE_WIMAX = 2; | 558 TYPE_WIMAX = 2; |
| 614 TYPE_BLUETOOTH = 3; | 559 TYPE_BLUETOOTH = 3; |
| 615 TYPE_CELLULAR = 4; | 560 TYPE_CELLULAR = 4; |
| 616 } | 561 } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 700 // Information about a single CPU temperature channel. | 645 // Information about a single CPU temperature channel. |
| 701 message CPUTempInfo { | 646 message CPUTempInfo { |
| 702 // Temperature channel label. | 647 // Temperature channel label. |
| 703 optional string cpu_label = 1; | 648 optional string cpu_label = 1; |
| 704 // CPU temperature in Celsius. | 649 // CPU temperature in Celsius. |
| 705 optional int32 cpu_temp = 2; | 650 optional int32 cpu_temp = 2; |
| 706 } | 651 } |
| 707 | 652 |
| 708 // Report device level status. | 653 // Report device level status. |
| 709 message DeviceStatusReportRequest { | 654 message DeviceStatusReportRequest { |
| 655 reserved 4, 7, 13; | |
| 656 | |
| 710 // The OS version reported by the device is a platform version | 657 // The OS version reported by the device is a platform version |
| 711 // e.g. 1435.0.2011_12_16_1635. | 658 // e.g. 1435.0.2011_12_16_1635. |
| 712 optional string os_version = 1; | 659 optional string os_version = 1; |
| 713 optional string firmware_version = 2; | 660 optional string firmware_version = 2; |
| 714 | 661 |
| 715 // "Verified", "Dev". Same as verified mode. | 662 // "Verified", "Dev". Same as verified mode. |
| 716 // If the mode is unknown, this field should not be set. | 663 // If the mode is unknown, this field should not be set. |
| 717 optional string boot_mode = 3; | 664 optional string boot_mode = 3; |
| 718 | 665 |
| 719 // OBSOLETE: Device active times collection since last report rpc call. | |
| 720 // No longer used -- use active_period instead. | |
| 721 repeated TimePeriod OBSOLETE_active_time = 4 [deprecated = true]; | |
| 722 | |
| 723 // The browser version string as shown in the About dialog. | 666 // The browser version string as shown in the About dialog. |
| 724 // e.g. 17.0.963.18. | 667 // e.g. 17.0.963.18. |
| 725 optional string browser_version = 5; | 668 optional string browser_version = 5; |
| 726 | 669 |
| 727 // A list of periods when the device was active, aggregated by day. | 670 // A list of periods when the device was active, aggregated by day. |
| 728 repeated ActiveTimePeriod active_period = 6; | 671 repeated ActiveTimePeriod active_period = 6; |
| 729 | 672 |
| 730 // OBSOLETE: The device location. | |
| 731 optional OBSOLETE_DeviceLocation OBSOLETE_device_location = 7 | |
| 732 [deprecated = true]; | |
| 733 | |
| 734 // List of network interfaces. | 673 // List of network interfaces. |
| 735 repeated NetworkInterface network_interface = 8; | 674 repeated NetworkInterface network_interface = 8; |
| 736 | 675 |
| 737 // List of recent device users, in descending order by last login time. | 676 // List of recent device users, in descending order by last login time. |
| 738 repeated DeviceUser user = 9; | 677 repeated DeviceUser user = 9; |
| 739 | 678 |
| 740 // Disk space + other info about mounted/connected volumes. | 679 // Disk space + other info about mounted/connected volumes. |
| 741 repeated VolumeInfo volume_info = 10; | 680 repeated VolumeInfo volume_info = 10; |
| 742 | 681 |
| 743 // List of visible/configured networks | 682 // List of visible/configured networks |
| 744 repeated NetworkState network_state = 11; | 683 repeated NetworkState network_state = 11; |
| 745 | 684 |
| 746 // Samples of CPU utilization (0-100), sampled once every 120 seconds. | 685 // Samples of CPU utilization (0-100), sampled once every 120 seconds. |
| 747 repeated int32 cpu_utilization_pct = 12; | 686 repeated int32 cpu_utilization_pct = 12; |
| 748 | 687 |
| 749 // OBSOLETE: Free RAM (unreliable due to GC). | |
| 750 optional int64 OBSOLETE_system_ram_free = 13 [deprecated = true]; | |
| 751 | |
| 752 // Total RAM on the device. | 688 // Total RAM on the device. |
| 753 optional int64 system_ram_total = 14; | 689 optional int64 system_ram_total = 14; |
| 754 | 690 |
| 755 // Samples of free RAM [in bytes] (unreliable due to GC). | 691 // Samples of free RAM [in bytes] (unreliable due to GC). |
| 756 repeated int64 system_ram_free = 15; | 692 repeated int64 system_ram_free = 15; |
| 757 | 693 |
| 758 // Samples of CPU temperatures in Celsius, plus associated labels | 694 // Samples of CPU temperatures in Celsius, plus associated labels |
| 759 // identifying which CPU produced the temperature measurement. | 695 // identifying which CPU produced the temperature measurement. |
| 760 repeated CPUTempInfo cpu_temp_info = 16; | 696 repeated CPUTempInfo cpu_temp_info = 16; |
| 761 | 697 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 813 | 749 |
| 814 message AndroidStatus { | 750 message AndroidStatus { |
| 815 // JSON string of ARC status report. | 751 // JSON string of ARC status report. |
| 816 optional string status_payload = 1; | 752 optional string status_payload = 1; |
| 817 // DroidGuard response obtained from DroidGuard server. | 753 // DroidGuard response obtained from DroidGuard server. |
| 818 optional string droid_guard_info = 2; | 754 optional string droid_guard_info = 2; |
| 819 } | 755 } |
| 820 | 756 |
| 821 // Report current active session (a user on one device) level status. | 757 // Report current active session (a user on one device) level status. |
| 822 message SessionStatusReportRequest { | 758 message SessionStatusReportRequest { |
| 823 // OBSOLETE: Installed apps for this user on this device. | 759 reserved 1, 2, 3, 6; |
| 824 // No longer used -- use installed_apps instead. | |
| 825 repeated string OBSOLETE_installed_app_id = 1 [deprecated = true]; | |
| 826 | |
| 827 // OBSOLETE: Installed extensions for this user on this device. | |
| 828 // No longer used -- use installed_extensions instead. | |
| 829 repeated string OBSOLETE_installed_extension_id = 2 [deprecated = true]; | |
| 830 | |
| 831 // One stat per app for top 30 apps. | |
| 832 repeated InstallableLaunch app_launch_stat = 3; | |
|
emaxx
2017/04/20 16:59:02
Just a note: I think we should be careful with rem
Thiemo Nagel
2017/04/21 09:48:27
Thanks, I guess it's fair game to take a look whet
| |
| 833 | 760 |
| 834 // If this is a kiosk session, this is the device local account ID. | 761 // If this is a kiosk session, this is the device local account ID. |
| 835 optional string device_local_account_id = 4; | 762 optional string device_local_account_id = 4; |
| 836 | 763 |
| 837 // Information about installed apps for this user on this device. | 764 // Information about installed apps for this user on this device. |
| 838 repeated AppStatus installed_apps = 5; | 765 repeated AppStatus installed_apps = 5; |
| 839 | 766 |
| 840 // Information about installed extensions for this user on this device. | |
| 841 repeated AppStatus installed_extensions = 6; | |
| 842 | |
| 843 // Information about ARC status. | 767 // Information about ARC status. |
| 844 optional AndroidStatus android_status = 7; | 768 optional AndroidStatus android_status = 7; |
| 845 | 769 |
| 846 // If this is a regular user session, this is the user's DMToken. | 770 // If this is a regular user session, this is the user's DMToken. |
| 847 optional string user_dm_token = 8; | 771 optional string user_dm_token = 8; |
| 848 } | 772 } |
| 849 | 773 |
| 850 // Response from DMServer to update devices' status. | 774 // Response from DMServer to update devices' status. |
| 851 // It is possible that status report fails but policy request succeed. In such | 775 // It is possible that status report fails but policy request succeed. In such |
| 852 // case, the DeviceStatusReportResponse will contain an error code and the | 776 // case, the DeviceStatusReportResponse will contain an error code and the |
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1483 check_android_management_response = 18; | 1407 check_android_management_response = 18; |
| 1484 | 1408 |
| 1485 // Response to an Active Directory Play user enrollment request. | 1409 // Response to an Active Directory Play user enrollment request. |
| 1486 optional ActiveDirectoryEnrollPlayUserResponse | 1410 optional ActiveDirectoryEnrollPlayUserResponse |
| 1487 active_directory_enroll_play_user_response = 19; | 1411 active_directory_enroll_play_user_response = 19; |
| 1488 | 1412 |
| 1489 // Response to a Play activity request. | 1413 // Response to a Play activity request. |
| 1490 optional ActiveDirectoryPlayActivityResponse | 1414 optional ActiveDirectoryPlayActivityResponse |
| 1491 active_directory_play_activity_response = 20; | 1415 active_directory_play_activity_response = 20; |
| 1492 } | 1416 } |
| OLD | NEW |