Untitled
wyc1230
plain_text
10 months ago
412 B
11
Indexable
Common_model/model.py
def algorithm_latency_add(self, latency: int):
ModelMetrics.algorithm_latency.labels(
algorithm=self.main_algorithm,
mode=self.env.mode,
).observe(float(latency))
Common_model/metrics.py
algorithm_latency = Histogram(
name="algorithm_latency",
documentation="Algorithm Run Latency",
labelnames=["algorithm", "mode"],
buckets=DEFAULT_BUCKEEditor is loading...
Leave a Comment