package Ġcom . oc ad ote ch nology . new relic . alerts configur ator . dsl . configuration . condition Ċ Ċ import Ġcom . oc ad ote ch nology . new relic . alerts configur ator . configuration . condition . Ap m External Service Condition Ċ import Ġcom . oc ad ote ch nology . new relic . alerts configur ator . configuration . condition . terms . Terms Configuration Ċ import Ġcom . oc ad ote ch nology . new relic . alerts configur ator . dsl . New Rel ic Configuration Marker Ċ import Ġcom . oc ad ote ch nology . new relic . alerts configur ator . dsl . configuration . condition . terms . Term Configurations Ċ Ċ @ New Rel ic Configuration Marker Ċ class ĠAp m External Service Condition Dsl Ġ{ ĊĠĠĠ Ġvar Ġcondition Name : ĠString ? Ġ= Ġnull ĊĠĠĠ Ġvar Ġenabled : ĠBoolean Ġ= Ġtrue ĊĠĠĠ Ġvar Ġapplications : ĠCollection < String > Ġ= Ġmutable ListOf () ĊĠĠĠ Ġvar Ġexternal Service Url : ĠString ? Ġ= Ġnull ĊĠĠĠ Ġvar Ġmetric : ĠAp m External Service Condition . Metric ? Ġ= Ġnull ĊĠĠĠ Ġvar Ġrun Book Url : ĠString ? Ġ= Ġnull ĊĠĠĠ Ġinternal Ġval Ġterms : ĠMutable List < Terms Configuration > Ġ= Ġmutable ListOf () ĊĊĠĠĠ Ġfun Ġterms ( block : ĠTerm Configurations . () Ġ-> ĠUnit ) Ġ= Ġterms . addAll ( Term Configurations (). apply ( block ). terms ) Ċ } Ċ Ċ fun Ġap m External Service Condition ( block : ĠAp m External Service Condition Dsl . () Ġ-> ĠUnit ): ĠAp m External Service Condition Ġ{ ĊĠĠĠ Ġval Ġd sl Ġ= ĠAp m External Service Condition Dsl () ĊĠĠĠ Ġd sl . block () ĊĊĠĠĠ Ġreturn ĠAp m External Service Condition . builder () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. condition Name ( require NotNull ( dsl . condition Name ) Ġ{ Ġ" Ap m Ġexternal Ġservice Ġcondition Ġname Ġcannot Ġbe Ġnull " Ġ}) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. enabled ( dsl . enabled ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. applications ( dsl . applications ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. external Service Url ( require NotNull ( dsl . external Service Url ) Ġ{ Ġ" Ap m Ġexternal Ġservice Ġcondition Ġurl Ġcannot Ġbe Ġnull " Ġ}) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. metric ( require NotNull ( dsl . metric ) Ġ{ Ġ" Ap m Ġexternal Ġservice Ġcondition Ġmetric Ġcannot Ġbe Ġnull " Ġ}) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. run Book Url ( dsl . run Book Url ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. terms ( dsl . terms ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () Ċ }