Skip to content

CONSOLIDATED - MINIMUM FEEDS

Description

The MINIMUM_FEEDS consolidated validator is the minimum VALID dataPoints needed for consolidation.


Config Location

To configure the MINIMUM FEEDS validator, you need to define it within the consDPValidators section of your data point configuration within the schema. This involves specifying the validator name and entity.


Supported Data Types

  • BLOB
  • Boolean
  • Json
  • String
  • Decimal
  • Double
  • Integer

Config Requirements

Config ({}) options are required for the MINIMUM RATES validator. If no configuration is provided or if the configuration is improperly set up, a block violation will be thrown. For more information on Apiro violations and their appearance in the Apiro UI or logs, refer to the violations section.


Example Config

Below is an example of how to configure the MINIMUM FEEDS validator in XML format. This example demonstrates a validator that checks if at least three valid feeds were used in the aggregation of the "NAME" data point. If fewer than three valid data points are present, the data block will be flagged as invalid.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<dataPoint name="NAME" dataType="STRING">
    <consDPValidators>
        <consDPValidator name="MIN_FEEDS_FOR_NAME" entity="MINIMUM_FEEDS">
            <config>
                <![CDATA[
                    {
                        "minFeeds" : 3
                    }
                ]]>
            </config>
        </consDPValidator>
    </consDPValidators>
</dataPoint>

Example Result

Upon successful configuration and execution, the MINIMUM RATES validator will check the number of valid raw rates used in the aggregation of the "NAME" data point. If the number of valid rates is less than the specified minimum, a violation will be triggered, indicating that the aggregated data does not meet the criteria for acceptability.


Config Parameters

name acceptable values comment
minFeeds An integer representing the minimum number of valid raw feeds required. This defines the minimum number of valid feeds for the aggregation.

Common Mistakes

  • Ensure that the validator name and entity are correctly defined in the configuration to ensure that the validator is correctly identified and applied during the data processing pipeline.
  • Verify that the configuration parameters within the <config> tag are correctly written and match the expected format and values.
  • Remember that the configuration for the MINIMUM FEEDS validator is required. If no configuration, or improper configuration is provided then a block violation will be thrown.