From 5497d5ebd3c73932df1d5eb1f3ce1df687dcf328 Mon Sep 17 00:00:00 2001 From: Mohammed Abadel Date: Wed, 31 Aug 2022 10:52:58 +0200 Subject: [PATCH] adjusting SLO for Remote Services in CN --- ...Services__-_Reliability_of_key_requests.tf | 65 ++++++++++++++++++- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/CN_PROD/slo/Wirkkette__Remote_Services__-_Reliability_of_key_requests.tf b/CN_PROD/slo/Wirkkette__Remote_Services__-_Reliability_of_key_requests.tf index 086a064..fbe0c5f 100644 --- a/CN_PROD/slo/Wirkkette__Remote_Services__-_Reliability_of_key_requests.tf +++ b/CN_PROD/slo/Wirkkette__Remote_Services__-_Reliability_of_key_requests.tf @@ -10,11 +10,72 @@ module Wirkkette__Remote_Services__-_Reliability_of_key_requests { #entity selector object - filter = "type(SERVICE_METHOD), entityId(\"SERVICE_METHOD-B219589292C445DB\",\"SERVICE_METHOD-4CE55AC9F5239211\",\"SERVICE_METHOD-49D11B0F3CE48929\",\"SERVICE_METHOD-D8D1BB43EDA30ECF\",\"SERVICE_METHOD-341CC9EC7E382F50\",\"SERVICE_METHOD-AE140A48F6BD99F4\",\"SERVICE_METHOD-4ACBB015719EC54E\",\"SERVICE_METHOD-4B340DDD87FC172B\",\"SERVICE_METHOD-8E198EBFB81FC091\",\"SERVICE_METHOD-28FEACCCB0549959\",\"SERVICE_METHOD-6CEF4D9E37811BDC\",\"SERVICE_METHOD-8F289DC0993B1624\",\"SERVICE_METHOD-6CEF4D9E37811BDC\")" + 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(in("dt.entity.service_method",entitySelector("type(service_method), + fromRelationship.isServiceMethodOfService( + type(~"SERVICE~"),entityName.in( + ~"btc-vehicle-remote-commands-composite-service - PROD~" + ) + ) + ,entityName.in( + ~"POST /api/v2/presentation/remote-commands/eventStatus~", + ~"POST /api/v2/presentation/remote-commands//door-lock~", + ~"POST /api/v2/presentation/remote-commands//door-unlock~", + ~"POST /api/v2/presentation/remote-commands//climate-now~", + ~"GET /api/v2/presentation/remote-history/~", + ~"POST /api/v2/presentation/remote-commands//horn-blow~", + ~"POST /api/v2/presentation/remote-commands//climate-timer~", + ~"POST /api/v2/presentation/remote-commands//light-flash~", + ~"POST /api/v2/presentation/remote-commands//vehicle-finder~", + ~"GET /api/v1/presentation/remote-history/~", + ~"POST /api/v3/presentation/remote-commands/eventStatus~", + ~"POST /api/v3/presentation/remote-commands//door-lock~", + ~"POST /api/v3/presentation/remote-commands//door-unlock~", + ~"POST /api/v3/presentation/remote-commands//climate-now~", + ~"GET /api/v3/presentation/remote-history/~", + ~"POST /api/v3/presentation/remote-commands//horn-blow~", + ~"POST /api/v3/presentation/remote-commands//climate-timer~", + ~"POST /api/v3/presentation/remote-commands//light-flash~", + ~"POST /api/v3/presentation/remote-commands//vehicle-finder~" + )") + ) +)):splitBy()) +/ +(builtin:service.keyRequest.count.server:filter(and(in("dt.entity.service_method",entitySelector("type(service_method), + fromRelationship.isServiceMethodOfService( + type(~"SERVICE~"),entityName.in( + ~"btc-vehicle-remote-commands-composite-service - PROD~" + ) + ) + ,entityName.in( + ~"POST /api/v2/presentation/remote-commands/eventStatus~", + ~"POST /api/v2/presentation/remote-commands//door-lock~", + ~"POST /api/v2/presentation/remote-commands//door-unlock~", + ~"POST /api/v2/presentation/remote-commands//climate-now~", + ~"GET /api/v2/presentation/remote-history/~", + ~"POST /api/v2/presentation/remote-commands//horn-blow~", + ~"POST /api/v2/presentation/remote-commands//climate-timer~", + ~"POST /api/v2/presentation/remote-commands//light-flash~", + ~"POST /api/v2/presentation/remote-commands//vehicle-finder~", + ~"GET /api/v1/presentation/remote-history/~", + ~"POST /api/v3/presentation/remote-commands/eventStatus~", + ~"POST /api/v3/presentation/remote-commands//door-lock~", + ~"POST /api/v3/presentation/remote-commands//door-unlock~", + ~"POST /api/v3/presentation/remote-commands//climate-now~", + ~"GET /api/v3/presentation/remote-history/~", + ~"POST /api/v3/presentation/remote-commands//horn-blow~", + ~"POST /api/v3/presentation/remote-commands//climate-timer~", + ~"POST /api/v3/presentation/remote-commands//light-flash~", + ~"POST /api/v3/presentation/remote-commands//vehicle-finder~" + )") + ) +)):splitBy())) + EOT #if not set (removed) it's defaulted to "-1d"