MCPcopy Create free account
hub / github.com/bdring/FluidNC / handle_metrics

Method handle_metrics

examples/http_command/http_command_server.py:309–315  ·  view source on GitHub ↗

Handle /metrics/* endpoints

(self)

Source from the content-addressed store, hash-verified

307 self.end_headers()
308
309 def handle_metrics(self):
310 """Handle /metrics/* endpoints"""
311 response_data = {
312 "status": "metrics_received",
313 "timestamp": datetime.now().isoformat()
314 }
315 self.send_json_response(response_data, 200)
316
317 def handle_root(self):
318 """Respond to / with API documentation"""

Callers 1

do_GETMethod · 0.95

Calls 1

send_json_responseMethod · 0.95

Tested by

no test coverage detected