Add NetworkDnsServerSupportReported in stats.proto
Bug: 241788170
Test: Build pass
Change-Id: Ic93ac663fc8b21defb49495599a186daab35af39
diff --git a/stats.proto b/stats.proto
index a1140bf..c45ef40 100644
--- a/stats.proto
+++ b/stats.proto
@@ -474,3 +474,31 @@
// The sampling-rate of this event is 1/sampling_rate_denom.
optional int32 sampling_rate_denom = 15;
}
+
+/**
+ * logs the number of DNS servers supported by the protocol
+ */
+message NetworkDnsServerSupportReported {
+ // The network type of the network
+ optional NetworkType network_type = 1;
+
+ // The private DNS mode of the network
+ optional PrivateDnsModes private_dns_modes = 2;
+
+ // Stores the state of all DNS servers for this network
+ optional Servers servers = 3;
+}
+
+message Servers {
+ repeated Server server = 1;
+}
+
+message Server {
+ optional Protocol protocol = 1;
+
+ // The order of the dns server in the network
+ optional int32 index = 2;
+
+ // The validation status of the DNS server in the network
+ required bool validated = 3;
+}