This process allows you to pass on only those JSON records that breach a user-defined numeric threshold. You can delay sending continual threshold breaches for a number of seconds by setting an optional parameter to a value greater than zero.
If a JSON record without the delay option breaches the threshold described in these parameters, it is passed to the next node in the pipeline. If not, it is not passed on.
If a JSON record with the delay option breaches the threshold described in these parameters it is passed to the next node in the pipeline after that delay time, if the threshold is breached. Further breaches are passed on immediately until the threshold is no longer breached. If a value does not breach the threshold, it is not passed on.
If a JSON record does not contain the key set in PropertyName, the record will not be passed on. A warning will be written to the user log file.
- To add JSON Threshold Evaluator, click JSON Threshold Evaluator in Add Process window. The canvas updates immediately. The orange icon identifies that it is not valid, or not complete. The green ‘check’ icon is no longer present against the Target. This identifies that the pipeline is not complete, or not correct.Figure 1. Add JSON Threshold Evaluator
- Complete these fields for a JSON Threshold Evaluator in the bottom panel of the canvas.
Field
Description
Name
Name for the process. The character limit is from 1 to 50. Description
Short description about the JSON Threshold Evaluator. This will be visible on the canvas. The character limit is 1 to 200. JSON key Specify the JSON key. The character limit is from 1 to 50. Send record when the value of key is Choose the type of key from the drop-down. The default key is >. Threshold value Specify a number to compare against a JSON key's value. Delay the sending of records breaching the threshold for If this field selected, then the sending of records will be delayed. This field is unchecked by default. seconds Select from the options in the drop-down. The default value is 300. Note: This field is enabled only when Delay the sending of records breaching the threshold for Checked.Example of completed JSON Threshold Evaluator:Figure 2. Completed JSON Threshold EvaluatorTo configure JSON Threshold Evaluator, see Configuring JSON Threshold Evaluator.