Adjusting SLOs for Remote Services

renaming_description
Mohammed Abadel 2023-03-06 14:58:19 +01:00
parent 506b5eca49
commit 2a81d01ec1
6 changed files with 109 additions and 147 deletions

View File

@ -12,66 +12,34 @@ module TP_Mobile_RemoteServices {
#metric expression of the calculation as done in data explorer ui #metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT metric_expression = <<-EOT
(100)* (100)-(builtin:service.keyRequest.errors.fivexx.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
((builtin:service.keyRequest.errors.server.successCount:filter(and(in("dt.entity.service_method",entitySelector("type(service_method), fromRelationship.isServiceMethodOfService(
fromRelationship.isServiceMethodOfService( type(~"SERVICE~"),entityName.in(
type(~"SERVICE~"),entityName.in( ~"btc-vehicle-remote-commands-composite-service - PROD~"
~"btc-vehicle-remote-commands-composite-service - PROD~" )
) )
) ,entityName.in(
,entityName.in( ~"POST /api/v2/presentation/remote-commands/eventStatus~",
~"POST /api/v2/presentation/remote-commands/eventStatus~", ~"POST /api/v2/presentation/remote-commands/<VIN>/door-lock~",
~"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>/door-unlock~", ~"POST /api/v2/presentation/remote-commands/<VIN>/climate-now~",
~"POST /api/v2/presentation/remote-commands/<VIN>/climate-now~", ~"GET /api/v2/presentation/remote-history/<VIN>~",
~"GET /api/v2/presentation/remote-history/<VIN>~", ~"POST /api/v2/presentation/remote-commands/<VIN>/horn-blow~",
~"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>/climate-timer~", ~"POST /api/v2/presentation/remote-commands/<VIN>/light-flash~",
~"POST /api/v2/presentation/remote-commands/<VIN>/light-flash~", ~"POST /api/v2/presentation/remote-commands/<VIN>/vehicle-finder~",
~"POST /api/v2/presentation/remote-commands/<VIN>/vehicle-finder~", ~"GET /api/v1/presentation/remote-history/<VIN>~",
~"GET /api/v1/presentation/remote-history/<VIN>~", ~"POST /api/v3/presentation/remote-commands/eventStatus~",
~"POST /api/v3/presentation/remote-commands/eventStatus~", ~"POST /api/v3/presentation/remote-commands/<VIN>/door-lock~",
~"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>/door-unlock~", ~"POST /api/v3/presentation/remote-commands/<VIN>/climate-now~",
~"POST /api/v3/presentation/remote-commands/<VIN>/climate-now~", ~"GET /api/v3/presentation/remote-history/<VIN>~",
~"GET /api/v3/presentation/remote-history/<VIN>~", ~"POST /api/v3/presentation/remote-commands/<VIN>/horn-blow~",
~"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>/climate-timer~", ~"POST /api/v3/presentation/remote-commands/<VIN>/light-flash~",
~"POST /api/v3/presentation/remote-commands/<VIN>/light-flash~", ~"POST /api/v3/presentation/remote-commands/<VIN>/vehicle-finder~",
~"POST /api/v3/presentation/remote-commands/<VIN>/vehicle-finder~" ~"POST /api/v3/presentation/remote-commands/eventPosition~"
)") )"))))):splitBy())
)
)):splitBy())
/
(builtin:service.keyRequest.count.server:filter(and(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~"
)")
)
)):splitBy()))
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"

View File

