From e42726ead798b4bc7e3dfd0f43093b0acf4ac1e4 Mon Sep 17 00:00:00 2001 From: "SLW\\ARNAUA" Date: Tue, 17 Jan 2023 12:39:08 +0100 Subject: [PATCH] Modified SLO. --- ...LL_Genie__-_Reliability_of_key_requests.tf | 30 ++++++++----------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/CN_PROD/slo/Wirkkette__TMALL_Genie__-_Reliability_of_key_requests.tf b/CN_PROD/slo/Wirkkette__TMALL_Genie__-_Reliability_of_key_requests.tf index 879bfd2..aeef0a9 100644 --- a/CN_PROD/slo/Wirkkette__TMALL_Genie__-_Reliability_of_key_requests.tf +++ b/CN_PROD/slo/Wirkkette__TMALL_Genie__-_Reliability_of_key_requests.tf @@ -15,24 +15,18 @@ module Wirkkette__TMALL_Genie__-_Reliability_of_key_requests { #metric expression of the calculation as done in data explorer ui metric_expression = <<-EOT - (100)-(builtin:service.keyRequest.errors.fivexx.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method), - fromRelationship.isServiceMethodOfService( - type(~"SERVICE~"),entityName.in( - ~"cn-tmall-genie-composite-service - PROD~", - ~"hvd (/hvd) - hvd - prod~" - ) - ) - ,entityName.in( - ~"/api/v1/presentation/tmall/audioplayer~", - ~"/api/v1/presentation/tmall/checkstatus~", - ~"/api/v1/presentation/tmall/gettmallfeaturetogglestatus~", - ~"/api/v1/presentation/tmall/loginurl?brand=bmw~", - ~"/api/v1/presentation/tmall/playback~", - ~"/api/v1/presentation/tmall/playload?playloadid={param}~", - ~"/hvd/keywords~", - ~"/hvd/speech~", - ~"/hvd/VersionInfo~" - )"))))):splitBy()) + (100)* + (builtin:service.errors.server.successCount:filter(in("dt.entity.service", + entitySelector("type(~"SERVICE~"),entityName.in( + ~"cn-tmall-genie-composite-service - PROD~", + ~"hvd (/hvd) - hvd - prod~" + )"))):splitBy()) + / + (builtin:service.requestCount.server:filter(in("dt.entity.service", + entitySelector("type(~"SERVICE~"),entityName.in( + ~"cn-tmall-genie-composite-service - PROD~", + ~"hvd (/hvd) - hvd - prod~" + )"))):splitBy()) EOT #if not set (removed) it's defaulted to "-1d"