module TP_Vehicle_SmartRefuel { source = "../../_dynatrace-base-modules/dynatrace-service-level-objective" name = "TP_Vehicle_SmartRefuel" description = "CoCo-QM-Report_Vehicle" #entity selector object filter = "type(\"SERVICE_METHOD\")" #metric expression of the calculation as done in data explorer ui metric_expression = <<-EOT (100)*( (builtin:service.keyRequest.errors.server.successCount:filter( and( or( in( "dt.entity.service_method", entitySelector("type(service_method), fromRelationship.isServiceMethodOfService( type(~"SERVICE~"),entityName.contains(~"omcsmtrflce20q3~"),mzName(~"CN_OMC_PROD~") ) ,entityName.in( ~"/smtrfl/api/v1/order~", ~"/smtrfl/api/v1/station/list~", ~"/smtrfl/api/v1/station/detail~" )") ) ))):splitBy():sum:auto:sort(value(sum,descending))) / (builtin:service.keyRequest.count.server:filter( and( or( in( "dt.entity.service_method", entitySelector("type(service_method), fromRelationship.isServiceMethodOfService( type(~"SERVICE~"),entityName.contains(~"omcsmtrflce20q3~"),mzName(~"CN_OMC_PROD~") ) ,entityName.in( ~"/smtrfl/api/v1/order~", ~"/smtrfl/api/v1/station/list~", ~"/smtrfl/api/v1/station/detail~" )") ) ))):splitBy():sum:auto:sort(value(sum,descending)))) 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 }