@ -15,66 +15,34 @@ module Wirkkette__Remote_Services__-_Reliability_of_key_requests {
#metric expression of the calculation as done in data explorer ui #metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT metric_expression = <<-EOT
(100)* (100)-(builtin:service.keyRequest.errors.fivexx.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
((builtin:service.keyRequest.errors.server.successCount:filter(and(in("dt.entity.service_method",entitySelector("type(service_method), fromRelationship.isServiceMethodOfService(
fromRelationship.isServiceMethodOfService( type(~"SERVICE~"),entityName.in(
type(~"SERVICE~"),entityName.in( ~"btc-vehicle-remote-commands-composite-service - PROD~"
~"btc-vehicle-remote-commands-composite-service - PROD~" )
) )
) ,entityName.in(
,entityName.in( ~"POST /api/v2/presentation/remote-commands/eventStatus~",
~"POST /api/v2/presentation/remote-commands/eventStatus~", ~"POST /api/v2/presentation/remote-commands/<VIN>/door-lock~",
~"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>/door-unlock~", ~"POST /api/v2/presentation/remote-commands/<VIN>/climate-now~",
~"POST /api/v2/presentation/remote-commands/<VIN>/climate-now~", ~"GET /api/v2/presentation/remote-history/<VIN>~",
~"GET /api/v2/presentation/remote-history/<VIN>~", ~"POST /api/v2/presentation/remote-commands/<VIN>/horn-blow~",
~"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>/climate-timer~", ~"POST /api/v2/presentation/remote-commands/<VIN>/light-flash~",
~"POST /api/v2/presentation/remote-commands/<VIN>/light-flash~", ~"POST /api/v2/presentation/remote-commands/<VIN>/vehicle-finder~",
~"POST /api/v2/presentation/remote-commands/<VIN>/vehicle-finder~", ~"GET /api/v1/presentation/remote-history/<VIN>~",
~"GET /api/v1/presentation/remote-history/<VIN>~", ~"POST /api/v3/presentation/remote-commands/eventStatus~",
~"POST /api/v3/presentation/remote-commands/eventStatus~", ~"POST /api/v3/presentation/remote-commands/<VIN>/door-lock~",
~"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>/door-unlock~", ~"POST /api/v3/presentation/remote-commands/<VIN>/climate-now~",
~"POST /api/v3/presentation/remote-commands/<VIN>/climate-now~", ~"GET /api/v3/presentation/remote-history/<VIN>~",
~"GET /api/v3/presentation/remote-history/<VIN>~", ~"POST /api/v3/presentation/remote-commands/<VIN>/horn-blow~",
~"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>/climate-timer~", ~"POST /api/v3/presentation/remote-commands/<VIN>/light-flash~",
~"POST /api/v3/presentation/remote-commands/<VIN>/light-flash~", ~"POST /api/v3/presentation/remote-commands/<VIN>/vehicle-finder~",
~"POST /api/v3/presentation/remote-commands/<VIN>/vehicle-finder~" ~"POST /api/v3/presentation/remote-commands/eventPosition~"
)") )"))))):splitBy())
)
)):splitBy())
/
(builtin:service.keyRequest.count.server:filter(and(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~"
)")
)
)):splitBy()))
EOT EOT

View File

@ -38,7 +38,9 @@ module TP_Mobile_RemoteServices {
~"GET /api/v3/presentation/remote-history/<VIN>~", ~"GET /api/v3/presentation/remote-history/<VIN>~",
~"POST /api/v2/presentation/remote-commands/<VIN>/charging-profile~", ~"POST /api/v2/presentation/remote-commands/<VIN>/charging-profile~",
~"POST /api/v2/presentation/remote-commands/eventPosition~", ~"POST /api/v2/presentation/remote-commands/eventPosition~",
~"POST /api/v3/presentation/remote-commands/eventPosition~" ~"POST /api/v3/presentation/remote-commands/eventPosition~",
~"POST /api/v3/presentation/remote-commands/eventStatus~",
~"POST /api/v2/presentation/remote-commands/eventStatus~"
)"))))):splitBy()) )"))))):splitBy())
EOT EOT

View File

@ -22,17 +22,28 @@ module Wirkkette__Remote_Services__-_Reliability_of_key_requests {
) )
) )
,entityName.in( ,entityName.in(
~"POST /api/v2/presentation/remote-commands/<VIN>/door-lock~", ~"POST /api/v2/presentation/remote-commands/<VIN>/door-lock~",
~"POST /api/v2/presentation/remote-commands/<VIN>/climate-now~", ~"POST /api/v3/presentation/remote-commands/<VIN>/door-lock~",
~"POST /api/v2/presentation/remote-commands/<VIN>/door-unlock~", ~"POST /api/v2/presentation/remote-commands/<VIN>/climate-now~",
~"POST /api/v2/presentation/remote-commands/<VIN>/vehicle-finder~", ~"POST /api/v3/presentation/remote-commands/<VIN>/climate-now~",
~"POST /api/v2/presentation/remote-commands/<VIN>/climate-timer~", ~"POST /api/v2/presentation/remote-commands/<VIN>/door-unlock~",
~"POST /api/v2/presentation/remote-commands/<VIN>/horn-blow~", ~"POST /api/v3/presentation/remote-commands/<VIN>/door-unlock~",
~"POST /api/v2/presentation/remote-commands/<VIN>/light-flash~", ~"POST /api/v2/presentation/remote-commands/<VIN>/vehicle-finder~",
~"POST /api/v3/presentation/remote-commands/<VIN>/vehicle-finder~",
~"POST /api/v2/presentation/remote-commands/<VIN>/climate-timer~",
~"POST /api/v3/presentation/remote-commands/<VIN>/climate-timer~",
~"POST /api/v2/presentation/remote-commands/<VIN>/horn-blow~",
~"POST /api/v3/presentation/remote-commands/<VIN>/horn-blow~",
~"POST /api/v2/presentation/remote-commands/<VIN>/light-flash~",
~"POST /api/v3/presentation/remote-commands/<VIN>/light-flash~",
~"GET /api/v1/presentation/remote-history/<VIN>~", ~"GET /api/v1/presentation/remote-history/<VIN>~",
~"GET /api/v2/presentation/remote-history/<VIN>~", ~"GET /api/v2/presentation/remote-history/<VIN>~",
~"GET /api/v3/presentation/remote-history/<VIN>~",
~"POST /api/v2/presentation/remote-commands/<VIN>/charging-profile~", ~"POST /api/v2/presentation/remote-commands/<VIN>/charging-profile~",
~"POST /api/v2/presentation/remote-commands/eventPosition~", ~"POST /api/v2/presentation/remote-commands/eventPosition~",
~"POST /api/v3/presentation/remote-commands/eventPosition~",
~"POST /api/v3/presentation/remote-commands/eventStatus~",
~"POST /api/v2/presentation/remote-commands/eventStatus~"
)"))))):splitBy()) )"))))):splitBy())
EOT EOT

