coco_terraform_config/EMEA_PROD/slo/TP_Vehicle_Alexa.tf

42 lines
1.6 KiB
HCL

module TP_Vehicle_Alexa {
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
name = "TP_Vehicle_Alexa"
description = "CoCo-QM-Report_Vehicle"
#entity selector object
filter = ""
# The metric fivexx.rate shouldn't be changed to server side error metric. Reason is there is a global rule to exclude 502 errors from server side errors.
# However 502 errors should be included in the Alexa endpoint.
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(
~"hvd (/hvd) - hvd - prod~"
)
)
,entityName.in(
~"/hvd/keywords~"
)"))))):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
}