package Ġcom . oc ad ote ch nology . new relic . alerts configur ator . dsl . configuration Ċ Ċ import Ġcom . oc ad ote ch nology . new relic . alerts configur ator . configuration . ApplicationConfiguration Ċ import Ġcom . oc ad ote ch nology . new relic . alerts configur ator . dsl . New Rel ic Configuration Marker Ċ Ċ @ New Rel ic Configuration Marker Ċ class ĠApplication Configuration Dsl Ġ{ ĊĠĠĠ Ġvar Ġapplication Name : ĠString Ġ= Ġ"" ĊĠĠĠ Ġvar Ġapp Ap dex Threshold : ĠFloat Ġ= Ġ 0 . 0 f ĊĠĠĠ Ġvar Ġend User Ap dex Threshold : ĠFloat Ġ= Ġ 0 . 0 f ĊĠĠĠ Ġvar Ġenable Real User Monitoring : ĠBoolean Ġ= Ġfalse Ċ } Ċ Ċ fun Ġapplication Configuration ( block : ĠApplication Configuration Dsl . () Ġ-> ĠUnit ): ĠApplication Configuration Ġ{ ĊĠĠĠ Ġval Ġd sl Ġ= ĠApplication Configuration Dsl () ĊĠĠĠ Ġd sl . block () ĊĊĠĠĠ Ġreturn ĠApplication Configuration . builder () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. application Name ( dsl . application Name ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. app Ap dex Threshold ( dsl . app Ap dex Threshold ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. end User Ap dex Threshold ( dsl . end User Ap dex Threshold ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. enable Real User Monitoring ( dsl . enable Real User Monitoring ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () Ċ } Ċ Ċ @ New Rel ic Configuration Marker Ċ class ĠApplication Configurations Ġ{ ĊĠĠĠ Ġinternal Ġval Ġapplications : Ġ ĠMutable List < ApplicationConfiguration > Ġ= Ġmutable ListOf () ĊĊĠĠĠ Ġfun Ġapplication ( block : ĠApplication Configuration Dsl . () Ġ-> ĠUnit ) Ġ= Ġapplications . add ( application Configuration ( block )) ĊĠĠĠ Ġoperator Ġfun ĠApplication Configuration . unary Plus () Ġ= Ġapplications . add ( this ) Ċ } Ċ