WcsQps

更新時間: 2024-12-31 13:41:50

This interface is used to query the read and write QPS information of specified resources. Users can query the QPS details of read and write requests per minute for each bucket/regionname by specifying the bucket or regionname and time range. This information can be used to monitor the access status of customer monitoring data.

  • 単一ユーザーの使用頻度: 300/5min
  • 使用できるプロダクト: Object Storage

リクエストパラメータ

Body パラメータ

パラメータ名説明
bucketListList
bucket
regionNameListList
regionname
*dateFromString
dateFrom
*dateToString
dateTo
typeString
type
timezoneString
timezone

レスポンスパラメータ

Body パラメータ

パラメータ名説明
codeString
code
messageString
string
dataList
bucketString
bucket
regionNameString
regionname
detailList
writeDetail
timeString
time
readValueDouble
value
writeValueDouble
value

エラーコード

エラーコード(code)説明(message)HTTPステータスコード意味
22120200Success200Success
22120401This operation requires a body. Ensure that the body is present.400This operation requires a body. Ensure that the body is present.
22120402The body of your request is not json.400The body of your request is not json.
22120403Some parameters are required and not filled.400Some parameters are required and not filled.
22120404The date specified is invalid.400The date specified is invalid.
22120405You cannot specify a period greater than %s hour.400You cannot specify a period greater than %s hour.
22120406The parameter of timezone is invalid.400The parameter of timezone is invalid.
22120407The bucket and regionname parameters cannot exist at the same time.400The bucket and regionname parameters cannot exist at the same time.
22120408The parameter of type is invalid.400The parameter of type is invalid.
22120409Account is invalid.400Account is invalid.
22120410The dateFrom must be within the last %s days.400The dateFrom must be within the last %s days.
22120500Server error.500Server error.

入力例

BUCKET
TYPE:WRITE
REGIONNAME
BUCKET
リクエスト例
コピー コピー完了
#!/bin/bash
username="example_username"
apiKey="example_apiKey"
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://api.cdnetworks.com/api/gdp/wcs/qps" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/json" \
-d '{
    "bucketList":[
        "test1",
        "test2"
    ],
    "dateFrom":"2024-12-12T00:01+08:00",
    "dateTo":"2024-12-12T00:02+08:00"
}'
レスポンス例
コピー コピー完了
{
    "code": "22120200",
    "message": "Success",
    "data":[
        {  
            "bucket":"test1",
            "detail":[
                {
                    "time":"2024-12-12T00:01+08:00",
                    "readValue":150.00,
                    "writeValue":156.24
                },
               {
                    "time":"2024-12-12T00:02+08:00",
                    "readValue":150.00,
                    "writeValue":156.24
                }
             ]
        },
        {
            "bucket":"test2",
            "detail":[
                {
                    "time":"2024-12-12T00:01+08:00",
                    "readValue":150.00,
                    "writeValue":156.24
                },
               {
                    "time":"2024-12-12T00:02+08:00",
                    "readValue":150.00,
                    "writeValue":156.24
                }
             ]
        }
    ]
}