Adding simplified SLOs for CN

feature/fix-tf
Patryk Gudalewicz 2023-04-05 21:25:47 +02:00
parent 40397c89af
commit 3d52379f97
30 changed files with 805 additions and 0 deletions

View File

@ -0,0 +1,24 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Mobile_CD_Store" {
name = "Simplified_TP_Mobile_CD_Store"
description = "Simplified SLOs"
#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(
~"StoreOfferResourceV6 - am-store - prod~",
~"CdStoreOfferResource - am-store - prod~"
))"))))):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
}

View File

@ -0,0 +1,24 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Mobile_DigitalKey" {
name = "Simplified_TP_Mobile_DigitalKey"
description = "Simplified SLOs"
#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(
~"TrackApi - smc - PROD~",
~"digital-key-composite-service - PROD~"
))"))))):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
}

View File

@ -0,0 +1,25 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Mobile_Login" {
name = "Simplified_TP_Mobile_Login"
description = "Simplified SLOs"
#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-user-composite-service - PROD~",
~"btc-cn-connected-oauth-service - PROD~"
)
)"))))):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
}

View File

@ -0,0 +1,27 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Mobile_Mapping" {
name = "Simplified_TP_Mobile_Mapping"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.keyRequest.errors.server.rate:filter(
and(or(in("dt.entity.service_method",
entitySelector(
"type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"btc-user-composite-service - PROD~",
~"vehicle-mapping-composite-service - PROD~"
))"))))):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
}

View File

@ -0,0 +1,24 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Mobile_PersonalFavorites" {
name = "Simplified_TP_Mobile_PersonalFavorites"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"btc-destination-composite-service - PROD~"
))"))))):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
}

View File

@ -0,0 +1,24 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Mobile_RSU" {
name = "Simplified_TP_Mobile_RSU"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"RemoteSoftwareUpgrade.WebApp - PROD~"
))"))))):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
}

View File

@ -0,0 +1,25 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Mobile_Remote360" {
name = "Simplified_TP_Mobile_Remote360"
description = "Simplified SLOs"
#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(
~"remote-360-composite-service - PROD~"
)
)"))))):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
}

View File

@ -0,0 +1,24 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Mobile_RemoteServices" {
name = "Simplified_TP_Mobile_RemoteServices"
description = "Simplified SLOs"
#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-vehicle-remote-commands-composite-service - PROD~"
)
)"))))):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
}

View File

@ -0,0 +1,22 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Mobile_Send2VehicleLegacy" {
name = "Simplified_TP_Mobile_Send2VehicleLegacy"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.errors.server.rate:filter(and(or(in("dt.entity.service",
entitySelector("type(service),
entityName.in(
~"LegacyPoiApi - msgsvc - prod~")"))))):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
}

View File

@ -0,0 +1,23 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Mobile_Send2VehicleMGU" {
name = "Simplified_TP_Mobile_Send2VehicleMGU"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"TripService - PROD~"
))"))))):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
}

View File

@ -0,0 +1,25 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Mobile_VehicleData" {
name = "Simplified_TP_Mobile_VehicleData"
description = "Simplified SLOs"
#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(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"btc-vehicle-composite-service - PROD~",
~"VehicleService - PROD~"
))")))):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
}

View File

@ -0,0 +1,24 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Mobile_VehicleList" {
name = "Simplified_TP_Mobile_VehicleList"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",
entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"btc-vehicle-composite-service - PROD~"
))"))))):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
}

View File

@ -0,0 +1,25 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_AppDistribution" {
name = "Simplified_TP_Vehicle_AppDistribution"
description = "Simplified SLOs"
#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(
~"AppsServiceV1 - id5-app - prod~",
~"AppVersionsResource - app-distribution - prod~",
~"ReleaseNotesResource - app-distribution - prod~"
))"))))):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
}

View File

@ -0,0 +1,26 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_CD_Store" {
name = "Simplified_TP_Vehicle_CD_Store"
description = "Simplified SLOs"
#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(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"StoreOfferResourceV6 - am-store - prod~",
~"CdStoreOfferResource - am-store - prod~"
))")))):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
}

View File

@ -0,0 +1,36 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_ConnectedMusic" {
name = "Simplified_TP_Vehicle_ConnectedMusic"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100) *
(builtin:service.keyRequest.errors.server.successCount:filter(
and(
in(
"dt.entity.service_method"
,entitySelector(
"type(service_method)
,entityName.contains(~"Vehicle_Successful_ResponseCode~")"
)))):splitBy()
/
(builtin:service.keyRequest.count.server:filter(
and(
in(
"dt.entity.service_method"
,entitySelector(
"type(service_method)
,entityName.in(~"Vehicle_Successful_ResponseCode~",~"Vehicle_Failed_ResponseCode~")"
)))):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
}

View File

@ -0,0 +1,23 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_FTS" {
name = "Simplified_TP_Vehicle_FTS"
description = "Simplified SLOs"
#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(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"POIs~"
))")))):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
}

