diff options
Diffstat (limited to 'sync/protocol/client_debug_info.proto')
-rw-r--r-- | sync/protocol/client_debug_info.proto | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sync/protocol/client_debug_info.proto b/sync/protocol/client_debug_info.proto index 7e4e1a5..ab7de4f 100644 --- a/sync/protocol/client_debug_info.proto +++ b/sync/protocol/client_debug_info.proto @@ -13,6 +13,24 @@ package sync_pb; import "get_updates_caller_info.proto"; +// Per-type hint information. +message TypeHint { + // The data type this hint applied to. + optional int32 data_type_id = 1; + + // Whether or not a valid hint is provided. + optional bool has_valid_hint = 2; +} + +// Information about the source that triggered a sync. +message SourceInfo { + // An enum indicating the reason for the nudge. + optional GetUpdatesCallerInfo.GetUpdatesSource source = 1; + + // The per-type hint information associated with the nudge. + repeated TypeHint type_hint = 2; +} + // The additional info here is from the StatusController. They get sent when // the event SYNC_CYCLE_COMPLETED is sent. message SyncCycleCompletedEventInfo { @@ -38,6 +56,12 @@ message SyncCycleCompletedEventInfo { optional int32 num_updates_downloaded = 8; optional int32 num_reflected_updates_downloaded = 9; optional GetUpdatesCallerInfo caller_info = 10; + + // A list of all the sources that were merged into this session. + // + // Some scenarios, notably mode switches and canary jobs, can spuriously add + // back-to-back duplicate sources to this list. + repeated SourceInfo source_info = 11; } // Datatype specifics statistics gathered at association time. |