Add filter to the notification URL
search cancel

Add filter to the notification URL

book

Article ID: 395139

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

How to set a Default filter for the Notification view from the report.

Environment

Watch4net|M&R - 7.x

Resolution

Here are the details about custom changes that need to be done in the Notification report.

• Switch to the ‘Edit mode’.
• While editing the Notification report, navigate to tab : Report Details : External
• Append the following parameter at the end of the url string with the desired value of filter expression in the "External Report Address" field. (Don’t use any encoding characters)

&defaultFilter=<Filter Expression> , example: &defaultFilter=Severity eq "1"
Ex: /dojoviews/view.html?viewname=AlertView&viewlocation=@{id}&viewobjectid=AlertView&edaa_tomcat=http%3A%2F%2F##.##.##.##%3A<SAM_tomcat_port>&sam_presentation=<SAM_Pres_Domain_Name>&defaultFilter=(not Severity eq 4 and Extensibility.EventState eq "ACTIVE" and Extensibility.ClassName eq "Switch")

This would load the Notification view with this defaultFilter applied.

 

NOTE:

  • If user selects any other Filter options from the gear-icon in the Notification frame, that would always compliment this existing defaultFilter.
  • While writing custom filter expressions, please note that NOT all filters expressions can be derived directly based on the Notification attributes (the columns in Notification View). An attribute represented by a column in the notification view, for example Class may map to a different field in the rest feed.
  • However the logs can be referred (<install_Dir>/APG/Web-Servers/Tomcat/Default/logs/mashupengine.log) for any user defined filter that gets appended in the URL
  • The logs would have the URL for the Managed-Alerts with the filters appended if in case user selects any custom filter in the Notification UI.