Environment Tag added to SLO
parent
3a92276842
commit
e8192a1720
|
|
@ -1,9 +1,9 @@
|
||||||
module ICES_AmbientMusicAPI_getAudio_EMEA_PROD {
|
module ICES_AmbientMusicAPI_getAudio {
|
||||||
|
|
||||||
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
|
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
|
||||||
|
|
||||||
|
|
||||||
name = "ICES - AmbientMusicAPI - getAudio - EMEA - PROD"
|
name = "ICES - AmbientMusicAPI - getAudio"
|
||||||
description = "AmbientMusicAPI_getAudio_success_rate"
|
description = "AmbientMusicAPI_getAudio_success_rate"
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -17,7 +17,8 @@ module ICES_AmbientMusicAPI_getAudio_EMEA_PROD {
|
||||||
fromRelationship.isServiceMethodOfService(
|
fromRelationship.isServiceMethodOfService(
|
||||||
type(~"SERVICE~"),entityName.in(
|
type(~"SERVICE~"),entityName.in(
|
||||||
~"AmbientMusicApiImpl~"
|
~"AmbientMusicApiImpl~"
|
||||||
)
|
),
|
||||||
|
tag(~"Environment:PROD~")
|
||||||
)
|
)
|
||||||
,entityName.in(
|
,entityName.in(
|
||||||
~"getAudio~"
|
~"getAudio~"
|
||||||
|
|
@ -27,7 +28,8 @@ module ICES_AmbientMusicAPI_getAudio_EMEA_PROD {
|
||||||
fromRelationship.isServiceMethodOfService(
|
fromRelationship.isServiceMethodOfService(
|
||||||
type(~"SERVICE~"),entityName.in(
|
type(~"SERVICE~"),entityName.in(
|
||||||
~"AmbientMusicApiImpl~"
|
~"AmbientMusicApiImpl~"
|
||||||
)
|
),
|
||||||
|
tag(~"Environment:PROD~")
|
||||||
)
|
)
|
||||||
,entityName.in(
|
,entityName.in(
|
||||||
~"getAudio~"
|
~"getAudio~"
|
||||||
|
|
@ -0,0 +1,50 @@
|
||||||
|
module ICES_AmbientMusicAPI_getAudio {
|
||||||
|
|
||||||
|
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
|
||||||
|
|
||||||
|
|
||||||
|
name = "ICES - AmbientMusicAPI - getAudio"
|
||||||
|
description = "AmbientMusicAPI_getAudio_success_rate"
|
||||||
|
|
||||||
|
|
||||||
|
#entity selector object
|
||||||
|
filter = ""
|
||||||
|
|
||||||
|
#metric expression of the calculation as done in data explorer ui
|
||||||
|
metric_expression = <<-EOT
|
||||||
|
|
||||||
|
(100)*((1)-(builtin:service.keyRequest.errors.fivexx.count:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
|
||||||
|
fromRelationship.isServiceMethodOfService(
|
||||||
|
type(~"SERVICE~"),entityName.in(
|
||||||
|
~"AmbientMusicApiImpl~"
|
||||||
|
),
|
||||||
|
tag(~"Environment:PROD~")
|
||||||
|
)
|
||||||
|
,entityName.in(
|
||||||
|
~"getAudio~"
|
||||||
|
)"))))):splitBy())
|
||||||
|
/
|
||||||
|
(builtin:service.keyRequest.count.server:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
|
||||||
|
fromRelationship.isServiceMethodOfService(
|
||||||
|
type(~"SERVICE~"),entityName.in(
|
||||||
|
~"AmbientMusicApiImpl~"
|
||||||
|
),
|
||||||
|
tag(~"Environment:PROD~")
|
||||||
|
)
|
||||||
|
,entityName.in(
|
||||||
|
~"getAudio~"
|
||||||
|
)"))))):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
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,50 @@
|
||||||
|
module ICES_AmbientMusicAPI_getAudio {
|
||||||
|
|
||||||
|
source = "../../_dynatrace-base-modules/dynatrace-service-level-objective"
|
||||||
|
|
||||||
|
|
||||||
|
name = "ICES - AmbientMusicAPI - getAudio"
|
||||||
|
description = "AmbientMusicAPI_getAudio_success_rate"
|
||||||
|
|
||||||
|
|
||||||
|
#entity selector object
|
||||||
|
filter = ""
|
||||||
|
|
||||||
|
#metric expression of the calculation as done in data explorer ui
|
||||||
|
metric_expression = <<-EOT
|
||||||
|
|
||||||
|
(100)*((1)-(builtin:service.keyRequest.errors.fivexx.count:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
|
||||||
|
fromRelationship.isServiceMethodOfService(
|
||||||
|
type(~"SERVICE~"),entityName.in(
|
||||||
|
~"AmbientMusicApiImpl~"
|
||||||
|
),
|
||||||
|
tag(~"Environment:PROD~")
|
||||||
|
)
|
||||||
|
,entityName.in(
|
||||||
|
~"getAudio~"
|
||||||
|
)"))))):splitBy())
|
||||||
|
/
|
||||||
|
(builtin:service.keyRequest.count.server:filter(and(or(in("dt.entity.service_method",entitySelector("type(service_method),
|
||||||
|
fromRelationship.isServiceMethodOfService(
|
||||||
|
type(~"SERVICE~"),entityName.in(
|
||||||
|
~"AmbientMusicApiImpl~"
|
||||||
|
),
|
||||||
|
tag(~"Environment:PROD~")
|
||||||
|
)
|
||||||
|
,entityName.in(
|
||||||
|
~"getAudio~"
|
||||||
|
)"))))):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
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue