diff --git a/plugins/Rootly/v1/dataStreams/incidents.json b/plugins/Rootly/v1/dataStreams/incidents.json index 9c442868..38ce2e86 100644 --- a/plugins/Rootly/v1/dataStreams/incidents.json +++ b/plugins/Rootly/v1/dataStreams/incidents.json @@ -1,7 +1,28 @@ { "name": "incidents", + "tags": ["Incidents"], "config": { "httpMethod": "get", + "paging": { + "mode": "offset", + "pageSize": { + "realm": "queryArg", + "path": "page[size]", + "value": "200" + }, + "offset": { + "rowCountIn": { + "realm": "payloadArraySize", + "path": "data" + }, + "mode": "page", + "base": "1" + }, + "out": { + "realm": "queryArg", + "path": "page[number]" + } + }, "expandInnerObjects": true, "endpointPath": "incidents", "getArgs": [ @@ -12,14 +33,6 @@ { "key": "filter[{{timestampField}}][lte]", "value": "{{{timeframe.end}}}" - }, - { - "key": "page[number]", - "value": "1" - }, - { - "key": "page[size]", - "value": "100" } ], "postRequestScript": "incidents.js", diff --git a/plugins/Rootly/v1/metadata.json b/plugins/Rootly/v1/metadata.json index 4eed4b11..a1c38b4d 100644 --- a/plugins/Rootly/v1/metadata.json +++ b/plugins/Rootly/v1/metadata.json @@ -1,7 +1,7 @@ { "name": "rootly", "displayName": "Rootly", - "version": "1.0.2", + "version": "1.0.3", "author": { "name": "@noorulkhan-n", "type": "community" @@ -23,7 +23,6 @@ } ], "queryArgs": [], - "modules": [], "authMode": "none", "baseUrl": "https://api.rootly.com/v1/" }