crafty-4/app/classes/web/routes/metrics/servers.py
2023-09-03 16:04:28 +02:00

13 lines
332 B
Python

from prometheus_client import Histogram
from app.classes.web.metrics_handler import BaseMetricsHandler
# Decorate function with metric.
class ApiOpenMetricsServersHandler(BaseMetricsHandler):
def get(self):
auth_data = self.authenticate_user()
if not auth_data:
return
self.get_registry()