can anyone tell me how to create an alert through rest api with trigger conditions.
can anyone tell me how to create an alert through rest api with trigger conditions.
This requires some XML editing. See this thread for some discussion:
"Proper" way to export/import Alert Configurations via SDK?
There is documentation about working with Alerts here:
https://github.com/solarwinds/OrionSDK/wiki/Alerts
You can use the Orion user interface to set up a sample alert with the trigger condition you want, then export that alert either through the Orion UI or by invoking the SWIS Export verb on Orion.AlertConfigurations through the API. That will give you an XML file that defines the alert. That XML file can then be imported to the same Orion system or a different one, either through the UI or by invoking the Import verb. So as long as your script can generate some XML that defines the kind of alert you would like to import, you should be able to use the Import verb to create that new alert.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.