Universal Messaging

In UM, I want to monitor the queues and topics and alert when certain threshold level of an connection occurs.

To be able to do this, when number of events exceeds 500, I want to log a message in UM log.

when (myMonitoringQueue.numOfEvents >500) {

Logger.report(“Moniroting Channel Queue exceeded 500 connections”);

}

I am able to do so. But I want to configure the threshold value of 500.

I do not find any syntax to declare integer or string literals and use it in the right side of a when condition in the UM Scripting documentation.

Can somebody who has an idea please suggest.

Optimize for Infra - be used to define KPIs like queue length, threshold etc.