Skip to content

What is a data block processor?



data block processors

Data block processors are used to trigger an event or handle the data from an entire data block rather than a single data point. data block processors are defined within schema config, see schemas for more details. They perform their operations during the consolidation pipeline phase.

Below is an example of a FIRE_ALERT data block processor:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<schemaAppliedProcessors>
    <dataBlockProcessors>
        <dataBlockProcessor name="FIRE_TEST_ALERT2" entity="FIRE_ALERT">
            <config>
                <![CDATA[
                    {
                        "description":"this is a another test alert",
                        "alertLevel":20
                    }
                ]]>
            </config>
        </dataBlockProcessor>
    </dataBlockProcessors>
</schemaAppliedProcessors>

This FIRE ALERT processor will send an Apiro system alert of alert level 20.

NOTE: anywhere where {} with empty "{}" brackets appear, assume that config is optional and can be ignored in the majority of cases. The same applies where no element is shown in configuration.

Here are the existing consolidated data block processors: