Queries the statistics of charts configured in a security report.
Operation description
Before querying chart data for a custom report, perform the following steps in order:
Call DescribeCustomizeReportList to obtain the ReportId and confirm the report version.
Call DescribeChartList, set ProjectCode to customize_report, and pass in the ReportId to obtain the chart ID.
Call this operation to query chart data. If the report version is 1.0.0, the CharId parameter is required. If the report version is 2.0.0, the ChartId parameter is required. Use the IDs returned by the corresponding report and chart.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeChartData |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CharId |
string |
No |
The chart ID. Note
Call the DescribeChartList operation to obtain this parameter. This parameter is required if the report version is 1.0.0. |
BIZ_STAT_QUERY_SECURITY_SCORE |
| TimeStart |
integer |
No |
The start timestamp for statistics. Unit: milliseconds. |
1683603086000 |
| TimeEnd |
integer |
No |
The end timestamp for statistics. Unit: milliseconds. |
1683862286000 |
| Lang |
string |
No |
The language type for the request and response messages. Default value: zh. Valid values:
|
zh |
| ReportId |
integer |
No |
The report ID. Note
Call the DescribeCustomizeReportList operation to obtain this parameter. |
721734 |
| ChartId |
string |
No |
The chart ID. Note
Call the DescribeChartList operation to obtain this parameter. This parameter is required if the report version is 2.0.0. |
BIZ_STAT_QUERY_SECURITY_SCORE |
| ResourceDirectoryAccountId |
integer |
No |
The Alibaba Cloud account ID of the member accounts in the resource directory. Note
Call the DescribeMonitorAccounts operation to obtain this parameter. |
127608589417**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PropertyValue |
string |
The property value in the chart. |
{'totalCount': '0'} |
| ProperyArrayValue |
string |
The property array of the chart. |
[] |
| ChartType |
string |
The chart type. Valid values:
|
timeBar |
| ChartDataType |
string |
The chart data type. Valid values:
|
propertyArrayValue |
| CoordinateData |
object |
The coordinate data. |
|
| YAxisList |
array<object> |
The list of Y-axis values. |
|
|
object |
The Y-axis value. |
||
| Type |
string |
The data type. |
high |
| Name |
string |
The data type name. |
Port |
| Value |
array |
The Y-axis values corresponding to each X-axis point. |
|
|
string |
The Y-axis value corresponding to the X-axis point. |
1 |
|
| SubType |
string |
The chart subtype data. |
CID_SUSPICIOUS_TREND-AL |
| XAxis |
array |
The list of X-axis values. |
|
|
string |
The X-axis value. |
2024-01-01 |
|
| SingleData |
object |
The single-value chart data. |
|
| Type |
string |
The data type. |
suspicious |
| Value |
integer |
The data value of the single-value chart. |
172 |
| Name |
string |
The data type name. |
suspicious |
| MultipleData |
array<object> |
The multiple-value chart data. |
|
|
object |
The multiple-value chart. |
||
| Type |
string |
The data type. |
safe |
| Value |
integer |
The property value. |
0 |
| Color |
string |
The font color in RGBA hexadecimal color code. |
#FFA800 |
| Name |
string |
The data type name. |
Safety |
| RequestId |
string |
The request ID generated by Alibaba Cloud for this request. You can use this ID to troubleshoot issues. |
50CCE62A-2BC4-5CF8-B976-E4F62A31**** |
| ChartSubTypeList |
array |
The list of selected chart subtype values. |
|
|
string |
The selected chart subtype value. |
["CID_VUL_TREND-CVE", "CID_VUL_TREND-SYS", "CID_VUL_TREND-CMS", "CID_VUL_TREND-APP", "CID_VUL_TREND-EMG"] |
|
| AllChartSubTypeList |
array<object> |
The list of all available subtype values for the chart. |
|
|
object |
|||
| SubType |
string |
The chart subtype. |
CID_SUSPICIOUS_TREND-ALL |
| SubTypeName |
string |
The chart subtype name. |
All Alerts |
| PropertyArrayValue |
string |
The array chart property values. |
[] |
Examples
Success response
JSON format
{
"PropertyValue": "{'totalCount': '0'}",
"ProperyArrayValue": "[]",
"ChartType": "timeBar",
"ChartDataType": "propertyArrayValue",
"CoordinateData": {
"YAxisList": [
{
"Type": "high",
"Name": "Port",
"Value": [
"1"
],
"SubType": "CID_SUSPICIOUS_TREND-AL"
}
],
"XAxis": [
"2024-01-01"
]
},
"SingleData": {
"Type": "suspicious",
"Value": 172,
"Name": "suspicious"
},
"MultipleData": [
{
"Type": "safe",
"Value": 0,
"Color": "#FFA800",
"Name": "Safety"
}
],
"RequestId": "50CCE62A-2BC4-5CF8-B976-E4F62A31****",
"ChartSubTypeList": [
"[\"CID_VUL_TREND-CVE\", \"CID_VUL_TREND-SYS\", \"CID_VUL_TREND-CMS\", \"CID_VUL_TREND-APP\", \"CID_VUL_TREND-EMG\"]"
],
"AllChartSubTypeList": [
{
"SubType": "CID_SUSPICIOUS_TREND-ALL",
"SubTypeName": "All Alerts"
}
],
"PropertyArrayValue": "[]"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | RdCheckNoPermission | Resource directory account verification has no permission. | |
| 500 | ServerError | ServerError | |
| 500 | RdCheckInnerError | Resource directory account service internal error. | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.