Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Property

UI Field Name

Description

Specifications

Required

Anchor
logicalOperator - UMF
logicalOperator - UMF
logicalOperator

Match All

Match Any


Valid values:

  • As String = And (case insensitive), and As Value = 1

  • As String = Or (case insensitive), As Value = 2

Default is And (1).

N

Anchor
criteria - UMF
criteria - UMF
criteria


Criteria list.

An element in the list is of type criterion or criteria.

The following example represent a criteria list consisted of two elements:

  • One element of type criterion.
  • One element of type criteria.
Note
titleNote

In JSON, the two elements are wrapped in the “criteria“:[] property.

However, in XML, there is no additional <criteria></criteria> tag to wrap the two elements.


XML

code
Expand
titleXML
Code Block
languagetext
<criterion>
    <name>int</name>
    <operator>EQUALS</operator>
    <value>5</value>
</criterion>
<criteria>
    <criterion>
        <name>ifield</name>
        <operator>IS_NULL</operator>
    </criterion>
    <criterion>
        <name>bool</name>
        <operator>EQUALS</operator>
        <value>true</value>
    </criterion>
    <logicalOperator>And</logicalOperator>
</criteria>


JSON

<criterion> <name>int</name> <operator>EQUALS</operator> <value>5</value> </criterion> <criteria> <criterion> <name>ifield</name> <operator>IS_NULL</operator> </criterion> <criterion> <name>bool</name> <operator>EQUALS</operator> <value>true</value> </criterion> <logicalOperator>And</logicalOperator> </criteria>
languagetext
Expand
titleJSON
Code Block
languagetext
"criteria": [
    {
        "type": "criterion",
        "name": "int",
        "operator": "EQUALS",
        "value": "5"
    },
    {
        "type": "criteria",
        "criteria": [
            {
                "type": "criterion",
                "name": "ifield",
                "operator": "IS_NULL"
            },
            {
                "type": "criterion",
                "name": "bool",
                "operator": "EQUALS",
                "value": "true"
            }
        ],
        "logicalOperator": "And"
    }
]

N

Criteria Properties

Property

UI Field Name

Description

Specifications

Required

Anchor
type - UMF
type - UMF
type



For JSON only.

Valid values:

  • As String = criterion

  • As String = criteria

Default is criterion.

N

Anchor
criterion - UMF
criterion - UMF
criterion


A single condition composed of name, operator, value(s).

For example:

“attribute1 EQUALS value1“ where attribute1 is a attribute of the selected Universal Event Template.

XML

Code Block
languagetext
<criterion>
    <name>int</name>
    <operator>EQUALS</operator>
    <value>value1</value>
</criterion>


JSON

Code Block
languagetext
    {
        "type": "criterion",
        "name": "attribute1",
        "operator": "EQUALS",
        "value": "value1"
    },
N

Anchor
criteria - UMF
criteria - UMF
criteria


Composed of multiple elements and a logical operator And or Or.

An element can be a criterion or a inner criteria.

XML

Code Block
languagetext
<criteria>
    <criterion>
        <name>ifield</name>
        <operator>IS_NULL</operator>
    </criterion>
    <criterion>
        <name>bool</name>
        <operator>EQUALS</operator>
        <value>true</value>
    </criterion>
    <logicalOperator>And</logicalOperator>
</criteria>


JSON

Code Block
languagetext
{
    "type": "criteria",
    "criteria": [
        {
            "type": "criterion",
            "name": "ifield",
            "operator": "IS_NULL"
        },
        {
            "type": "criterion",
            "name": "bool",
            "operator": "EQUALS",
            "value": "true"
        }
    ],
    "logicalOperator": "And"
}

...