Skip to main content

getPRCDetails

A Workflow Engine function that retrieves the top PRC alert for the trigger Situation and copies a defined set of alert attributes into the workflowContext.prcDetails object. It also supports an optional minimum PRC probability threshold that the alert must meet to be considered. The returned data always includes the rc_probability of the selected alert.

If no PRC alert is available, or if the alert’s PRC score falls below the specified threshold (when provided), the function returns an empty object ({}).

Given the following action configuration:

getPRCdetails.png

The resulting Workflow Context:

{
    "prcDetails": {
        "alert_id": 1530503,
        "description": "Node Down",
        "rc_probability": 99.96995756947285,
        "source": "10.0.0.1"
    }
}

This function is available as a feature of the Add-ons v2.7 download and later.

This function is available for Situation workflows only.

Back to Workflow Engine Functions Reference.

Arguments

Workflow Engine function getPRCDetails takes the following arguments:

Name

Required

Type

Description

alertAttributes

yes

object

Alert details to retrieve for the PRC alert.

minPercent

no

number

Minimum percentage value a retrieved alert must meet to be considered.