Debugging
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:
- The required resource types are displayed in bold characters.
- 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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
eventbridge:EventCenterQueryEvents | get | *EventBus acs:eventbridge:{#regionId}:{#accountId}:eventbus/{#eventbus} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
BusName | string | No | The name of the event bus. | default |
MaxResults | integer | No | The number of entries per page. Valid values: 0 to 10000. Default value: 100. | 100 |
Body | object | Yes | The parameters in the request body. | |
SchemaId | string | Yes | The schema ID. | ecs:GeneralSchema |
QueryType | string | Yes | The query type. Valid values:
| timeseries_and_table |
Parameters | object | Yes | The query parameters. | |
Breakdowns | array | No | Specifies whether to further split the data set based on the column name. | |
string | No | The name of the column based on which data is split. | source | |
Calculations | array<object> | No | The operator that is used to calculate the specified column. | |
object | No | |||
Op | string | No | The operator. | COUNT_DISTINCT |
Column | string | No | The column name. | source |
Filters | array<object> | No | The filter conditions. | |
object | No | |||
Column | string | No | The column name. | source |
Op | string | No | The operator. | = |
Values | array | No | The values that are used together with the operator. | |
string | No | If the value is a string, you must enclose it in a pair of single quotation mark ('). | 'acs.ecs' | |
FilterCombination | string | No | The logic used to filter the combination of conditions. | AND |
Granularity | integer | No | The minimum time unit for querying time series data. Minimum value: 1. Unit: seconds. The value of this parameter is a recommended value. The actual value returned shall prevail. | 30 |
Orders | array<object> | No | The order of the query results. This parameter is valid only if you set QueryType to table. | |
object | No | |||
Op | string | No | The operator. | AVG |
Column | string | No | The column name. | source |
Desc | boolean | No | Specifies whether to sort the query results in descending order. | true |
Offset | integer | No | The offset of the start position for this query. The offset starts from 0. | 0 |
Limit | integer | No | The maximum number of events to query. Valid values: 1 to 10000. | 100 |
TimeRange | integer | No | The time range during which events are queried. Unit: milliseconds. Minimum value: 1000. | 1000000 |
StartTime | integer | No | The timestamp that specifies the beginning of the time range to query. Unit: milliseconds. | 1687860901814 |
EndTime | integer | No | The timestamp that specifies the end of the time range to query. Unit: milliseconds. | 1687861201814 |
Response parameters
Examples
Sample success responses
JSON
format
{
"Message": "Specified parameter Limit is not valid.",
"RequestId": "5DAF96FB-A4B6-548C-B999-XXXXXXXX",
"Data": {
"NextToken": "100",
"MaxResults": 100,
"TotalCount": 76,
"TimeSeries": [
{
"RowData": {
"id": "xxx",
"source": "acs.ecs"
},
"Time": "1683561600000"
}
],
"Table": [
{
"RowData": {
"id": "xxx",
"source": "acs.ecs"
}
}
]
},
"Code": "Success",
"Success": true
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-18 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2024-08-05 | The internal configuration of the API is changed, but the call is not affected | View Change Details |