From 66ca31b032b8c2380fc0801f83da502655e023db Mon Sep 17 00:00:00 2001 From: "SLW\\ARNAUA" Date: Wed, 4 Jan 2023 13:50:50 +0100 Subject: [PATCH] OPMAAS-3203 - Adjusted Service Name. --- ...A_Speech__-_Reliability_of_key_requests.tf | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/CN_PROD/slo/Wirkkette__IPA_Speech__-_Reliability_of_key_requests.tf b/CN_PROD/slo/Wirkkette__IPA_Speech__-_Reliability_of_key_requests.tf index efeee74..6cefc89 100644 --- a/CN_PROD/slo/Wirkkette__IPA_Speech__-_Reliability_of_key_requests.tf +++ b/CN_PROD/slo/Wirkkette__IPA_Speech__-_Reliability_of_key_requests.tf @@ -10,12 +10,31 @@ module Wirkkette__IPA_Speech__-_Reliability_of_key_requests { #entity selector object - filter = "type(SERVICE_METHOD),entityId(\"SERVICE_METHOD-A47D63D3756DD049\")" + filter = "" #metric expression of the calculation as done in data explorer ui - metric_expression = "(100)*(builtin:service.keyRequest.errors.server.successCount:splitBy())/(builtin:service.keyRequest.count.server:splitBy())" - + metric_expression = <<-EOT +(100)*(builtin:service.keyRequest.errors.server.successCount:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method), + fromRelationship.isServiceMethodOfService( + type(~"SERVICE~"),entityName.in( + ~"hvd (/hvd) - ipa-backend-cn - prod~" + ) + ) + ,entityName.in( + ~"/hvd/speech~" + )"))))):splitBy()) + / + (builtin:service.keyRequest.count.server:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method), + fromRelationship.isServiceMethodOfService( + type(~"SERVICE~"),entityName.in( + ~"hvd (/hvd) - ipa-backend-cn - prod~" + ) + ) + ,entityName.in( + ~"/hvd/speech~" + )"))))):splitBy()) + EOT #if not set (removed) it's defaulted to "-1d" timeframe = "-1w"