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
                }
             ]
        }
    ]
}
이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.