adjusting SLO for Remote Services in CN
parent
4ef9d09882
commit
5497d5ebd3
|
|
@ -10,11 +10,72 @@ module Wirkkette__Remote_Services__-_Reliability_of_key_requests {
|
||||||
|
|
||||||
|
|
||||||
#entity selector object
|
#entity selector object
|
||||||
filter = "type(SERVICE_METHOD), entityId(\"SERVICE_METHOD-B219589292C445DB\",\"SERVICE_METHOD-4CE55AC9F5239211\",\"SERVICE_METHOD-49D11B0F3CE48929\",\"SERVICE_METHOD-D8D1BB43EDA30ECF\",\"SERVICE_METHOD-341CC9EC7E382F50\",\"SERVICE_METHOD-AE140A48F6BD99F4\",\"SERVICE_METHOD-4ACBB015719EC54E\",\"SERVICE_METHOD-4B340DDD87FC172B\",\"SERVICE_METHOD-8E198EBFB81FC091\",\"SERVICE_METHOD-28FEACCCB0549959\",\"SERVICE_METHOD-6CEF4D9E37811BDC\",\"SERVICE_METHOD-8F289DC0993B1624\",\"SERVICE_METHOD-6CEF4D9E37811BDC\")"
|
filter = ""
|
||||||
|
|
||||||
|
|
||||||
#metric expression of the calculation as done in data explorer ui
|
#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.server.successCount: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())
|
||||||
|
/
|
||||||
|
(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
|
||||||
|
|
||||||
|
|
||||||
#if not set (removed) it's defaulted to "-1d"
|
#if not set (removed) it's defaulted to "-1d"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue