Object Storage

WcsQps

Update time: 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.

  • Single user trigger frequency: 300/5min
  • Applicable Products: Object Storage

Request

Body Params

NameDescription
bucketListList
bucket
regionNameListList
regionname
*dateFromString
dateFrom
*dateToString
dateTo
typeString
type
timezoneString
timezone

Response

Body Params

NameDescription
codeString
code
messageString
string
dataList
bucketString
bucket
regionNameString
regionname
detailList
writeDetail
timeString
time
readValueDouble
value
writeValueDouble
value

Error code

Error code(code)Description(message)HTTP statusSemantic
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.

Example

BUCKET
TYPE:WRITE
REGIONNAME
BUCKET
Request example
Copy Copy success
#!/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"
}'
Response example
Copy Copy success
{
    "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
                }
             ]
        }
    ]
}
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!