View File

@ -0,0 +1,25 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_Login" {
name = "Simplified_TP_Vehicle_Login"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"TokenResource - cac - prod~",
~"CredentialInfoResource - cac - prod~"
))"))))):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
}

View File

@ -0,0 +1,25 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_Vehicle_Personalization" {
name = "Simplified_TP_Vehicle_Personalization"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"Perseus (/service) - cub-personalization - prod~"
))"))))):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
}

View File

@ -0,0 +1,29 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_Podcast" {
name = "Simplified_TP_Vehicle_Podcast"
description = "Simplified SLOs"
#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(
~"XimalayaContentApi - avs~",
~"XimalayaLoginApi - avs~",
~"XimalayaOpenContentApi - avs~",
~"XimalayaPersonalApi - avs~",
~"XimalayaSearchApi - avs~"
))"))))):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
}

View File

@ -0,0 +1,31 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_Provisioning" {
name = "Simplified_TP_Vehicle_Provisioning"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"WorkshopProvisioningService - vps-prov - cn~",
~"MQSession$FacadeMessageListener - vps-prov - cn~",
~"MQSession$FacadeMessageListener - vps-trigger - cn~",
~"VpsJoynrApi - vps-prov - cn~",
~"MQSession$FacadeMessageListener - noptrigger - prod~",
~"ProvisioningService - nopprov - prod~",
~"NOP-Provisioning (/nop-prov) - nopprov - prod~"
))"))))):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
}

View File

@ -0,0 +1,28 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_Vehicle_RSU" {
name = "Simplified_TP_Vehicle_RSU"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"UpdateRequestResource - rsu - prod~",
~"UpdateManifestResource - rsu - prod~",
~"SendReportResource - rsu - prod~",
~"MessageEndpointProxy - rsu - prod~"
))"))))):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
}

View File

