Retrieve a list of jobs executed instructions

Created by Pedro Ondiviela ยท last update June 10, 2020

What is this about?

Detailed Instructions about how retrieve a list of jobs executed instructions.

For all jobs

You will retrieve a list of the last index requests

GET INDEX_SERVICE_URL/services/jobs/INDEX_TOKEN

Response:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[
  {
      id: "554075bee4b0950771fea45f",
      clientId: "testclient",
      feedId: "ONE_FEED_ID",
      fileId: "autogenerated-id",
      state: "SUCCESS",
      date: "Apr 29, 2015 8:10:06 AM",
      metrics: {
          rTime: 590,
          wTime: 7322,
          tTime: 9117,
          wProcessed: 22511,
          rProcessed: 22511
      }
  },
  {
      id: "55403d7fe4b0de7376f72bd1",
      clientId: "testclient",
      feedId: "ANOTHER_FEED_ID",
      fileId: "autogenerated-id",
      state: "FAILURE",
      date: "Apr 29, 2015 4:10:07 AM",
      error:[{
          "Unexpected content in prolog"
          }
      ]
      metrics: {
          rTime: 571,
          wTime: 7037,
          tTime: 8723,
          wProcessed: 21867,
          rProcessed: 21867
      }
  }
]

Jobs by FEED_ID

You will retrieve a list of the last index requests for a certain FEED_ID

GET INDEX_SERVICE_URL/services/jobs/feed/INDEX_TOKEN/FEED_ID

Response:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[
  {
      id: "554075bee4b0950771fea45f",
      clientId: "testclient",
      feedId: "ONE_FEED_ID",
      fileId: "autogenerated-id",
      state: "SUCCESS",
      date: "Apr 29, 2015 8:10:06 AM",
      metrics: {
          rTime: 590,
          wTime: 7322,
          tTime: 9117,
          wProcessed: 22511,
          rProcessed: 22511
      }
  },
  {
      id: "55403d7fe4b0de7376f72bd1",
      clientId: "testclient",
      feedId: "ONE_FEED_ID",
      fileId: "autogenerated-id",
      state: "FAILURE",
      date: "Apr 29, 2015 4:10:07 AM",
      error:[{
          "Unexpected content in prolog"
          }
      ]
      metrics: {
          rTime: 571,
          wTime: 7037,
          tTime: 8723,
          wProcessed: 21867,
          rProcessed: 21867
      }
  }
]