View File

@ -38,7 +38,9 @@ module TP_Mobile_RemoteServices {
~"POST /api/v3/presentation/remote-commands/eventPosition~", ~"POST /api/v3/presentation/remote-commands/eventPosition~",
~"GET /api/v1/presentation/remote-history/<VIN>~", ~"GET /api/v1/presentation/remote-history/<VIN>~",
~"GET /api/v2/presentation/remote-history/<VIN>~", ~"GET /api/v2/presentation/remote-history/<VIN>~",
~"GET /api/v3/presentation/remote-history/<VIN>~" ~"GET /api/v3/presentation/remote-history/<VIN>~",
~"POST /api/v3/presentation/remote-commands/eventStatus~",
~"POST /api/v2/presentation/remote-commands/eventStatus~"
)"))))):splitBy()) )"))))):splitBy())
EOT EOT

View File

@ -16,24 +16,35 @@ module Wirkkette__Remote_Services__-_Reliability_of_key_requests {
#metric expression of the calculation as done in data explorer ui #metric expression of the calculation as done in data explorer ui
metric_expression = <<EOT metric_expression = <<EOT
(100)-(builtin:service.keyRequest.errors.fivexx.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method), (100)-(builtin:service.keyRequest.errors.fivexx.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService( fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in( type(~"SERVICE~"),entityName.in(
~"btc-vehicle-remote-commands-composite-service - PROD~" ~"btc-vehicle-remote-commands-composite-service - PROD~"
) )
) )
,entityName.in( ,entityName.in(
~"POST /api/v2/presentation/remote-commands/<VIN>/door-lock~", ~"POST /api/v2/presentation/remote-commands/<VIN>/door-lock~",
~"POST /api/v2/presentation/remote-commands/<VIN>/climate-now~", ~"POST /api/v3/presentation/remote-commands/<VIN>/door-lock~",
~"POST /api/v2/presentation/remote-commands/<VIN>/door-unlock~", ~"POST /api/v2/presentation/remote-commands/<VIN>/door-unlock~",
~"POST /api/v2/presentation/remote-commands/<VIN>/vehicle-finder~", ~"POST /api/v3/presentation/remote-commands/<VIN>/door-unlock~",
~"POST /api/v2/presentation/remote-commands/<VIN>/climate-timer~", ~"POST /api/v2/presentation/remote-commands/<VIN>/climate-now~",
~"POST /api/v2/presentation/remote-commands/<VIN>/horn-blow~", ~"POST /api/v3/presentation/remote-commands/<VIN>/climate-now~",
~"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/<VIN>/vehicle-finder~",
~"GET /api/v2/presentation/remote-history/<VIN>~", ~"POST /api/v2/presentation/remote-commands/<VIN>/climate-timer~",
~"POST /api/v2/presentation/remote-commands/<VIN>/charging-profile~", ~"POST /api/v3/presentation/remote-commands/<VIN>/climate-timer~",
~"POST /api/v2/presentation/remote-commands/eventPosition~", ~"POST /api/v2/presentation/remote-commands/<VIN>/light-flash~",
)"))))):splitBy()) ~"POST /api/v3/presentation/remote-commands/<VIN>/light-flash~",
~"POST /api/v3/presentation/remote-commands/<VIN>/horn-blow~",
~"POST /api/v2/presentation/remote-commands/<VIN>/horn-blow~",
~"POST /api/v2/presentation/remote-commands/<VIN>/charging-profile~",
~"POST /api/v2/presentation/remote-commands/eventPosition~",
~"POST /api/v3/presentation/remote-commands/eventPosition~",
~"GET /api/v1/presentation/remote-history/<VIN>~",
~"GET /api/v2/presentation/remote-history/<VIN>~",
~"GET /api/v3/presentation/remote-history/<VIN>~",
~"POST /api/v3/presentation/remote-commands/eventStatus~",
~"POST /api/v2/presentation/remote-commands/eventStatus~"
)"))))):splitBy())
EOT EOT