全部產品
Search
文件中心

Data Transmission Service:查詢叢集日誌資訊

更新時間:Feb 10, 2025

調用DescribeClusterOperateLogs介面查詢DTS叢集日誌資訊。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

請求參數

名稱 類型 是否必選 樣本值 描述
Action String DescribeClusterOperateLogs

系統規定參數。取值:DescribeClusterOperateLogs

StartTime Long 1650866955000

起始時間戳記,當不傳時預設最近返回七天的資料,單位為毫秒(ms)。

EndTime Long 1650866995000

結束時間戳記,單位為毫秒(ms)。

DedicatedClusterId String dtsxxxxx

DTS專屬叢集ID。

PageSize Integer 20

每頁日誌的請求條數,預設值為:20

PageNumber Integer 1

頁碼,取值為大於0且不超過Integer資料類型的最大值,預設值為1

DtsJobId String k2gm967v16f****

遷移或同步任務ID。

ClientToken String 0c593ea1-3bea-11e9-b96b-88e9fe63****

保證請求等冪性。從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken只支援ASCII字元,且不能超過64個字元。

AccountId String 12323344****

阿里雲主帳號ID。

返回資料

名稱 類型 樣本值 描述
DataPoints Array of DataPoint

監控統計資訊。

Id String 237827

記錄資料表的主鍵。

LogDatetime Long 1642077211574

時間戳記,單位毫秒。

OperationName String modify-oversold-ratio

操作類型。

OperationUser String null

操作人。

OldValue String 100

操作類型是修改時,舊的參數值。

NewValue String 105

操作類型是修改時,新的參數值。

Content String null

其他備忘資訊。

Success Integer 1

調用結果,是否成功,1代表成功。

PageNumber Integer 1

當前頁碼。

PageRecordCount Integer 20

當前每頁顯示的數量。

TotalRecordCount Long 100

記錄的總數。

Success Boolean true

調用結果。

Code String 500

後端錯誤碼,數字遞增。

ErrCode String InternalError

調用出錯時返回的錯誤碼。

ErrMessage String The Value of Input Parameter %s is not valid.

錯誤資訊。

DynamicMessage String Type

動態錯誤資訊,用於替換返回參數ErrMessage錯誤資訊中的%s。

HttpStatusCode Integer 200

異常對應的狀態代碼。

RequestId String 621BB4F8-3016-4FAA-8D5A-5D3163CC****

請求ID。

樣本

請求樣本

http(s)://dts.aliyuncs.com/?Action=DescribeClusterOperateLogs
&StartTime=1650866955000
&EndTime=1650866995000
&DedicatedClusterId=dtsxxxxx
&PageSize=20
&PageNumber=1
&DtsJobId=k2gm967v16f****
&ClientToken=0c593ea1-3bea-11e9-b96b-88e9fe63****
&AccountId=12323344****
&公用請求參數

正常返回樣本

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeClusterOperateLogsResponse>
    <requestId>1651135450713-***</requestId>
    <success>true</success>
    <code/>
    <errCode/>
    <errMessage/>
    <dynamicMessage/>
    <httpStatusCode>200</httpStatusCode>
    <pageNumber>1</pageNumber>
    <pageRecordCount>3</pageRecordCount>
    <totalRecordCount>3</totalRecordCount>
    <dataPoints>
        <id>2</id>
        <logDatetime>1642077211574</logDatetime>
        <operationName>modify-network-***</operationName>
        <operationUser/>
        <oldValue>1</oldValue>
        <newValue>2</newValue>
        <content>ak</content>
        <success>1</success>
    </dataPoints>
    <dataPoints>
        <id>3</id>
        <logDatetime>1642077211574</logDatetime>
        <operationName>modify-network-***</operationName>
        <operationUser/>
        <oldValue>2</oldValue>
        <newValue>3</newValue>
        <content>ak</content>
        <success>1</success>
    </dataPoints>
    <dataPoints>
        <id>4</id>
        <logDatetime>1642077211574</logDatetime>
        <operationName>modify-network-***</operationName>
        <operationUser/>
        <oldValue>3</oldValue>
        <newValue>4</newValue>
        <content>ak</content>
        <success>1</success>
    </dataPoints>
</DescribeClusterOperateLogsResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "requestId" : "1651135450713-***",
  "success" : true,
  "httpStatusCode" : 200,
  "pageNumber" : 1,
  "pageRecordCount" : 3,
  "totalRecordCount" : 3,
  "dataPoints" : [ {
    "id" : "2",
    "logDatetime" : 1642077211574,
    "operationName" : "modify-network-***",
    "oldValue" : "1",
    "newValue" : "2",
    "content" : "ak",
    "success" : 1
  }, {
    "id" : "3",
    "logDatetime" : 1642077211574,
    "operationName" : "modify-network-***",
    "oldValue" : "2",
    "newValue" : "3",
    "content" : "ak",
    "success" : 1
  }, {
    "id" : "4",
    "logDatetime" : 1642077211574,
    "operationName" : "modify-network-***",
    "oldValue" : "3",
    "newValue" : "4",
    "content" : "ak",
    "success" : 1
  } ]
}

錯誤碼

HttpCode 錯誤碼 錯誤資訊 描述
403 InvalidParameter The Value of Input Parameter %s is not valid. 參數值校正不通過,請檢查是否缺失所提示的參數以及使用者AK是否正確。
403 InvalidSecurityToken.Expired Specified SecurityToken is expired. 簽名已經到期,請更新簽名
400 Throttling.User Request was denied due to user flow control. 由於請求頻次達到閾值,請求被拒絕,請稍後重試。
500 ServiceUnavailable The request has failed due to a temporary failure of the server. 由於服務端響應逾時或者不可用導致請求失敗,請重試,重試後仍失敗請聯絡支援人員。

訪問錯誤中心查看更多錯誤碼。