全部產品
Search
文件中心

Data Transmission Service:查看叢集監控資訊

更新時間:Feb 10, 2025

調用DescribeMetricList介面查看叢集監控資訊。

調試

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

請求參數

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

系統規定參數。取值:DescribeMetricList

MetricType String NODE

查詢叢集或節點,取值:

  • CLUSTER:叢集。
  • NODE:節點
MetricName String cpu_total
  • InternetOut:公網流出流量,單位為Byte。
  • diskusage_utilization:磁碟使用率。
  • IntranetInRate:內網流入流量,單位為Byte。
  • InternetIn:公網流入流量,單位為Byte。
  • cpu_total:CPU使用率。
  • memory_usedutilization:記憶體使用量率。
  • IntranetOutRate:內網流出流量,單位為Byte。
Period Long 15

觀測間隔(單位秒),最小間隔為15秒。

Param String nodeid

觀測值,當MetricTypeNODE時,值為nodeid

StartTime Long 1642476144000

起始時間戳記,單位毫秒。

EndTime Long 1642476194000

結束時間戳記,單位毫秒。

Env String ALIYUN

預設為:ALIYUN

DtsJobId String k2gm967v16f****

遷移或同步任務ID。

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

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

AccountId String 12323344****

阿里雲主帳號ID。

返回資料

名稱 類型 樣本值 描述
MetricType String CLUSTER

查詢叢集或節點,取值:

  • CLUSTER:叢集。
  • NODE:節點
Param String ecs-jhjnjjn

觀測值。

  • MetricTypeNODE時,值為nodeid
  • MetricTypeCLUSTER時為獨享叢集ID,可通過ListDedicatedCluster介面擷取。
MetricName String cpu_total
  • InternetOut:公網流出流量,單位為Byte。
  • diskusage_utilization:磁碟使用率。
  • IntranetInRate:內網流入流量,單位為Byte。
  • InternetIn:公網流入流量,單位為Byte。
  • cpu_total:CPU使用率。
  • memory_usedutilization:記憶體使用量率。
  • IntranetOutRate:內網流出流量,單位為Byte。
Period Long 15

觀測間隔(單位為秒),最小間隔為15秒。

DataPoints Array of DataPoint

監控統計資訊。

Timestamp Long 1650872310000

記錄時間戳記,單位毫秒。

Statistics Float 15.25

統計值。

Success Boolean true

調用是否成功。

Code String 403

後端錯誤碼,數字遞增。

ErrCode String InternalError

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

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

錯誤資訊。

DynamicMessage String Type

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

HttpStatusCode Integer 403

異常對應的狀態代碼。

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

請求ID。

樣本

請求樣本

http(s)://dts.aliyuncs.com/?Action=DescribeMetricList
&MetricType=NODE
&MetricName=cpu_total
&Period=15
&Param=nodeid
&StartTime=1642476144000
&EndTime=1642476194000
&Env=ALIYUN
&DtsJobId=k2gm967v16f****
&ClientToken=0c593ea1-3bea-11e9-b96b-88e9fe63****
&AccountId=12323344****
&公用請求參數

正常返回樣本

XML格式

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

<DescribeMetricListResponse>
    <code>200</code>
    <data>
        <MetricName>diskusage_utilization</MetricName>
        <RequestId>36F33F1C-CF13-149E-AB05-****</RequestId>
        <MetricType>CLUSTER</MetricType>
        <HttpStatusCode>200</HttpStatusCode>
        <Period>15</Period>
        <DataPoints>
            <Timestamp>1651112970000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651112985000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113000000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113015000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113030000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113045000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113060000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113075000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113090000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113105000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113120000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113135000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113150000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113165000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113180000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113195000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113210000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113225000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113240000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113255000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113270000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113285000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113300000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113315000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113330000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113345000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113360000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113375000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113390000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113405000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113420000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113435000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113450000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113465000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113480000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113495000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113510000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113525000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113540000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <DataPoints>
            <Timestamp>1651113555000</Timestamp>
            <Statistics>10.5</Statistics>
        </DataPoints>
        <Success>true</Success>
    </data>
    <httpStatusCode>200</httpStatusCode>
    <requestId>36F33F1C-CF13-149E-AB05-****</requestId>
    <successResponse>true</successResponse>
</DescribeMetricListResponse>

JSON格式

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

{
  "code" : "200",
  "data" : {
    "MetricName" : "diskusage_utilization",
    "RequestId" : "36F33F1C-CF13-149E-AB05-****",
    "MetricType" : "CLUSTER",
    "HttpStatusCode" : 200,
    "Period" : 15,
    "DataPoints" : [ {
      "Timestamp" : 1651112970000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651112985000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113000000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113015000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113030000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113045000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113060000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113075000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113090000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113105000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113120000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113135000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113150000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113165000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113180000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113195000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113210000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113225000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113240000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113255000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113270000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113285000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113300000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113315000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113330000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113345000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113360000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113375000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113390000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113405000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113420000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113435000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113450000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113465000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113480000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113495000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113510000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113525000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113540000,
      "Statistics" : 10.5
    }, {
      "Timestamp" : 1651113555000,
      "Statistics" : 10.5
    } ],
    "Success" : true
  },
  "httpStatusCode" : "200",
  "requestId" : "36F33F1C-CF13-149E-AB05-****",
  "successResponse" : true
}

錯誤碼

HttpCode 錯誤碼 錯誤資訊 描述
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. 由於服務端響應逾時或者不可用導致請求失敗,請重試,重試後仍失敗請聯絡支援人員。
403 InvalidSecurityToken.Expired Specified SecurityToken is expired. 簽名已經到期,請更新簽名

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