OPMAAS-3203 - Adjusted Service Name.

OPMAAS-3203
SLW\ARNAUA 2023-01-04 13:50:50 +01:00
parent 8411765e96
commit 66ca31b032
1 changed files with 22 additions and 3 deletions

View File

@ -10,12 +10,31 @@ module Wirkkette__IPA_Speech__-_Reliability_of_key_requests {
#entity selector object
filter = "type(SERVICE_METHOD),entityId(\"SERVICE_METHOD-A47D63D3756DD049\")"
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.server.successCount:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"hvd (/hvd) - ipa-backend-cn - prod~"
)
)
,entityName.in(
~"/hvd/speech~"
)"))))):splitBy())
/
(builtin:service.keyRequest.count.server:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"hvd (/hvd) - ipa-backend-cn - prod~"
)
)
,entityName.in(
~"/hvd/speech~"
)"))))):splitBy())
EOT
#if not set (removed) it's defaulted to "-1d"
timeframe = "-1w"