All Products
Search
Document Center

Edge Security Acceleration:DescribeSiteTimeSeriesData

Last Updated:Jan 14, 2026
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Query traffic analysis time series data

Operation description

  • If you do not specify StartTime and EndTime, the API returns data for the past 24 hours; if you specify StartTime and EndTime, the API returns data for the specified time period.
  • The API returns different time granularities based on the span between StartTime and EndTime.
    • For a span of 3 hours or less, it returns 1-minute granularity data.
    • For a span greater than 3 hours but no more than 12 hours, it returns 5-minute granularity data.
    • For a span greater than 12 hours but no more than 1 day, it returns 15-minute granularity data.
    • For a span greater than 1 day but no more than 10 days, it returns hourly granularity data.
    • For a span greater than 10 days but no more than 31 days, it returns daily granularity data.
  • Due to the high number of accesses during the query period, the data analysis may be sampled.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
esa:DescribeSiteTimeSeriesDatanone
*Site
acs:esa:{#regionId}:{#accountId}:site/{#SiteId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SiteIdstringNo

Site ID. Obtain the site ID by calling the ListSites interface.

If this parameter is empty, user-level data will be queried.

1150376036*****
StartTimestringNo

The start time for obtaining data.

The date format follows ISO8601 notation and uses UTC+0 time, in the format yyyy-MM-ddTHH:mm:ssZ.

2023-04-08T16:00:00Z
EndTimestringNo

The end time for obtaining data.

The date format follows ISO8601 notation and uses UTC+0 time, in the format yyyy-MM-ddTHH:mm:ssZ.

Note The end time must be later than the start time.
2023-04-09T16:00:00Z
IntervalstringNo

The time granularity for querying data, in seconds.

Depending on the maximum time span of a single query, this parameter supports values of 60 (1 minute), 300 (5 minutes), 3600 (1 hour), and 86400 (1 day). For details, see the Supported Query Time Granularities.

300
Fieldsarray<object>Yes

Query metrics.

objectYes

Query metrics.

FieldNamestringNo

Query metric value.

Note For specific dimensions, see Data Analysis Field Description.
Traffic
DimensionarrayNo

Query dimension.

stringNo

Query dimension.

Note For specific dimensions, see Data Analysis Field Description.
ALL

Response parameters

ParameterTypeDescriptionExample
object
Dataarray<object>

Returned data.

contentobject

Returned data.

FieldNamestring

Query metric value.

Traffic
DimensionNamestring

Query dimension.

ALL
DimensionValuestring

Query dimension value.

ALL
DetailDataarray<object>

Returned data.

detailDataobject

Returned data.

TimeStampstring

Start timestamp of the time slice.

2023-04-08T16:00:00Z
Valueany

Value.

123
SummarizedDataarray<object>

Aggregated query data.

summarizedcontentobject
FieldNamestring

The value of the aggregated metric being queried.

Traffic
DimensionNamestring

The dimension of the aggregated data being queried.

ALL
DimensionValuestring

The value of the aggregated dimension being queried.

ALL
AggMethodstring

The aggregation method used.

sum
Valueany

The aggregated value.

12345
RequestIdstring

The request ID.

04F0F334-1335-436C-A1D7-6C044FE7****
StartTimestring

The start time for fetching the data.

The date format follows ISO8601 notation and uses UTC+0, formatted as yyyy-MM-ddTHH:mm:ssZ.

2023-04-08T16:00:00Z
EndTimestring

The end time for fetching the data.

The date format follows ISO8601 notation and uses UTC+0, formatted as yyyy-MM-ddTHH:mm:ssZ.

2023-04-09T16:00:00Z
Intervallong

The granularity of the data, in seconds.

300
SamplingRatefloat

The sampling rate, in %.

100

Examples

Sample success responses

JSONformat

{
  "Data": [
    {
      "FieldName": "Traffic",
      "DimensionName": "ALL",
      "DimensionValue": "ALL",
      "DetailData": [
        {
          "TimeStamp": "2023-04-08T16:00:00Z",
          "Value": 123
        }
      ]
    }
  ],
  "SummarizedData": [
    {
      "FieldName": "Traffic",
      "DimensionName": "ALL",
      "DimensionValue": "ALL",
      "AggMethod": "sum",
      "Value": 12345
    }
  ],
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
  "StartTime": "2023-04-08T16:00:00Z",
  "EndTime": "2023-04-09T16:00:00Z",
  "Interval": 300,
  "SamplingRate": 100
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameter.TimeRangeThe specified time range exceeds the limit. Adjust it and try again.The specified time range exceeds the limit. Adjust it and try again.
400TooManyRequestsToo many requests.Please try again later.Requests are too frequent, please try again later.
400InvalidEndTime.MismatchThe specified EndTime is earlier than the StartTime.The end time you entered is earlier than the start time. Please check and try again.
400InvalidParameterParameter verification failed. Check your configurations and try again.Parameter verification failed. Check your configurations and try again.
400QuotaCheckFailed.FunctionThe feature is unavailable in your plan. Upgrade the plan or contact your account manager to request the feature.The feature is unavailable in your plan. Upgrade the plan or contact your account manager to request the feature.
400InvalidParameter.FieldThe specified Field is invalid.The specified Field is invalid. For more information, see OpenAPI Documentation .
400InvalidParameter.DimensionThe specified Dimension is invalid.The specified Dimension is invalid. For more information, see OpenAPI Documentation .
400InvalidTime.MalformedSpecified start time or end time is malformed.The specified time format is incorrect. The time must conform to the yyyy-MM-ddTHH:mm:ssZ format. Please enter it correctly and try again.
400TooManyDimensionsToo many query dimensions specified. Delete some and try again.Too many query dimensions specified. Delete some and try again.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-12-09API Description Update. The Error code has changedView Change Details