Sometimes Azure returns no data for KeyVault latency (e.g. there were no KeyVault requests). Client wanted this to default to a latency of 0.

This commit is contained in:
Marsell Kukuljevic 2024-11-19 18:27:30 +01:00
parent 1b54b70a8d
commit 72e13f4204
3 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -56,7 +56,7 @@ def check_keyvault(item, params, section):
availability = metrics.get("Availability")
capacity = metrics.get("SaturationShoebox")
latency = metrics.get("ServiceApiLatency")
latency = metrics.get("ServiceApiLatency", 0)
hits = metrics.get("ServiceApiHit")
results = metrics.get("ServiceApiResult")