From bae919fc2fe1e3e85b09d0f8bc05da0009c02143 Mon Sep 17 00:00:00 2001 From: "SLW\\KASIKD" Date: Fri, 24 Feb 2023 12:22:44 +0100 Subject: [PATCH] SLO_Vehicle_Login --- EMEA_PROD/slo/TP_Vehicle_Login.tf | 53 +++++++++++++++++++++++++++++++ NA_PROD/slo/TP_Vehicle_Login.tf | 53 +++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 EMEA_PROD/slo/TP_Vehicle_Login.tf create mode 100644 NA_PROD/slo/TP_Vehicle_Login.tf diff --git a/EMEA_PROD/slo/TP_Vehicle_Login.tf b/EMEA_PROD/slo/TP_Vehicle_Login.tf new file mode 100644 index 0000000..ed77e03 --- /dev/null +++ b/EMEA_PROD/slo/TP_Vehicle_Login.tf @@ -0,0 +1,53 @@ +module TP_Vehicle_Login { + + source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" + + + name = "TP_Vehicle_Login" + description = "CoCo-QM-Report_Vehicle" + + + #entity selector object + filter = "" + + #metric expression of the calculation as done in data explorer ui + 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( + ~"TokenResource - cac - prod~", + ~"CredentialInfoResource - cac - prod~" + ) + ) + ,entityName.in( + ~"POST authorize password~", + ~"POST authorize device_code~", + ~"validateUser~" + )"))))):splitBy()) + / + (builtin:service.keyRequest.count.server:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method), + fromRelationship.isServiceMethodOfService( + type(~"SERVICE~"),entityName.in( + ~"TokenResource - cac - prod~", + ~"CredentialInfoResource - cac - prod~" + ) + ) + ,entityName.in( + ~"POST authorize password~", + ~"POST authorize device_code~", + ~"validateUser~" + )"))))):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/TP_Vehicle_Login.tf b/NA_PROD/slo/TP_Vehicle_Login.tf new file mode 100644 index 0000000..ed77e03 --- /dev/null +++ b/NA_PROD/slo/TP_Vehicle_Login.tf @@ -0,0 +1,53 @@ +module TP_Vehicle_Login { + + source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" + + + name = "TP_Vehicle_Login" + description = "CoCo-QM-Report_Vehicle" + + + #entity selector object + filter = "" + + #metric expression of the calculation as done in data explorer ui + 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( + ~"TokenResource - cac - prod~", + ~"CredentialInfoResource - cac - prod~" + ) + ) + ,entityName.in( + ~"POST authorize password~", + ~"POST authorize device_code~", + ~"validateUser~" + )"))))):splitBy()) + / + (builtin:service.keyRequest.count.server:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method), + fromRelationship.isServiceMethodOfService( + type(~"SERVICE~"),entityName.in( + ~"TokenResource - cac - prod~", + ~"CredentialInfoResource - cac - prod~" + ) + ) + ,entityName.in( + ~"POST authorize password~", + ~"POST authorize device_code~", + ~"validateUser~" + )"))))):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