mirror of
				https://github.com/Telecominfraproject/wlan-testing.git
				synced 2025-11-03 20:38:05 +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)
 | 
					        self.check_response("GET", resp, self.make_headers(), "", uri)
 | 
				
			||||||
        return resp
 | 
					        return resp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def get_device_statistics(self, serial_number):
 | 
					    def get_device_statistics(self, serial_number, query="?lastOnly=true"):
 | 
				
			||||||
        uri = self.build_uri("device/" + serial_number + "/statistics")
 | 
					        uri = self.build_uri("device/" + serial_number + "/statistics" + query)
 | 
				
			||||||
        logging.info("Sending Command: " + "\n" +
 | 
					        logging.info("Sending Command: " + "\n" +
 | 
				
			||||||
                     "TimeStamp: " + str(datetime.datetime.utcnow()) + "\n" +
 | 
					                     "TimeStamp: " + str(datetime.datetime.utcnow()) + "\n" +
 | 
				
			||||||
                     "URI: " + str(uri) + "\n" +
 | 
					                     "URI: " + str(uri) + "\n" +
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user