โ08-29-2022 09:43 AM
Please help me figure out what the syntax is for using the org_wide parameter for the pipeline monitoring api.
Iโve tried, but get an error for all of the below:
โhttps://elastic.snaplogic.com/api/1/rest/public/runtime/โ + _org + โ?last_hours=โ + _last_hours + โ?org_wide=1โ
โhttps://elastic.snaplogic.com/api/1/rest/public/runtime/โ + _org + โ?last_hours=โ + _last_hours + โ?org_wide=0โ
โhttps://elastic.snaplogic.com/api/1/rest/public/runtime/โ + _org + โ?last_hours=โ + _last_hours + โ?org_wide=-1โ
If I remove the org_wide, it works but only returns for root of org, understandably. When I look at the error it says itโs expecting an integer, but Iโve already tried: 0, 1, and -1 and none of them work.
Also, the documentation is no help. Thereโs no example of usage and โN/Aโ makes no sense for a default value for the boolean.
โ08-29-2022 11:28 AM
@vincenr : Based on your question, Iโm assuming that you are looking at this documentation page. That page will be deprecated soon and a note at the top of the page includes links to the new topics that replace it.
The newer topic that seems most applicable to the API you want is this page, which shows that the API no longer requires the org_wide
parameter. If you donโt specify a project filter, youโll get results for all projects in the Org.
I hope that helps.
โ08-29-2022 11:41 AM
When I remove everything but the โlast_hoursโ parameter, I do not get everything in our orgโฆ all I get is whatever has run at the root of our org directory, not all of the projects subsumed under the org directory. So, please help me out here.
โ08-29-2022 12:45 PM
@vincenr: Are you an Org admin for the Org? If not, youโll only see what you have permissions to see.
If you are an Org admin, yes, please file a ticket.
โ08-30-2022 06:27 AM
Can you please post the correct API page here for me? You had previously stated the page I was using had been deprecated.