百度智能云

All Product Document

          Log Service

          List Log Shipper Records

          Description

          Check execution records for a specified logshipper.

          Request

          • Request syntax
          GET /v1/logshipper/{logShipperID}/record?sinceHours={}&pageNo={}&pageSize={} HTTP/1.1
          Host: bls-log.{region}.baidubce.com
          Authorization: authorization string
          • Request headers

          No additional headers are required beyond the standard request headers.

          • Request parameters
          Parameter name Types Required or not Parameter location Description
          logShipperID string yes path Task ID
          sinceHours int no query View data in a recent period, unit: hour, range: integers between 1 and 180×24; default: 1
          pageNo int no query Page, starting from 1, default: 1
          pageSize int no query Page size, minimum: 10, maximum: 100, default: 10

          Response

          • Response headers

          No additional headers are required beyond the standard response headers.

          • Response parameters
          Parameter name Types Can it be empty Description
          totalCount int no Total entries
          result list<record> yes Logshipper execution records

          record structure:

          Parameter name Types Can it be empty Description
          startTime string no Start time, namely the start time of the current delivery period
          endTime string no End time, namely the end time of the current delivery period
          finishedCount int no Total logs dumped this time

          Example

          • Request example
          GET /v1/logshipper/2323-xxxx/record?sinceHours=48&pageNo=1&pageSize=10 HTTP/1.1
          Host: bls-log.bj.baidubce.com
          Authorization:bce-auth-v1/18717522d39411e9b721df098b0b908c/2019-09-10T07:00:20Z/1800/content-type;host;x-bce-date;x-bce-request-id/6a7cb6c9ac7ec156c805e55e7d0bcfc443b47feee97cf099c1c0d93a0b4c8304
          Content-Type: application/json; charset=utf-8
          • Response example
          HTTP/1.1 200
          Content-Type: application/json; charset=utf-8
          
          {
              "totalCount" : 20,
              "result":[
              {
                  "startTime": "2020-05-09T10:21:28Z",
                  "endTime": "2020-05-09T10:25:29Z",
                  "finishedCount": 120
               },
                  ....
             ]
          }
          Previous
          Bulk Set Log Shipper Status
          Next
          List Log Shipper