@@ -16,7 +16,7 @@ def __init__(self, is_connected: bool, is_linked: bool, connection_uptime: int,
1616 max_bitrate_upstream_str : str , max_byterate_downstream : float , max_byterate_upstream : float ,
1717 transmission_rate_downstream : int , transmission_rate_upstream : int ,
1818 transmission_rate_downstream_str : str , transmission_rate_upstream_str : str ,
19- current_downstream_rate : int , current_upstream_rate : int ):
19+ current_downstream_rate : int , current_upstream_rate : int , dns_server : str ):
2020 self .is_connected : bool = is_connected
2121 self .is_linked : bool = is_linked
2222 self .connection_uptime : int = connection_uptime
@@ -41,6 +41,7 @@ def __init__(self, is_connected: bool, is_linked: bool, connection_uptime: int,
4141 self .transmission_rate_upstream_str : str = transmission_rate_upstream_str
4242 self .current_downstream_rate : int = current_downstream_rate
4343 self .current_upstream_rate : int = current_upstream_rate
44+ self .dns_server : str = dns_server
4445
4546 def influx_data (self ) -> str :
4647 influx_result = list ()
@@ -61,5 +62,6 @@ def influx_data(self) -> str:
6162 InfluxPrint .append (influx_result , "TransmissionRateUpstream" , self .transmission_rate_upstream )
6263 InfluxPrint .append (influx_result , "ByteReceiveRate" , self .current_downstream_rate )
6364 InfluxPrint .append (influx_result , "ByteSendRate" , self .current_upstream_rate )
65+ InfluxPrint .append (influx_result , "DNSServers" , self .dns_server )
6466
6567 return "," .join (influx_result )
0 commit comments