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

Method requestMetrics

dpdk/usertools/dpdk-telemetry-client.py:83–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 self.socket.client_fd.close()
82
83 def requestMetrics(self):
84 # Requests metrics for given client
85 self.socket.client_fd.send(METRICS_REQ.encode())
86 data = self.socket.client_fd.recv(BUFFER_SIZE).decode()
87 print("\nResponse: \n", data)
88
89 def repeatedlyRequestMetrics(self, sleep_time):
90 # Recursively requests metrics for given client

Callers 2

interactiveMenuMethod · 0.95

Calls 3

sendMethod · 0.80
recvMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected