[Sharing Analytics] Log event for bandwidth quality change.

PiperOrigin-RevId: 685588100
This commit is contained in:
hai007
2024-10-13 23:31:36 -07:00
committed by Copybara-Service
parent cc205590ab
commit ac638d83a0
2 changed files with 14 additions and 2 deletions
+4 -1
View File
@@ -32,7 +32,7 @@ option objc_class_prefix = "GNSHP";
// in NearbyClearcutLogger (for android, or clearcut_event_logger as the
// equivalence for Windows) for all events (may exclude settings), and
// session_id for a pair of events (start and end of a session).
// Next id: 68
// Next id: 69
enum EventType {
UNKNOWN_EVENT_TYPE = 0;
@@ -297,6 +297,9 @@ enum EventType {
// Show accept button on Quick Share receive UI
WAITING_FOR_ACCEPT = 67;
// High quality event setup
HIGH_QUALITY_MEDIUM_SETUP = 68;
// LINT.ThenChange(//depot/google3/location/nearby/proto/nearby_event_codes.proto:SharingEventCode)
}
@@ -31,7 +31,7 @@ option objc_class_prefix = "GNCP";
// Top-level log proto for all NearbySharing logging.
// Each log contains a key (event_type), value (a verb-noun event) pair.
// Next Tag: 77
// Next Tag: 78
// LINT.IfChange
message SharingLog {
/* collection_basis = {
@@ -210,6 +210,8 @@ message SharingLog {
optional ShowWaitingForAccept show_waiting_for_accept = 76;
optional HighQualityMediumSetup high_quality_medium_setup = 77;
// Used only for Nearby Share Windows app now.
message AppInfo {
// e.g. "1.0.408"
@@ -895,5 +897,12 @@ message SharingLog {
message ShowWaitingForAccept {
optional location.nearby.proto.sharing.ButtonStatus button_status = 1;
}
message HighQualityMediumSetup {
optional ShareTargetInfo share_target_info = 1;
optional int64 session_id = 2 /* type = ST_SESSION_ID */;
optional int64 duration_millis = 4;
optional bool is_timeout = 5;
}
}
// LINT.ThenChange(//depot/google3/logs/proto/location/nearby/nearby_client_log.proto)