Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-6181

add filters for outage rest interface

    XMLWordPrintable

Details

    • Enhancement
    • Status: In Progress (View Workflow)
    • Major
    • Resolution: Unresolved
    • 1.12.1
    • None
    • REST
    • Security Level: Default (Default Security Scheme)

    Description

      On the outages page, one can filter the displayed list based on:

      outtype: current, resolved, both
      intf: <ipaddress>
      service: <string>
      lostafter: <datetime>
      lostbefore: <datetime>

      The rest interface for outages though doesn't have a parser for these particular entries so you need to know the backend queries to get the same results.

      For example, to get all current outages, your rest query would need to have (with white spaces encoded), and

      {time}

      converted to a date:

      query=ifregainedservice is null or ifregainedservice >

      {date}

      It would be nice to be able to use the same parameters as you could on the other page.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ronald.roskens@biworldwide.com Ron Roskens
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: