MrJ

Members
  • Content Count

    5
  • Joined

  • Last visited

  • Days Won

    1

Community Reputation

1 Neutral

About MrJ

  • Rank
    Member
  1. Thanks both for your help, appreciated. Thought it was just me but good to know it wasn't.
  2. Hey, oh ok thanks for clarifying. Oh that is really helpful. I was looking around in the portal to see if that was an option to show the API calls so that helps a lot. Thank you
  3. No problem, thanks for your help.
  4. Thanks for the info, it doesn't seem to work for me unfortunately. It seems display every single alert for every customer no matter what I put. E.g. #Request Info httpVerb ='GET' resourcePath = '/alert/alerts' queryParams ='?v=2&?filter=displayName~domain.com' (I changed domain.com to the actual customer) data = '' I wasn't using the v2 API before but I was trying that as well above. Are there some working examples documented anywhere? For the v2 API, does it display the data any different or is the only difference no support for basic auth? Thanks
  5. Hi I'm fairly new to APIs and would like a little help please. I am trying to query the LM API for specific alerts with Python. I am able to retrieve a full list of alerts via Python which is a good starting point. I was using the following doc: https://www.logicmonitor.com/support/rest-api-developers-guide/v1/alerts/get-alerts What I would like some help with is the following: - Is there a way to retrieve alerts only for a specific folder? We have customers under specific folders. - How would I retrieve alerts with only a specific string in the resource name? E.g. all customer devices will have devicename.domain.com I would like to filter for only alerts of devices with *domain.com* in the resource name. - How would you do multiple queries in one API call? e.g. a query with a filter, and a sort? Thank you