hawkular

Hawkular resolving "Missing" triggers


I am new to Hawkular and I have created a trigger for alert when a device did not communicate with me for a given time period (10s for testing).

        "trigger": {
            "id": "YYY,
            "name": "My trigger",
            "description": "",
            "type": "GROUP",
            "firingMatch": "ANY",
            "autoResolve": true,
            "autoResolveAlerts": true,
            "enabled": true
        },
        "conditions": [{
            "triggerMode": "FIRING",
            "type": "MISSING",
            "dataId": "XXX",
            "interval": 10000
        }]

Now I want to resolve any such alerts when the device start communicating. Thanks


Solution

  • Fixed with comment by Lucas Ponce

    "trigger": {
        "id": "YYY",
        "name": "My trigger",
        "description": "",
        "type": "GROUP",
        "firingMatch": "ANY",
        "autoResolve": true,
        "autoResolveAlerts": true,
        "enabled": true
    },
    "conditions": [{
            "triggerMode": "FIRING",
            "type": "MISSING",
            "dataId": "XXX",
            "interval": 10000
        },
        {
            "triggerMode": "AUTORESOLVE",
            "type": "AVAILABILITY",
            "dataId": "Collar_UIDHEX",
            "operator": "UP"
        }
    ]