Queries the security operations trends for vulnerabilities, alerts, and baselines.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:GetDataTrend |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BizTypes |
string |
Yes |
The type of security data to query. Valid values:
|
HC_NEW,HC_OPERATE |
| StartTimestamp |
integer |
Yes |
The start timestamp of the query. Unit: milliseconds. |
1687334501000 |
| EndTimestamp |
integer |
Yes |
The end timestamp of the query. Unit: milliseconds. |
1721923200000 |
| Interval |
integer |
Yes |
The interval for querying data. Unit: milliseconds. Note
Minimum value: 1000. |
86400000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PlainResult |
||
| Data |
object |
The returned data. |
|
| DateList |
array |
The list of statistical timestamps for the trend data. |
|
|
integer |
The statistical timestamp for the trend data. Unit: seconds. |
1721404800 |
|
| DateStrList |
array |
The list of statistical date strings for the trend data. |
|
|
string |
The statistical date string for the trend data. Note
Format: yyyy-MM-dd HH:mm:ss. |
2024-01-01 00:00:00 |
|
| ItemList |
array<object> |
The list of returned data. |
|
|
object |
The returned data. |
||
| KeyName |
string |
The type of the security data. Valid values:
|
HC_NEW |
| CountList |
array |
The statistical values of the trend data. |
|
|
integer |
The statistical value of the trend data. |
10 |
|
| RequestId |
string |
The request ID. Alibaba Cloud generates a unique ID for each request. You can use the ID to troubleshoot issues. |
1383B0DB-D5D6-4B0C-9E6B-75939C8E**** |
Examples
Success response
JSON format
{
"Data": {
"DateList": [
1721404800
],
"DateStrList": [
"2024-01-01 00:00:00"
],
"ItemList": [
{
"KeyName": "HC_NEW",
"CountList": [
10
]
}
]
},
"RequestId": "1383B0DB-D5D6-4B0C-9E6B-75939C8E****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalParam | Illegal param | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.