adding 2.0 SLO

M_sloFix
rforstner 2022-03-23 15:20:40 +01:00
parent dabd49734a
commit 382a99bf86
11 changed files with 23 additions and 14 deletions

View File

@ -12,6 +12,7 @@ terraform {
region = "eu-central-1" region = "eu-central-1"
dynamodb_table = "coco-dynatrace-tfstate" dynamodb_table = "coco-dynatrace-tfstate"
encrypt = true encrypt = true
skip_credentials_validation = true
} }
} }
@ -22,4 +23,5 @@ variable CN_PROD_API_TOKEN {}
provider "dynatrace" { provider "dynatrace" {
dt_env_url = "${var.CN_PROD_ENV_URL}" dt_env_url = "${var.CN_PROD_ENV_URL}"
dt_api_token = "${var.CN_PROD_API_TOKEN}" dt_api_token = "${var.CN_PROD_API_TOKEN}"
} }

View File

@ -18,12 +18,18 @@ module TP_Mobile_Login {
or( or(
in( in(
"dt.entity.service_method", "dt.entity.service_method",
entitySelector("type(service_method), entitySelector(
fromRelationship.isServiceMethodOfService( "type(service_method),
type(~"SERVICE~"),entityName(~"btc-user-composite-service - PROD~") fromRelationship.isServiceMethodOfService(
) type(~"SERVICE~"),entityName.in
") (~"btc-user-composite-service - PROD~")
) )
,entityName.in(
~"GET /api/v1/presentation/oauth/config~",
~"GET /api/v1/presentation/profile-tab~",
~"POST /api/v1/oauth/token/identifier~"
)")
)
))):splitBy():sum:auto:sort(value(sum,descending)))" ))):splitBy():sum:auto:sort(value(sum,descending)))"
EOT EOT

View File

@ -24,7 +24,7 @@ module TP_Mobile_Mapping {
) )
") ")
) )
))):splitBy():sum:auto:sort(value(sum,descending)))" ))):splitBy():auto:auto:sort(value(sum,descending)))"
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"

View File

@ -24,7 +24,7 @@ module TP_Mobile_PersonalFavorites {
) )
") ")
) )
))):splitBy():sum:auto:sort(value(sum,descending)))" ))):splitBy():auto:auto:sort(value(sum,descending)))"
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"

View File

@ -24,7 +24,7 @@ module TP_Mobile_Remote360 {
) )
") ")
) )
))):splitBy():sum:auto:sort(value(sum,descending)))" ))):splitBy():auto:auto:sort(value(sum,descending)))"
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"

View File

@ -24,7 +24,7 @@ module TP_Mobile_RemoteServices {
) )
") ")
) )
))):splitBy():sum:auto:sort(value(sum,descending)))" ))):splitBy():auto:auto:sort(value(sum,descending)))"
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"

View File

@ -24,7 +24,7 @@ module TP_Mobile_Send2VehicleLegacy {
) )
") ")
) )
))):splitBy():sum:auto:sort(value(sum,descending)))" ))):splitBy():auto:auto:sort(value(sum,descending)))"
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"

View File

@ -24,7 +24,7 @@ module TP_Mobile_Send2VehicleMGU {
) )
") ")
) )
))):splitBy():sum:auto:sort(value(sum,descending)))" ))):splitBy():auto:auto:sort(value(sum,descending)))"
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"

View File

@ -24,7 +24,7 @@ module TP_Mobile_VehicleData {
) )
") ")
) )
))):splitBy():sum:auto:sort(value(sum,descending)))" ))):splitBy():auto:auto:sort(value(sum,descending)))"
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"

View File

@ -24,7 +24,7 @@ module TP_Mobile_VehicleList {
) )
") ")
) )
))):splitBy():sum:auto:sort(value(sum,descending)))" ))):splitBy():auto:auto:sort(value(sum,descending)))"
EOT EOT
#if not set (removed) it's defaulted to "-1d" #if not set (removed) it's defaulted to "-1d"

View File

@ -23,4 +23,5 @@ variable EMEA_PROD_API_TOKEN {}
provider "dynatrace" { provider "dynatrace" {
dt_env_url = "${var.EMEA_PROD_ENV_URL}" dt_env_url = "${var.EMEA_PROD_ENV_URL}"
dt_api_token = "${var.EMEA_PROD_API_TOKEN}" dt_api_token = "${var.EMEA_PROD_API_TOKEN}"
} }