10-06-2017 11:00 AM
On https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438155/Pipeline+Monitoring+API for the GET /api/1/rest/public/runtime/?, what do the start and end parameters control and what are some examples of valid values?
10-06-2017 09:05 PM
Snap: REST Get
Service URL: https://elastic.snaplogic.com/api/1/rest/public/runtime/[your_org_name]
Query parameters: last_hours : [# of hours from now]
Query parameters: limit : [# of records returns]
Has next: ($entity.response_map.offset + $entity.response_map.limit) < $entity.response_map.total
Next URL: ‘https://elastic.snaplogic.com/api/1/rest/public/runtime/[your_org_name]?last_hours=100&limit=1000&of...’ + ($entity.response_map.offset+$entity.response_map.limit)
If you are ingesting this periodically to a db env, you can obtain max date and do some computation to figure how many hours to set your last_hours dynamically (now - max(date))
10-10-2017 05:52 AM
According to the doc https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438155/Pipeline+Monitoring+API, isn’t “limit” the number of runtimes, not hours?
I’m just looking on more info on the start and end parameters particularly. My request is related to List started pipelines regardless of start date - #10 by nganapathiraju.
10-16-2017 10:34 AM
you are correct. I misstated for the limit explanation. I just revised my reply and added the pagination info as well.