Forum Discussion

asikarwar's avatar
asikarwar
Icon for Neophyte rankNeophyte
2 months ago

Extract Instance Level Alert Expression

Hello,

I am making massive number of API calls due to the high number of devices and instances in LogicMonitor to Extract Instance Level Expression for each device (VM type).

I have all Global alerts but there many devices where we have Instance level alerting.


Currently I am using following API to extract instance level alert expression.
/device/devices/device_id/devicedatasources/devicedatasources_id/instances/instance_id/alertsettings?size=1000&filter=alertExpr!:"" 

I have over 26000 devices, to iterate all the devices followed by data sources and eventually instances takes millions  of API calls is there any other way we can pull this information. I would need this data every month.

I do not think there is something like bulk API endpoints where I can pull larger datasets in a single call.

Nor there is Webhooks/Alerting Data Streams where instead of pulling it pushes updates about alert configuration at instance level.

I cannot query just Device Groups as instance level alert expression are found only at Device level.

Has anyone had this requirement before, any solution or alternative?

Thanks

Ashish

  • My experience with the API is that yes, you simply have to make thousands of calls.  This applies to many aspects of the product.

    Looking at developer tools in Chrome at the new UIv4 API, it seems that there is a move to be able to query all these things in one go using the new /hierarchy/ set of endpoints, but that is not yet published/documented/supported.

  • Have you tried using the Alert Thresholds report with the "Only show custom thresholds" option enabled?

    • asikarwar's avatar
      asikarwar
      Icon for Neophyte rankNeophyte

      Thank for you response Mike_Moniz 

      Yes I tried, but it has a limit of 50000 records that can be processed in the Alerts Threshold report.