You can use the Get Queue Metrics task to retrieve the metrics for a specific queue, channel, attributes, and priority. The Get Queue Metrics task creates a snapshot of queue metrics based on the current queue and attributes, and stores these metrics as task result variables in the workflow cache for use in conditional or assignment expressions.
The Get Queue Metrics task contains two default, read-only outputs:
You can use the Get Queue Metrics task to create additional outputs with conditions using metrics values. When you create new outputs, Orchestration adds the outputs above the default ones. You can rearrange the output order as required.
When you create multiple output conditions, if you enter an invalid expression in the conditional logic of any output condition, Orchestration skips that output condition and evaluates the next one in the list.
You can also assign variables to the Get Queue Metrics task. The task stores the metrics in the success result variables of the current task at the following path:
The Get Queue Metrics task also stores the metrics in result variables, and hence, the metrics are available in the expressions of the next task in the workflow.
You can use the Result Mapping section of the Get Queue Metrics task to assign existing cache variables, create new cache variables, or change the properties of the next task.