Maximo

 View Only
Expand all | Collapse all

Syntax/query to get last 5 minutes of service requests via rest

  • 1.  Syntax/query to get last 5 minutes of service requests via rest

    Posted Thu May 16, 2024 02:55 PM

    I want to pull the last 5 minutes of service requests from the current time via rest. How is that done in a rest query?

    https://main.manage.test.maximo.com/maximo/api/os/MAXAPISR?lean=1&oslc.select=*&oslc.where=


    ------------------------------
    Christopher Stewart
    ------------------------------


  • 2.  RE: Syntax/query to get last 5 minutes of service requests via rest

    IBM Champion
    Posted Fri May 17, 2024 03:04 AM

    Hi Christopher,

    You will need to use the Timeline Filters to get that using the tlrange and tlattribute.

    https://main.manage.test.maximo.com/maximo/api/os/MAXAPISR?lean=1&oslc.select=*&tlrange=-5m&tlattribute=reportdate

    The supported units are D - day, W - week, Y - year, M - month, h - hour, m - minutes, s - seconds.
    You can find more details here:
    https://www.ibm.com/support/pages/system/files/inline-files/Maximo_NextGen_REST_API_-_nextgen.pdf
    Hope this can help you.
    Cheers


    ------------------------------
    Maycon Belfort
    Consultant
    BPD Zenith
    Melbourne
    Australia
    ------------------------------



  • 3.  RE: Syntax/query to get last 5 minutes of service requests via rest

    Posted Wed May 22, 2024 10:56 AM

    Thanks! That worked.



    ------------------------------
    Christopher Stewart
    ------------------------------