59 lines
3.4 KiB
HCL
59 lines
3.4 KiB
HCL
module TP_Mobile_RemoteServices {
|
|
|
|
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
|
|
|
|
|
|
name = "TP_Mobile_RemoteServices"
|
|
description = "2.0 SLO Mobile"
|
|
|
|
|
|
#entity selector object
|
|
filter = ""
|
|
|
|
#metric expression of the calculation as done in data explorer ui
|
|
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(
|
|
~"btc-vehicle-remote-commands-composite-service - PROD~"
|
|
)
|
|
)
|
|
,entityName.in(
|
|
~"POST /api/v2/presentation/remote-commands/eventStatus~",
|
|
~"POST /api/v2/presentation/remote-commands/<VIN>/door-lock~",
|
|
~"POST /api/v2/presentation/remote-commands/<VIN>/door-unlock~",
|
|
~"POST /api/v2/presentation/remote-commands/<VIN>/climate-now~",
|
|
~"GET /api/v2/presentation/remote-history/<VIN>~",
|
|
~"POST /api/v2/presentation/remote-commands/<VIN>/horn-blow~",
|
|
~"POST /api/v2/presentation/remote-commands/<VIN>/climate-timer~",
|
|
~"POST /api/v2/presentation/remote-commands/<VIN>/light-flash~",
|
|
~"POST /api/v2/presentation/remote-commands/<VIN>/vehicle-finder~",
|
|
~"GET /api/v1/presentation/remote-history/<VIN>~",
|
|
~"POST /api/v3/presentation/remote-commands/eventStatus~",
|
|
~"POST /api/v3/presentation/remote-commands/<VIN>/door-lock~",
|
|
~"POST /api/v3/presentation/remote-commands/<VIN>/door-unlock~",
|
|
~"POST /api/v3/presentation/remote-commands/<VIN>/climate-now~",
|
|
~"GET /api/v3/presentation/remote-history/<VIN>~",
|
|
~"POST /api/v3/presentation/remote-commands/<VIN>/horn-blow~",
|
|
~"POST /api/v3/presentation/remote-commands/<VIN>/climate-timer~",
|
|
~"POST /api/v3/presentation/remote-commands/<VIN>/light-flash~",
|
|
~"POST /api/v3/presentation/remote-commands/<VIN>/vehicle-finder~",
|
|
~"POST /api/v3/presentation/remote-commands/eventPosition~"
|
|
)"))))):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
|
|
|
|
}
|
|
|
|
output "TP_Mobile_RemoteServices_metric" {
|
|
value = module.TP_Mobile_RemoteServices.metric_expression
|
|
} |