Skip to content
Jesse Crocker edited this page Jun 10, 2016 · 1 revision

Example filtering expressions

Regular expression matching

    "filter": [
        {
            "expression": "match",
            "key": "RSL_TYPE",
            "value": "(NWR|WMA|WPA)"
        }
    ]

Not null checking

    "filter": [
        {
            "expression": "not null",
            "key": "id"
        }
    ]

Exact match

    "filter": [
        {
            "expression": "=",
            "key": "status",
            "value": "open"
        }
    ]

Not matching

    "filter": [
        {
            "expression": "!=",
            "key": "status",
            "value": "dead"
        }
    ]

Multiple fields

    "filterOperator": "and",
    "filter": [
        {
            "expression": "not null",
            "key": "name",
        },
        {
            "expression": "!=",
            "key": "status",
            "value": "dead"
        }
    ]
Clone this wiki locally