An Example of customized restmon schema
book
Article ID: 404175
calendar_today
Updated On:
Feedback
Subscribe
Products
DX APM SaaS
DX Application Performance Management
DX OI SaaS
DX Operational Intelligence
DX Operational Observability
DX SaaS
Show More
Show Less
Issue/Introduction
An example of rest mon schema where condition criteria has been used in status field .
Resolution
This is an example of customized restmon schema , please contact Broadcom support for further assistance along with the restmon schema log in debug mode .
{ "Test-schema-alerts": { "definition": { "uploadedBy": "TENANT", "name": "Test-schema-alerts" }, "urls": [], "topology": [], "alarms": [ { "group": "alerts", "streaming": "yes", "attributes": { "oi": { "startTime": "$.alerts[*].startsAt", "timestamp": "%timestamp", "status": "#(function() {var data=[];for (var i=0;i<root.alerts.length;i++){if(root.alerts[i].status=='resolved') {data.push('CLOSED');}else{data.push('NEW');}}return(data);})();", "host": "$.alerts[*].labels.service", "ip": "", "product": "Test", "product_version": "latest", "summary": "$.alerts[*].annotations.summary", "severity": "$.alerts[*].labels.severity", "severity_conversion": "info:Information,warning:Warning,critical:Critical,fatal:Critical,Default:", "configuration_item_type": "Test-telemetry", "metric_name": "$.groupLabels.alertname", "metric_type": "Application", "ci_unique_id": "$.alerts[*].fingerprint", "message": "$.alerts[*].annotations.description", "alarmType": "Application", "alarm_unique_id": "$.alerts[*].fingerprint", "alarmURL": "$.alerts[*].generatorURL", "tags": [ "Test", "$.groupLabels.alertname", "$.groupLabels.service", "$.groupLabels.environment_type", "$.groupLabels.namespace" ] } }, "fieldId": "XXXXXX1234" } ], "inventory": [], "metrics": [], "calculated_methods": [], "calculated_metrics": [], "groups": [], "change_events": [] }}
Feedback
thumb_up
Yes
thumb_down
No