Queries the execution errors of scripts in EdgeScript (ES).

Note
  • If you do not configure the StartTime or EndTime parameter, data collected over the last 24 hours is queried. If you configure both the StartTime and EndTime parameters, data collected within the specified time range is queried.
  • You can call this operation up to 30 times per second.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDcdnEsExceptionData

The operation that you want to perform. Set the value to DescribeDcdnEsExceptionData.

EndTime String Yes 2021-02-18T20:00:00Z

The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC+0.

Note The end time must be later than the start time.
RuleId String Yes 21289***

The ID of the script that you want to query. You can call the DescribeDcdnDomainConfigs operation to query script IDs.

StartTime String Yes 2021-02-17T20:00:00Z

The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC+0.

Response parameters

Parameter Type Example Description
Contents Array of Content

The content of the script for which an error was reported.

Columns List time,401

The column names of the table that shows the errors of the script and the time of each data entry.

Name String 401

The name of the table that shows the errors of the script.

Points List 2021-02-18T19:05:00Z,0

The value of each column and the time of each data entry.

RequestId String 87DA52FC-8E41-1E67-9B42-D3BF5C256FCD

The ID of the request.

Examples

Sample requests

https://dcdn.aliyuncs.com?Action=DescribeDcdnEsExceptionData&RuleId=21289654
&StartTime=2021-02-17T20:00:00Z
&RuleId=21289***
&EndTime=2021-02-18T20:00:00Z

Sample success responses

XML format

<DescribeDcdnEsExceptionDataResponse>
<RequestId>87DA52FC-8E41-1E67-9B42-D3BF5C256FCD</RequestId>
<content>
    <columns>time</columns>
    <columns>401</columns>
    <name>401</name>
    <points>
        <0>2021-02-18T19:07:00Z</0>
        <1>0</1>
    </points>
    <points>
        <0>2021-02-18T19:06:00Z</0>
        <1>0</1>
    </points>
    <points>
        <0>2021-02-18T19:05:00Z</0>
        <1>0</1>
    </points>
</content>
<content>
    <columns>time</columns>
    <columns>402</columns>
    <name>402</name>
    <points>
        <0>2021-02-18T19:07:00Z</0>
        <1>0</1>
    </points>
    <points>
        <0>2021-02-18T19:06:00Z</0>
        <1>0</1>
    </points>
    <points>
        <0>2021-02-18T19:05:00Z</0>
        <1>0</1>
    </points>
</content>
</DescribeDcdnEsExceptionDataResponse>

JSON format

{
    "RequestId": "87DA52FC-8E41-1E67-9B42-D3BF5C256FCD",
    "content": [
        {
            "columns": [
                "time",
                "401"
            ],
            "name": "401",
            "points": [
                [
                    "2021-02-18T19:07:00Z",
                    0
                ],
                [
                    "2021-02-18T19:06:00Z",
                    0
                ],
                [
                    "2021-02-18T19:05:00Z",
                    0
                ]
            ]
        },
        {
            "columns": [
                "time",
                "402"
            ],
            "name": "402",
            "points": [
                [
                    "2021-02-18T19:07:00Z",
                    0
                ],
                [
                    "2021-02-18T19:06:00Z",
                    0
                ],
                [
                    "2021-02-18T19:05:00Z",
                    0
                ]
            ]
        }
    ]
}

Error codes

For a list of error codes, visit the API Error Center.