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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // The policy fetch response. | 222 // The policy fetch response. |
223 repeated PolicyFetchResponse response = 3; | 223 repeated PolicyFetchResponse response = 3; |
224 } | 224 } |
225 | 225 |
226 message TimePeriod { | 226 message TimePeriod { |
227 // [timestamp] is milli seconds since Epoch in UTC timezone. | 227 // [timestamp] is milli seconds since Epoch in UTC timezone. |
228 optional int64 start_timestamp = 1; | 228 optional int64 start_timestamp = 1; |
229 optional int64 end_timestamp = 2; | 229 optional int64 end_timestamp = 2; |
230 } | 230 } |
231 | 231 |
| 232 message ActiveTimePeriod { |
| 233 optional TimePeriod time_period = 1; |
| 234 optional int32 active_duration = 2; |
| 235 } |
| 236 |
232 // This captures launch events for one app/extension or other installments. | 237 // This captures launch events for one app/extension or other installments. |
233 message InstallableLaunch { | 238 message InstallableLaunch { |
234 optional string install_id = 1; | 239 optional string install_id = 1; |
235 | 240 |
236 // Time duration where this report covers. These are required | 241 // Time duration where this report covers. These are required |
237 // and the record will be ignored if not set. | 242 // and the record will be ignored if not set. |
238 optional TimePeriod duration = 2; | 243 optional TimePeriod duration = 2; |
239 | 244 |
240 // Client will send at most 50 timestamps to DM. All the rest | 245 // Client will send at most 50 timestamps to DM. All the rest |
241 // launch activities will be summed into the total count. | 246 // launch activities will be summed into the total count. |
242 // We will distribute the count evenly among the time span when | 247 // We will distribute the count evenly among the time span when |
243 // doing time based aggregation. | 248 // doing time based aggregation. |
244 repeated int64 timestamp = 3; | 249 repeated int64 timestamp = 3; |
245 optional int64 total_count = 4; | 250 optional int64 total_count = 4; |
246 } | 251 } |
247 | 252 |
248 // Report device level status. | 253 // Report device level status. |
249 message DeviceStatusReportRequest { | 254 message DeviceStatusReportRequest { |
250 optional string os_version = 1; | 255 optional string os_version = 1; |
251 optional string firmware_version = 2; | 256 optional string firmware_version = 2; |
252 | 257 |
253 // "Validated", "Dev". Same as verified mode. | 258 // "Validated", "Dev". Same as verified mode. |
254 // If the mode is unknown, this field should not be set. | 259 // If the mode is unknown, this field should not be set. |
255 optional string boot_mode = 3; | 260 optional string boot_mode = 3; |
256 | 261 |
257 // Device active times collection since last report rpc call. | 262 // No longer used -- use active_period instead. |
258 repeated TimePeriod active_time = 4; | 263 repeated TimePeriod active_time = 4 [deprecated=true]; |
259 | 264 |
260 // The browser version string as shown in the About dialog. | 265 // The browser version string as shown in the About dialog. |
261 optional string browser_version = 5; | 266 optional string browser_version = 5; |
| 267 |
| 268 // A list of periods when the device was active, aggregated by day. |
| 269 repeated ActiveTimePeriod active_period = 6; |
262 } | 270 } |
263 | 271 |
264 // Report session (a user on one device) level status. | 272 // Report session (a user on one device) level status. |
265 message SessionStatusReportRequest { | 273 message SessionStatusReportRequest { |
266 // Installed apps for this user on this device. | 274 // Installed apps for this user on this device. |
267 repeated string installed_app_id = 1; | 275 repeated string installed_app_id = 1; |
268 | 276 |
269 // Installed extensions for this user on this device. | 277 // Installed extensions for this user on this device. |
270 repeated string installed_extension_id = 2; | 278 repeated string installed_extension_id = 2; |
271 | 279 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 | 430 |
423 // Device status report response. | 431 // Device status report response. |
424 optional DeviceStatusReportResponse device_status_report_response = 6; | 432 optional DeviceStatusReportResponse device_status_report_response = 6; |
425 | 433 |
426 // Session status report response. | 434 // Session status report response. |
427 optional SessionStatusReportResponse session_status_report_response = 7; | 435 optional SessionStatusReportResponse session_status_report_response = 7; |
428 | 436 |
429 // Auto-enrollment detection response. | 437 // Auto-enrollment detection response. |
430 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8; | 438 optional DeviceAutoEnrollmentResponse auto_enrollment_response = 8; |
431 } | 439 } |
OLD | NEW |