coco_terraform_config/CN_PROD/slo/ICES_FestiveModeAPI_getFest...

51 lines
1.9 KiB
HCL

module ICES_FestiveModeAPI_getFestival {
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
name = "ICES - FestiveModeApi - getFestival"
description = "FestiveModeApi_getFestival_success_rate"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)*((1)-(builtin:service.keyRequest.errors.fivexx.count:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"FestiveModeApi~"
),
tag(~"Environment:PROD~")
)
,entityName.in(
~"getFestival~"
)"))))):splitBy())
/
(builtin:service.keyRequest.count.server:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"FestiveModeApi~"
),
tag(~"Environment:PROD~")
)
,entityName.in(
~"getFestival~"
)"))))):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
}