mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-03 04:18:15 +00:00
Added lastOnly query in statistics API (#1045)
Signed-off-by: jitendra-kushavah <jitendra.kushavah@candelatech.com>
This commit is contained in:
committed by
GitHub
parent
cffd914f41
commit
1a25ec3931
@@ -695,8 +695,8 @@ class Controller(ConfigureController):
|
||||
self.check_response("GET", resp, self.make_headers(), "", uri)
|
||||
return resp
|
||||
|
||||
def get_device_statistics(self, serial_number):
|
||||
uri = self.build_uri("device/" + serial_number + "/statistics")
|
||||
def get_device_statistics(self, serial_number, query="?lastOnly=true"):
|
||||
uri = self.build_uri("device/" + serial_number + "/statistics" + query)
|
||||
logging.info("Sending Command: " + "\n" +
|
||||
"TimeStamp: " + str(datetime.datetime.utcnow()) + "\n" +
|
||||
"URI: " + str(uri) + "\n" +
|
||||
|
||||
Reference in New Issue
Block a user