@ -0,0 +1,22 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_Vehicle_RTTI" {
name = "Simplified_TP_Vehicle_RTTI"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.errors.fivexx.rate:filter(and(or(in("dt.entity.service",entitySelector("type(service),
entityName.equals(
~"Netty on 0.0.0.0:8080 - rtti - prod~"
)"))))):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
}

View File

@ -0,0 +1,27 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_SmartParking" {
name = "Simplified_TP_Vehicle_SmartParking"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(in("dt.entity.service_method",entitySelector("type(service_method),
entityName.in(
~"/sppid7/parkingfinder/v1/EstimatedTimeArrival/getETA~",
~"/parkingfinder/v2.0/getParkingLots~"
)")))):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
}

View File

@ -0,0 +1,29 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_SmartRefuel" {
name = "Simplified_TP_Vehicle_SmartRefuel"
description = "Simplified SLOs"
#entity selector object
filter = "type(\"SERVICE_METHOD\")"
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.keyRequest.errors.server.rate:filter(
and(or(in(
"dt.entity.service_method",
entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.contains(~"omcsmtrflce20q3~"),mzName(~"CN_OMC_PROD~"
))"))))):splitBy():sum:auto:sort(value(sum,descending)))
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
}

View File

@ -0,0 +1,26 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_Vehicle_Speech" {
name = "Simplified_TP_Vehicle_Speech"
description = "Simplified SLOs"
#entity selector object
filter = ""
# Error Code 502 in HVD service will be excluded from the SLO.
# Therefore the metric server side errors was used for calculation.
metric_expression = <<-EOT
(100)-(builtin:service.keyRequest.errors.server.rate:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"hvd (/hvd) - ipa-backend-cn - prod~",
~"server (/htts) - ipa-backend-cn - prod~"
))"))))):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
}

View File

@ -0,0 +1,27 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_TMPP" {
name = "Simplified_TP_Vehicle_TMPP"
description = "Simplified SLOs"
#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(
~"CarRegistrationApi - iis-cc-cn - prod~",
~"ChannelAdminApi - iis-cc-cn - prod~",
~"ManifestCarApi - iis-cc-cn - prod~",
~"ManifestDomainApi - iis-cc-cn - prod~"
))"))))):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
}

View File

@ -0,0 +1,49 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_Teleservices" {
name = "Simplified_TP_Vehicle_Teleservices"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.errors.total.rate:filter(and(in("dt.entity.service",entitySelector("type(service),
entityName.in(
~"ifs-001 (Kinesis) CCM - teleservices - prod~",
~"ifs-001 (Kinesis) TyreWsIncoming - IN - teleservices - prod~",
~"ifs-001 (Kinesis) TyreDiIncoming - IN - teleservices - prod~",
~"ifs-003 (JOYNR) triggerPdmContainerUpdate/notifyPdmContainerStatus - IN/OUT - teleservices - prod~",
~"ifs-003 (JOYNR) triggerWhitelistUpdate/notifyWhitelistStatus - IN/OUT - wlupdater - prod~",
~"ifs-003 (JOYNR) triggerStandardOdfUpdate/notifyOdfStatus - IN/OUT - wlupdater - prod~",
~"ifs-003 (JOYNR) start/stop/notifyTemporaryOdfStatus - INT/OUT - wlupdater - prod~",
~"ifs-007 (JOYNR) requestPdmResult/notifyPdmResult - IN/OUT - teleservices - prod~",
~"ifs-002 (JOYNR) request/notifyKeyData - IN/OUT - teleservices - prod~",
~"ifs-002 (JOYNR) notifyRSUStatus - IN - teleservices - prod~",
~"VDLM_scallservice - VDLM_scallservice - ifs-002 (JOYNR) notifyMaintenanceStatus - IN - prod~",
~"VDLM_scallservice - VDLM_scallservice - ifs-002 (JOYNR) requestMaintenanceStatus/confirmMaintenanceStatus - OUT - prod~",
~"ifs-005 (JOYNR) notify/confirmBatteryStatus - IN/OUT - teleservices - prod~",
~"ifs-007 (JOYNR) requestDiagResult/notifyDiagResult - IN/OUT - teleservices - prod~",
~"ifs-005 (SQS) TscsCallTopic - IN - teleservices - prod~",
~"ifs-006 (SQS) TsddCallTopic - IN - teleservices - prod~",
~"ifs-010 (SQS) RtcadCallTopic - IN - teleservices - prod~",
~"VDLM_seam - ifs-004 (SQS) ServiceDemand - IN - teleservices - prod~",
~"VDLM_seam - ifs-004 (SQS) ServiceDemand - IN - teleservices - prod~",
~"ifs-003 (MQS) MguItsnIn/Out (ClassificationRequest/Response) - IN/OUT - teleservices - prod~",
~"ifs-003 (MQS) MguItsnIn/Out (DiagnosisRequest/Response) - IN/OUT - teleservices - prod~",
~"ifs-005 (MQS) BCallHandlerIstaIn/Out - IN/OUT - teleservices - prod~",
~"ifs-001 (SQS) BCallIn/Out - IN/OUT - teleservices - prod~",
~"VDLM_ts-asc - ifs-001 (SQS) AscIn/Out - IN/OUT - prod~",
~"InternalApiResourceV2 - teleservices - prod~",
~"VDLM_rtchandler - ifs-010 (SQS) RtcTeleXIn/Out - IN/OUT - prod~",
~"ckf-cn.bmwgroup.net~"
)")))):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
}

View File

@ -0,0 +1,25 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_TmallGenie" {
name = "Simplified_TP_Vehicle_TmallGenie"
description = "Simplified SLOs"
#entity selector object
filter = ""
#metric expression of the calculation as done in data explorer ui
metric_expression = <<-EOT
(100)-(builtin:service.errors.server.rate:filter(in("dt.entity.service",
entitySelector("type(~"SERVICE~"),entityName.in(
~"cn-tmall-genie-composite-service - PROD~",
~"hvd (/hvd) - ipa-backend-cn - prod~"
)"))):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
}

View File

@ -0,0 +1,32 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_eCall" {
name = "Simplified_TP_Vehicle_eCall"
description = "Simplified SLOs"
#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(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"VoiceV2Resource - ngtp-cs - prod~",
~"CallRoutingResource - crs - prod~",
~"NgtpUplinkEventResource - ngtp-cs - prod~",
~"V1Api - PROD~",
~"CallMgmtApiResourceV1 - b*vvoice - prod~",
~"ISmsGatewayBF - ecs - prod~",
~"EcsApiController - PROD~",
~"VehicleVinV2BF - ecs - prod~"
))")))):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
}

View File

@ -0,0 +1,29 @@
#SIMPLIFIED
resource "dynatrace_slo" "Simplified_TP_Vehicle_xCall" {
name = "Simplified_TP_Vehicle_xCall"
description = "Simplified SLOs"
#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(in("dt.entity.service_method",entitySelector("type(service_method),
fromRelationship.isServiceMethodOfService(
type(~"SERVICE~"),entityName.in(
~"VoiceV2Resource - ngtp-cs - prod~",
~"CallRoutingResource - crs - prod~",
~"NgtpUplinkEventResource - ngtp-cs - prod~",
~"V1Api - PROD~",
~"XcsApiController - PROD~",
~"CallMgmtApiResourceV1 - b*vvoice - prod~"
))")))):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
}