39 lines
1.6 KiB
HCL
39 lines
1.6 KiB
HCL
module Composite-SLO_remote-commands-composite {
|
|
|
|
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
|
|
|
|
|
|
name = "Composite-SLO_remote-commands-composite"
|
|
|
|
description = "Composite Test SLO for two different SLOs"
|
|
|
|
|
|
|
|
#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:splitBy("dt.entity.service_method"))/
|
|
(builtin:service.keyRequest.count.server:splitBy("dt.entity.service_method"))):filter(or(in("dt.entity.service_method",entitySelector("type(service_method),entityID(~"SERVICE_METHOD-220B20CF01912501~")")))):splitBy():avg)+((100)*((builtin:service.errors.server.successCount:splitBy("dt.entity.service_methode"))
|
|
/
|
|
(builtin:service.requestCount.server:splitBy("dt.entity.service_method"))):filter(and(in("dt.entity.service_methode",entitySelector("type(service_method),entityID(~"SERVICE_METHOD-FE4E553F84167C2E~")"))))):splitBy():avg)/(2)
|
|
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
|
|
|
|
} |