Querying Analytics Configurations
Function
-
Configuration type. Value range:
-
0: popular content statistics.
-
1: Cloud Eye reporting.
Calling Method
For details, see Calling APIs.
URI
GET /v1/cdn/statistics/stats-configs
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
config_type |
Yes |
Integer |
|
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
total |
Integer |
Number of Analytics configurations. |
data |
Array of StatsConfigDetails objects |
Configuration details. |
Parameter |
Type |
Description |
---|---|---|
config_type |
Integer |
Configuration type. 0: popular content statistics. |
resource_type |
String |
Resource type. domain:resource_name: domain name. account:resource_name: account. |
resource_name |
String |
Resource name, which is an account or a list of domain names. Separate domain names with commas (,). |
config_info |
ConfigInfo object |
Configuration information. |
expired_time |
Long |
Time when the Analytics configuration expires. The value is a timestamp in seconds. |
Parameter |
Type |
Description |
---|---|---|
url |
TopUrl object |
top_url configuration. |
ua |
TopUa object |
top_ua configuration. |
Parameter |
Type |
Description |
---|---|---|
enable |
Boolean |
Configuration status. |
limit |
Integer |
Number of metric items to report in the popular content statistics. For example, top_url 100 or top_url 1000. |
sort_by_code |
Boolean |
Whether popular content statistics metrics can be reported by status code. |
Status code: default
Parameter |
Type |
Description |
---|---|---|
error |
ErrMsg object |
Error code and error message. |
Example Requests
Querying Analytics configurations
GET https://cdn.myhuaweicloud.com/v1/cdn/statistics/stats-configs?&config_type=0
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
Success response. |
default |
Error response. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot