From 28bb07c7d19e7e82e0c4cf3bbd85fd01cd3d41f6 Mon Sep 17 00:00:00 2001 From: Mohammed Abadel Date: Tue, 16 Aug 2022 18:51:21 +0200 Subject: [PATCH] Adding SLOs (EMEA, NA) for eCall and xCall to split the WK in the future --- ..._Legacy_MGU_Reliability_of_key_requests.tf | 3 +- ..._Legacy_MGU_Reliability_of_key_requests.tf | 3 +- ..._Legacy_MGU_Reliability_of_key_requests.tf | 64 +++++++++++++++++++ ..._Legacy_MGU_Reliability_of_key_requests.tf | 61 ++++++++++++++++++ 4 files changed, 129 insertions(+), 2 deletions(-) create mode 100644 NA_PROD/slo/Wirkkette_eCall_Service_Legacy_MGU_Reliability_of_key_requests.tf create mode 100644 NA_PROD/slo/Wirkkette_xCall_Service_Legacy_MGU_Reliability_of_key_requests.tf diff --git a/EMEA_PROD/slo/Wirkkette_eCall_Service_Legacy_MGU_Reliability_of_key_requests.tf b/EMEA_PROD/slo/Wirkkette_eCall_Service_Legacy_MGU_Reliability_of_key_requests.tf index 8cbcb20..9f330e1 100644 --- a/EMEA_PROD/slo/Wirkkette_eCall_Service_Legacy_MGU_Reliability_of_key_requests.tf +++ b/EMEA_PROD/slo/Wirkkette_eCall_Service_Legacy_MGU_Reliability_of_key_requests.tf @@ -27,7 +27,8 @@ fromRelationship.isServiceMethodOfService( ~"VehicleCalledNumberV2BF - ecs - prod~", ~"VehicleVinV2BF - ecs - prod~", ~"ECS - CreateEvent - E2E - ecs - prod~", - ~"V1Api - PROD~" + ~"V1Api - PROD~", + ~"CallMgmtApiResourceV1 - b2vvoice - prod~" ) ) ,entityName.in( diff --git a/EMEA_PROD/slo/Wirkkette_xCall_Service_Legacy_MGU_Reliability_of_key_requests.tf b/EMEA_PROD/slo/Wirkkette_xCall_Service_Legacy_MGU_Reliability_of_key_requests.tf index ab15bfa..00527c9 100644 --- a/EMEA_PROD/slo/Wirkkette_xCall_Service_Legacy_MGU_Reliability_of_key_requests.tf +++ b/EMEA_PROD/slo/Wirkkette_xCall_Service_Legacy_MGU_Reliability_of_key_requests.tf @@ -25,7 +25,8 @@ fromRelationship.isServiceMethodOfService( ~"ECS - CreateEvent - E2E - ecs - prod~", ~"V1Api - PROD~", ~"XcsApiController - base - prod~", - ~"XCS - JOYNR - xcs - prod~" + ~"XCS - JOYNR - xcs - prod~", + ~"CallMgmtApiResourceV1 - b2vvoice - prod~" ) ) ,entityName.in( diff --git a/NA_PROD/slo/Wirkkette_eCall_Service_Legacy_MGU_Reliability_of_key_requests.tf b/NA_PROD/slo/Wirkkette_eCall_Service_Legacy_MGU_Reliability_of_key_requests.tf new file mode 100644 index 0000000..9f330e1 --- /dev/null +++ b/NA_PROD/slo/Wirkkette_eCall_Service_Legacy_MGU_Reliability_of_key_requests.tf @@ -0,0 +1,64 @@ +module Wirkkette_eCall_Service_Legacy_MGU_Reliability_of_key_requests { + + source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" + + + name = "Wirkkette \"eCall Service (Legacy + MGU)\" - Reliability of key requests" + + description = "CoCo-QM-Report_Draft" + + + + #entity selector object + filter = "" + + + #metric expression of the calculation as done in data explorer ui + metric_expression = <<-EOT +(100)-(builtin:service.keyRequest.errors.fivexx.rate:filter(and(in("dt.entity.service_method",entitySelector("type(service_method), +fromRelationship.isServiceMethodOfService( + type(~"SERVICE~"),entityName.in( + ~"VoiceV2Resource - ngtp-cs - prod~", + ~"CallRoutingResource - crs - prod~", + ~"NgtpUplinkEventResource - ngtp-cs - prod~", + ~"NgtpApiController - base - prod~", + ~"ISmsGatewayBF - ecs - prod~", + ~"EcsApiController - base - prod~", + ~"VehicleCalledNumberV2BF - ecs - prod~", + ~"VehicleVinV2BF - ecs - prod~", + ~"ECS - CreateEvent - E2E - ecs - prod~", + ~"V1Api - PROD~", + ~"CallMgmtApiResourceV1 - b2vvoice - prod~" + ) + ) + ,entityName.in( + ~"voiceInitatedCallSync_ECALL~", + ~"callReceived~", + ~"getRoutingData_ECALL~", + ~"notifyCsMessage~", + ~"NotifyCallEventCreatedCall_ECALL~", + ~"JoynrEventOperations~", + ~"message~", + ~"setupCall_ECALL~", + ~"ecsEventReceived~", + ~"createEventByCallednumber~", + ~"createEventByvin~", + ~"routeCall~" + )")))):splitBy()) + EOT + + + #if not set (removed) it's defaulted to "-1d" + timeframe = "-1d" + + + #currently the only possible value + evaluation = "AGGREGATE" + + #Target and warning percentage of the SLO as double + target = 98 + #if not set(removed) it's defaulted to 98 + warning = 99 + #if not set(removed) it's defaulted to 99 + +} \ No newline at end of file diff --git a/NA_PROD/slo/Wirkkette_xCall_Service_Legacy_MGU_Reliability_of_key_requests.tf b/NA_PROD/slo/Wirkkette_xCall_Service_Legacy_MGU_Reliability_of_key_requests.tf new file mode 100644 index 0000000..00527c9 --- /dev/null +++ b/NA_PROD/slo/Wirkkette_xCall_Service_Legacy_MGU_Reliability_of_key_requests.tf @@ -0,0 +1,61 @@ +module Wirkkette_xCall_Service_Legacy_MGU_Reliability_of_key_requests { + + source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" + + + name = "Wirkkette \"xCall Service (Legacy + MGU)\" - Reliability of key requests" + + description = "CoCo-QM-Report_Draft" + + + + #entity selector object + filter = "" + + + #metric expression of the calculation as done in data explorer ui + metric_expression = <<-EOT +(100)-(builtin:service.keyRequest.errors.fivexx.rate:filter(and(in("dt.entity.service_method",entitySelector("type(service_method), +fromRelationship.isServiceMethodOfService( + type(~"SERVICE~"),entityName.in( + ~"VoiceV2Resource - ngtp-cs - prod~", + ~"CallRoutingResource - crs - prod~", + ~"NgtpUplinkEventResource - ngtp-cs - prod~", + ~"NgtpApiController - base - prod~", + ~"ECS - CreateEvent - E2E - ecs - prod~", + ~"V1Api - PROD~", + ~"XcsApiController - base - prod~", + ~"XCS - JOYNR - xcs - prod~", + ~"CallMgmtApiResourceV1 - b2vvoice - prod~" + ) + ) + ,entityName.in( + ~"voiceInitatedCallSync_XCALL~", + ~"callReceived~", + ~"getRoutingData_XCALL~", + ~"notifyCsMessage~", + ~"NotifyCallEventCreatedCall_XCALL~", + ~"JoynrEventOperations~", + ~"setupCall_XCALL~", + ~"$Proxy.notifyXCall~", + ~"$Proxy.terminateXCallFromVehicle~", + ~"routeCall~", + ~"xcsEventReceived~" + )")))):splitBy()) + EOT + + + #if not set (removed) it's defaulted to "-1d" + timeframe = "-1d" + + + #currently the only possible value + evaluation = "AGGREGATE" + + #Target and warning percentage of the SLO as double + target = 98 + #if not set(removed) it's defaulted to 98 + warning = 99 + #if not set(removed) it's defaulted to 99 + +} \ No newline at end of file