mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-07 08:26:11 +00:00
11 lines
332 B
Python
11 lines
332 B
Python
import metrics as app_metrics
|
|
|
|
def get_metrics():
|
|
"""Router handler — same name as metrics.get_metrics().
|
|
The call below must resolve to metrics.py:get_metrics, not self."""
|
|
data = app_metrics.get_metrics()
|
|
return data
|
|
|
|
def health():
|
|
"""Different name — no collision."""
|
|
app_metrics.emit("health_check")
|