##EXTERNALTICKETID## in Alert API


Recommended Posts

  • LogicMonitor Staff

Hi Josh,

We aren't adding any new features to our RPC API as it was deprecated at the end of last year, but you can get custom column information with our REST API alerts resource.  Compared to our RPC API, our REST API is more comprehensive in coverage, more secure, and provides a lot more consistency- so we recommend you give it a try! 

Thanks!

Sarah

Link to post
Share on other sites
  • 3 weeks later...
  • 2 years later...
  • Administrators
On 6/1/2017 at 6:14 PM, Sarah Terry said:

The link to the current documentation for this resource is: https://www.logicmonitor.com/swagger-ui-master/dist/#/Alerts/getAlertList.

@Sarah Terry, I added EXTERNALTICKETID as a custom column, removed the threshold from an instance (to clear existing alarms), let the alarm clear, then reset the threshold to open a new alarm. That alarm doesn't have a value for externalticketid, but the field also doesn't show up in the response from v2 of the API on /alert/alerts. Does it have to have a value in order to show up?

Link to post
Share on other sites
  • 6 months later...

The API call worked great for me, but is there any way to filter on alerts that contain data in the externalticketid column? I attempted to mimic the custom properties filtering examples, but it didn't seem to work. Thanks!

GET /alert/alerts?filter=customColumns.name:%2523%2523externalticketid%2523%2523,customColumns.data!-"no data"&customColumns=%2523%2523externalticketid%2523%2523
Link to post
Share on other sites

Whoops, I had a mistake in there, i should've put .value, not .data in my previous post. For posterity, I also attempted the filter with both the URL format text & plain text in double quotes (in the example below), but I get an empty customColumns returned when the filter is before the customColumns (example 1). Conversely, I DO get data when I specify the customColumn before the filter, however the filter doesn't seem to apply (example 2).

Example 1:

GET /alert/alerts?filter=customColumns.name:"##externalticketid##",customColumns.value!-"no data"&customColumns=%2523%2523externalticketid%2523%2523

Example 2:

GET /alert/alerts?customColumns=%2523%2523externalticketid%2523%2523&filter=customColumns.name:"##externalticketid##",customColumns.value!-"no data"

 

Thank you!

-Ryan

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.