coco_terraform_config/EMEA_PROD/slo/TP_Vehicle_eCall.tf

64 lines
2.1 KiB
HCL

module TP_Vehicle_eCall {
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
name = "TP_Vehicle_eCall"
description = "CoCo-QM-Report_Vehicle"
#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~",
~"NgtpApiController - base - prod~",
~"ISmsGatewayBF - ecs - prod~",
~"EcsApiController - base - prod~",
~"VehicleCalledNumberV2BF - ecs - prod~",
~"VehicleVinV2BF - ecs - prod~",
~"ECS - CreateEvent - E2E - ecs - prod~",
~"V1Api - PROD~",
~"CallMgmtApiResourceV1 - b2vvoice - prod~"
)
)
,entityName.in(
~"voiceInitatedCallSync_ECALL~",
~"callReceived~",
~"getRoutingData_ECALL~",
~"notifyCsMessage~",
~"NotifyCallEventCreatedCall_ECALL~",
~"JoynrEventOperations~",
~"message~",
~"setupCall_ECALL~",
~"ecsEventReceived~",
~"createEventByCallednumber~",
~"createEventByvin~",
~"routeCall~"
)")))):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
}