57 lines
1.9 KiB
HCL
57 lines
1.9 KiB
HCL
module TP_Vehicle_ConnectedMusic {
|
|
|
|
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
|
|
|
|
|
|
name = "TP_Vehicle_ConnectedMusic"
|
|
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(
|
|
in(
|
|
"dt.entity.service_method"
|
|
,entitySelector(
|
|
"type(service_method)
|
|
,fromRelationship.isServiceMethodOfService( type(~"SERVICE~"),entityName.in( ~"VehicleService - avs~" ))
|
|
,entityName.contains(~"Vehicle_Successful_ResponseCode~")"
|
|
|
|
)))):splitBy()
|
|
/
|
|
(builtin:service.keyRequest.errors.server.successCount:filter(
|
|
and(
|
|
in(
|
|
"dt.entity.service_method"
|
|
,entitySelector(
|
|
"type(service_method)
|
|
,fromRelationship.isServiceMethodOfService( type(~"SERVICE~"),entityName.in( ~"VehicleService - avs~" ))
|
|
,entityName.contains(~"Vehicle_Successful_ResponseCode~")"
|
|
)))):splitBy()
|
|
+
|
|
builtin:service.keyRequest.errors.server.successCount:filter(
|
|
and(
|
|
in(
|
|
"dt.entity.service_method"
|
|
,entitySelector(
|
|
"type(service_method)
|
|
,fromRelationship.isServiceMethodOfService( type(~"SERVICE~"),entityName.in( ~"VehicleService - avs~" ))
|
|
,entityName.contains(~"Vehicle_Failed_ResponseCode~")"
|
|
)))):auto:default(0):splitBy()))
|
|
EOT
|
|
|
|
timeframe = "-1d" #if not set (removed) it's defaulted to "-1d"
|
|
|
|
evaluation = "AGGREGATE" #currently the only possible value
|
|
|
|
#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
|
|
|
|
}
|