coco_terraform_config/EMEA_PROD/slo/Teleservices_KAI.tf

32 lines
1.1 KiB
HCL

module Teleservices_KAI {
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
name = "Teleservices_KAI"
description = "SLO used later for the official Teleservices SLO"
#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),entityName.equals(
~"https://ckf.bmwgroup.net/interpreter/rest/v01/interpret_01~"
) ")))):splitBy("dt.entity.service_method"))
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
}