MCPcopy Create free account
hub / github.com/F-Stack/f-stack / repeatedlyRequestMetrics

Method repeatedlyRequestMetrics

dpdk/usertools/dpdk-telemetry-client.py:89–98  ·  view source on GitHub ↗
(self, sleep_time)

Source from the content-addressed store, hash-verified

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

Callers 1

interactiveMenuMethod · 0.95

Calls 5

requestMetricsMethod · 0.95
rangeClass · 0.85
sleepMethod · 0.80
printFunction · 0.50
inputClass · 0.50

Tested by

no test coverage detected