Monitor Endpoints
Last updated
Was this helpful?
Was this helpful?
print(
json.dumps(
{
"vh_metadata": {
"prediction_confidence": 0.94,
"processing_time_ms": 23,
},
},
),
)print(
json.dumps(
{
"vh_metadata": {
"fraud_detected": True,
"transaction_amount": 1250.00,
},
},
),
)import time
start = time.time()
# ... inference code ...
duration = time.time() - start
print(
json.dumps(
{
"vh_metadata": {
"inference_latency_ms": int(duration * 1000),
},
},
),
)