mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
13 lines
332 B
Python
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()
|