alarm not getting closed when google alert gets cleared
search cancel

alarm not getting closed when google alert gets cleared

book

Article ID: 432610

calendar_today

Updated On:

Products

DX SaaS

Issue/Introduction

alarm in the Dx O2 not getting closed when google alert gets cleared. 

Resolution

Upgraded the restmon schema resolved this issue.

updated schema to push NEW and CLOSED instead of new and closed.

.

.

    "alarms": [
      {
        "xml_ns": "",
        "url": "",
        "group": "Alerts",
        "streaming": "yes",
        "attributes": {
          "oi": {
            "status": "#(function() {var data=[]; if(root.incident.state=='closed') { data.push('CLOSED');} else { data.push('NEW');} return data;})();",
            "timestamp": "%timestamp",

.

.

.

Now when the google alert is cleared on the google side, the AIOPs alarm also gets closed.