[Analytics] Log event for disconnecting by the disallowed medium

PiperOrigin-RevId: 734037398
This commit is contained in:
hai007
2025-03-06 01:23:33 -08:00
committed by Copybara-Service
parent 7e758061ac
commit d1850d4db0
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -435,6 +435,8 @@ enum AttachmentTransmissionStatus {
// or user turn on airplane mode.
LOST_CONNECTIVITY_TRANSMISSION_STATUS = 29
/*[ status_bucket = STATUS_INTERRUPTION ]*/;
// Connection failed due to the medium is not allowed.
FAILED_DISALLOWED_MEDIUM = 30;
}
// Generic result status of NearbyConnections API calls.
@@ -569,6 +569,10 @@ message SharingLog {
// Exact transfer count stored on device, but when logging put the transfer
// count in buckets, initially we use buckets: 1, 2, 3, …, 10, 11+
optional int32 lifetime_transfer_count = 13;
// The medium used for the connection.
optional int32 connection_medium = 14;
// The data usage of the user settings.
optional location.nearby.proto.sharing.DataUsage data_usage = 15;
}
// EventType: RECEIVE_ATTACHMENTS_START
@@ -600,6 +604,10 @@ message SharingLog {
// Exact transfer count stored on device, but when logging put the transfer
// count in buckets, initially we use buckets: 1, 2, 3, …, 10, 11+
optional int32 lifetime_transfer_count = 8;
// The medium used for the connection.
optional int32 connection_medium = 14;
// The data usage of the user settings.
optional location.nearby.proto.sharing.DataUsage data_usage = 15;
}
// EventType: CANCEL_CONNECTION