Adjusting SLOs for Remote Services and R-Camera to use request names

MergeOAP
Mohammed Abadel 2022-11-17 16:10:36 +01:00
parent 53fb14e86b
commit 23a25966c8
5 changed files with 114 additions and 26 deletions

View File

@ -10,11 +10,29 @@ module Wirkkette__Remote_3D_View__R360___-_Reliability_of_key_requests {
#entity selector object
filter = "type(SERVICE_METHOD), entityId(\"SERVICE_METHOD-C6DA3F573448C185\",\"SERVICE_METHOD-1B7A255A9268916D\",\"SERVICE_METHOD-C62515ACDEBFFC71\",\"SERVICE_METHOD-791FB667DD21662A\",\"SERVICE_METHOD-F678FCFC19821D15\",\"SERVICE_METHOD-9D5AC4721440C2F2\",\"SERVICE_METHOD-B3D264ADD8555D53\",\"SERVICE_METHOD-7990F5B0D40A6A94\",\"SERVICE_METHOD-C48D3FD989B4A264\",\"SERVICE_METHOD-FC5222B11E0924E4\")"
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(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"remote-360-composite-service - PROD~"
)
)
,entityName.in(
~"GET /api/v1/events/[UUID]~",
~"POST /api/v1/events/[UUID]/cancel~",
~"POST /api/v1/event/execute~",
~"GET /api/v1/download/[UUID]/<fileName>~",
~"POST /api/v1/download/[UUID]/<fileName>/confirm~",
~"GET /api/v1/vehicle/<VIN>/egomodelurl~",
~"GET /api/v1/vehicle/<VIN>/key~",
~"GET /api/v1/recordings/vehicle/<VIN>~"
)"))))):splitBy())
EOT
#if not set (removed) it's defaulted to "-1d"
@ -25,9 +43,7 @@ module Wirkkette__Remote_3D_View__R360___-_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
}

View File

@ -10,11 +10,29 @@ module Wirkkette__Remote_3D_View__R360___-_Reliability_of_key_requests {
#entity selector object
filter = "type(SERVICE_METHOD), entityId(\"SERVICE_METHOD-842081514480AE6F\",\"SERVICE_METHOD-FA536DF7DC128A76\",\"SERVICE_METHOD-BE48B51741012A02\",\"SERVICE_METHOD-C673BE41E7B98048\",\"SERVICE_METHOD-459741C92B8A19BF\",\"SERVICE_METHOD-52E7C29E288D4EAE\",\"SERVICE_METHOD-B46B08985405CF4B\",\"SERVICE_METHOD-4F5F5F6AF5BC9915\")"
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(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"remote-360-composite-service - PROD~"
)
)
,entityName.in(
~"GET /api/v1/events/[UUID]~",
~"POST /api/v1/events/[UUID]/cancel~",
~"POST /api/v1/event/execute~",
~"GET /api/v1/download/[UUID]/<fileName>~",
~"POST /api/v1/download/[UUID]/<fileName>/confirm~",
~"GET /api/v1/vehicle/<VIN>/egomodelurl~",
~"GET /api/v1/vehicle/<VIN>/key~",
~"GET /api/v1/recordings/vehicle/<VIN>~"
)"))))):splitBy())
EOT
#if not set (removed) it's defaulted to "-1d"
@ -25,9 +43,7 @@ module Wirkkette__Remote_3D_View__R360___-_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
}

View File

@ -10,11 +10,30 @@ module Wirkkette__Remote_Services__-_Reliability_of_key_requests {
#entity selector object
filter = "type(SERVICE_METHOD), entityId(\"SERVICE_METHOD-02E88144CFC57AEA\",\"SERVICE_METHOD-2C51346F87339CE8\",\"SERVICE_METHOD-FE4E553F84167C2E\",\"SERVICE_METHOD-8A384C81D9AF38CA\",\"SERVICE_METHOD-3FAF84E444877083\",\"SERVICE_METHOD-220B20CF01912501\",\"SERVICE_METHOD-76B0223CDED11B41\",\"SERVICE_METHOD-ED80E83F71F9E8B7\",\"SERVICE_METHOD-C03CAD42FED5019E\",\"SERVICE_METHOD-82354FEF673A217F\")"
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(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"btc-destination-composite-service - PROD~"
)
)
,entityName.in(
~"POST /api/v2/favorites/~",
~"POST /api/v3/favorites/~",
~"GET /api/v2/favorites/~",
~"GET /api/v3/favorites/~",
~"GET /api/v1/favorites~",
~"PUT /api/v2/favorites/<favoriteId>~",
~"PUT /api/v3/favorites/<favoriteId>~",
~"PUT /api/v2/favorites/homework/1~",
~"PUT /api/v2/favorites/homework/2~"
)"))))):splitBy())
EOT
#if not set (removed) it's defaulted to "-1d"

View File

@ -10,11 +10,29 @@ module Wirkkette__Remote_360__-_Reliability_of_key_requests {
#entity selector object
filter = "type(SERVICE_METHOD), entityId(\"SERVICE_METHOD-157AFEF697B9BEA3\",\"SERVICE_METHOD-73FAE1831920861C\",\"SERVICE_METHOD-F26AF16D6020CD96\",\"SERVICE_METHOD-609AFA69113B389A\",\"SERVICE_METHOD-ABE1CBC886EA614B\",\"SERVICE_METHOD-89BAEC42998CEDFE\",\"SERVICE_METHOD-C676F4F21AB4EB26\",\"SERVICE_METHOD-E219D43EE5161C9E\")"
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(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"remote-360-composite-service - PROD~"
)
)
,entityName.in(
~"GET /api/v1/events/[UUID]~",
~"POST /api/v1/events/[UUID]/cancel~",
~"POST /api/v1/event/execute~",
~"GET /api/v1/download/[UUID]/<fileName>~",
~"POST /api/v1/download/[UUID]/<fileName>/confirm~",
~"GET /api/v1/vehicle/<VIN>/egomodelurl~",
~"GET /api/v1/vehicle/<VIN>/key~",
~"GET /api/v1/recordings/vehicle/<VIN>~"
)"))))):splitBy())
EOT
#if not set (removed) it's defaulted to "-1d"
@ -25,9 +43,7 @@ module Wirkkette__Remote_360__-_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
}

View File

@ -10,11 +10,34 @@ module Wirkkette__Remote_Services__-_Reliability_of_key_requests {
#entity selector object
filter = "type(SERVICE_METHOD), entityId(\"SERVICE_METHOD-95148D0846E99386\",\"SERVICE_METHOD-1B7CC4974E7BB92E\",\"SERVICE_METHOD-20186C30536144F3\",\"SERVICE_METHOD-3B5A00B4618E95EC\",\"SERVICE_METHOD-4FE6903FA2899CF2\",\"SERVICE_METHOD-D7969B823DD3848C\",\"SERVICE_METHOD-6BAAD732863212CC\",\"SERVICE_METHOD-B7018C07019A04DC\",\"SERVICE_METHOD-B359D2488CF8859B\",\"SERVICE_METHOD-1505ED21D6F537F5\")"
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(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/<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/v2/presentation/remote-commands/<VIN>/climate-timer~",
~"POST /api/v2/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~",
~"GET /api/v1/presentation/remote-history/<VIN>~",
~"GET /api/v2/presentation/remote-history/<VIN>~",
~"POST /api/v2/presentation/remote-commands/eventStatus~"
)"))))):splitBy())
EOT
#if not set (removed) it's defaulted to "-1d"
@ -25,9 +48,7 @@ module Wirkkette__Remote_Services__-_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
}