51 lines
2.1 KiB
HCL
51 lines
2.1 KiB
HCL
module TP_Mobile_Login {
|
|
|
|
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
|
|
|
|
|
|
name = "TP_Mobile_Login"
|
|
description = "CoCo-QM-Report_Mobile"
|
|
|
|
|
|
#entity selector object
|
|
filter = ""
|
|
|
|
#metric expression of the calculation as done in data explorer ui
|
|
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-cn-connected-oauth-service - PROD~"
|
|
)
|
|
)
|
|
,entityName.in(
|
|
~"/api/v2/cop/login/pwd/nonce~",
|
|
~"/api/v2/cop/login/sms/nonce~",
|
|
~"/api/v2/cop/sso/nonce~",
|
|
~"/api/v2/cop/logout~",
|
|
~"/api/v1/cop/message~",
|
|
~"/api/v2/cop/slider-captcha~",
|
|
~"/api/v1/cop/check-captcha~",
|
|
~"/api/v2/deletion/check~",
|
|
~"/api/v2/deletion/sms~",
|
|
~"/api/v2/deletion/confirm~",
|
|
~"/api/v2/export/sms~",
|
|
~"/api/v2/export/confirm~"
|
|
)"))))):splitBy())
|
|
EOT
|
|
|
|
#if not set (removed) it's defaulted to "-1d"
|
|
timeframe = "-1d"
|
|
|
|
#currently the only possible value
|
|
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
|
|
|
|
}
|
|
|
|
output "TP_Mobile_Login_metric" {
|
|
value = module.TP_Mobile_Login.metric_expression
|
|
} |