Add Metrics for wifi-direct/direct-hotspot group crate failed

PiperOrigin-RevId: 481994099
This commit is contained in:
hai007
2022-10-18 12:43:26 -07:00
committed by Copybara-Service
parent 1b140a4bd9
commit cab9e31d0d
2 changed files with 13 additions and 1 deletions
@@ -340,7 +340,7 @@ message ConnectionsLog {
optional string connection_token = 8;
}
// Next Id: 19
// Next Id: 20
message ErrorCode {
// The direction (incoming vs outgoing) of this error.
optional location.nearby.proto.connections.ConnectionAttemptDirection
@@ -375,6 +375,7 @@ message ConnectionsLog {
location.nearby.errorcode.proto.SendPayloadError send_payload_error = 17;
location.nearby.errorcode.proto.ReceivePayloadError
receive_payload_error = 18;
location.nearby.errorcode.proto.UpgradeError upgrade_error = 19;
}
// The token use to identify this established connection.
+11
View File
@@ -69,6 +69,7 @@ enum Event {
SEND_PAYLOAD = 11;
CANCEL_PAYLOAD = 12;
RECEIVE_PAYLOAD = 13;
UPGRADE = 14;
}
// The error to identify the common failure for all mediums. The range between 0
@@ -349,6 +350,16 @@ enum ReceivePayloadError {
// Next ID :33
}
// The error for event UPGRADE. The range between 31 and 99.
enum UpgradeError {
// The default value for clearcut
UNKNOWN_UPGRADE_ERROR = 31;
// System error, failed to create a wifi p2p group.
CREATE_P2P_GROUP_FAILED = 32;
// Next ID :33
}
enum Description {
reserved 28, 29;