Adjusting SLO for Vehicle Data to use request names instead of ids
parent
802e182619
commit
f2991c9e3f
|
|
@ -10,11 +10,24 @@ module Wirkkette__Vehicle_Data__-_Reliability_of_key_requests {
|
|||
|
||||
|
||||
#entity selector object
|
||||
filter = "type(SERVICE_METHOD), entityId(\"SERVICE_METHOD-76A9DA915F262474\",\"SERVICE_METHOD-405F007AA0570671\",\"SERVICE_METHOD-959F2E3E489257E0\")"
|
||||
filter = ""
|
||||
|
||||
|
||||
#metric expression of the calculation as done in data explorer ui
|
||||
metric_expression = "(100)*(builtin:service.keyRequest.errors.server.successCount:splitBy())/(builtin:service.keyRequest.count.server:splitBy())"
|
||||
metric_expression = <<EOT
|
||||
(100)-(builtin:service.keyRequest.errors.fivexx.rate:filter(and(in("dt.entity.service_method",entitySelector("type(service_method),
|
||||
fromRelationship.isServiceMethodOfService(
|
||||
type(~"SERVICE~"),entityName.in(
|
||||
~"btc-vehicle-composite-service - PROD~",
|
||||
~"VehicleService - PROD~"
|
||||
)
|
||||
)
|
||||
,entityName.in(
|
||||
~"GET /api/v1/vehicles/<VIN>/state~",
|
||||
~"GET /v1/vehicle/<VIN>~"
|
||||
)")))):splitBy())
|
||||
|
||||
EOT
|
||||
|
||||
|
||||
#if not set (removed) it's defaulted to "-1d"
|
||||
|
|
@ -25,9 +38,7 @@ module Wirkkette__Vehicle_Data__-_Reliability_of_key_requests {
|
|||
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
|
||||
target = 98 #if not set(removed) it's defaulted to 98
|
||||
warning = 99 #if not set(removed) it's defaulted to 99
|
||||
|
||||
}
|
||||
|
|
@ -10,11 +10,23 @@ module Wirkkette__Vehicle_Data__-_Reliability_of_key_requests {
|
|||
|
||||
|
||||
#entity selector object
|
||||
filter = "type(SERVICE_METHOD), entityId(\"SERVICE_METHOD-769506A99DD5D4A4\",\"SERVICE_METHOD-88B4248DCF959D93\")"
|
||||
filter = ""
|
||||
|
||||
|
||||
#metric expression of the calculation as done in data explorer ui
|
||||
metric_expression = "(100)*((builtin:service.keyRequest.errors.server.successCount:splitBy())/(builtin:service.keyRequest.count.server:splitBy()))"
|
||||
metric_expression = <<EOT
|
||||
(100)-(builtin:service.keyRequest.errors.fivexx.rate:filter(and(in("dt.entity.service_method",entitySelector("type(service_method),
|
||||
fromRelationship.isServiceMethodOfService(
|
||||
type(~"SERVICE~"),entityName.in(
|
||||
~"btc-vehicle-composite-service - PROD~",
|
||||
~"VehicleService - PROD~"
|
||||
)
|
||||
)
|
||||
,entityName.in(
|
||||
~"GET /api/v1/vehicles/<VIN>/state~",
|
||||
~"GET /v1/vehicle/<VIN>~"
|
||||
)")))):splitBy())
|
||||
EOT
|
||||
|
||||
|
||||
#if not set (removed) it's defaulted to "-1d"
|
||||
|
|
@ -25,9 +37,7 @@ module Wirkkette__Vehicle_Data__-_Reliability_of_key_requests {
|
|||
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
|
||||
target = 98 #if not set(removed) it's defaulted to 98
|
||||
warning = 99 #if not set(removed) it's defaulted to 99
|
||||
|
||||
}
|
||||
|
|
@ -10,11 +10,23 @@ module Wirkkette__Vehicle_Data__-_Reliability_of_key_requests {
|
|||
|
||||
|
||||
#entity selector object
|
||||
filter = "type(SERVICE_METHOD), entityId(\"SERVICE_METHOD-0E5B844EBB82F6ED\",\"SERVICE_METHOD-0F83A5B89D63CD6F\",\"SERVICE_METHOD-CC975B01204F0CE4\")"
|
||||
filter = ""
|
||||
|
||||
|
||||
#metric expression of the calculation as done in data explorer ui
|
||||
metric_expression = "(100)*((builtin:service.keyRequest.errors.server.successCount:splitBy())/(builtin:service.keyRequest.count.server:splitBy()))"
|
||||
metric_expression = <<EOT
|
||||
(100)-(builtin:service.keyRequest.errors.fivexx.rate:filter(and(in("dt.entity.service_method",entitySelector("type(service_method),
|
||||
fromRelationship.isServiceMethodOfService(
|
||||
type(~"SERVICE~"),entityName.in(
|
||||
~"btc-vehicle-composite-service - PROD~",
|
||||
~"VehicleService - PROD~"
|
||||
)
|
||||
)
|
||||
,entityName.in(
|
||||
~"GET /api/v1/vehicles/<VIN>/state~",
|
||||
~"GET /v1/vehicle/<VIN>~"
|
||||
)")))):splitBy())
|
||||
EOT
|
||||
|
||||
|
||||
#if not set (removed) it's defaulted to "-1d"
|
||||
|
|
@ -25,9 +37,7 @@ module Wirkkette__Vehicle_Data__-_Reliability_of_key_requests {
|
|||
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
|
||||
target = 98 #if not set(removed) it's defaulted to 98
|
||||
warning = 99 #if not set(removed) it's defaulted to 99
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue