(self, sleep_time)
| 87 | print("\nResponse: \n", data) |
| 88 | |
| 89 | def repeatedlyRequestMetrics(self, sleep_time): |
| 90 | # Recursively requests metrics for given client |
| 91 | print("\nPlease enter the number of times you'd like to continuously request Metrics:") |
| 92 | n_requests = int(input("\n:")) |
| 93 | # Removes the user input from screen, cleans it up |
| 94 | print("\033[F") |
| 95 | print("\033[K") |
| 96 | for i in range(n_requests): |
| 97 | self.requestMetrics() |
| 98 | time.sleep(sleep_time) |
| 99 | |
| 100 | def requestGlobalMetrics(self): |
| 101 | # Requests global metrics for given client |
no test coverage detected