MQSeries_Delayed_Message_Group
The MQSeries_Delayed_Message_Group situation determines whether the value of the message statistics oldest message time attribute exceeds a given threshold for a specific queue. This query can only include an individual queue name.
In the following example, a queue named TEST.QUEUE is monitored for messages older than 300.00 seconds. Note that the Latency_Threshold_Seconds attribute is not specified since the query tests for Oldest_Message_Seconds greater than a certain value. As a result, the Latency_Threshold_Seconds attribute uses 300.00 as the default value.
IF VALUE Message_Statistics.Queue Name EQ TEST.QUEUE
AND VALUE Message_Statistics.Grouping Mechanism EQ Correlation_ID
AND VALUE Message_Statistics.Oldest Msg(Secs) GT 300.00
Many of the message statistics are calculated using the put-date-and-time of the messages in the queue. If the queue has messages with put-date-and-times that cannot reflect accurately when the messages are put into the input queue, then the statistics are correspondingly inaccurate. Put-date-and-time is not accurate when the origin context is preserved or set for a message when put by an application to the queue. This commonly occurs when an application is a message mover that moves messages from one queue to another, or when any application passes or sets origin context for a message.