All Products
Search
Document Center

Security Center:DescribeChartData

Last Updated:Nov 14, 2024

Queries the chart data of a security report.

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:
    • 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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:DescribeChartDatanone
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
CharIdstringNo

The ID of the chart.

Note You can call the DescribeChartList operation to query the ID. This parameter is required if the report version is 1.0.0.
CID_ASSET_RISK_TREND
TimeStartlongNo

The beginning of the time range to query. The value is a UNIX timestamp. Unit: milliseconds.

1683603086000
TimeEndlongNo

The end of the time range to query. The value is a UNIX timestamp. Unit: milliseconds.

1683862286000
LangstringNo

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese
  • en: English
zh
ReportIdlongNo

The ID of the security report.

Note You can call the DescribeCustomizeReportList operation to query the ID.
721734
ChartIdstringNo

The ID of the chart.

Note You can call the DescribeChartList operation to query the ID. This parameter is required if the report version is 2.0.0.
CID_VUL_SUMMARY

Response parameters

ParameterTypeDescriptionExample
object
PropertyValuestring

The data of the chart.

{'totalCount': '0'}
ProperyArrayValuestring

The array data of the chart.

[]
ChartTypestring

The type of the chart. Valid values:

  • timeLine
  • timeBar
  • bar
  • line
  • pie
  • gauge
  • table
  • text
timeBar
ChartDataTypestring

The data type of the chart. Valid values:

  • commonCoordinate
  • timeCoordinate
  • multipleValue
  • singleValue
  • propertyValue
  • propertyArrayValue
propertyArrayValue
CoordinateDataobject

The coordinate data.

YAxisListarray<object>

The y-axis values.

YAxisDoobject

The value of the y-axis.

Typestring

The type of the data.

high
Namestring

The name of the data type.

Port
Valuearray

The values of the y-axis that corresponds to x-axis points.

LongItemstring

The value of the y-axis that corresponds to the x-axis point.

1
SubTypestring

The subtype data of the chart.

CID_SUSPICIOUS_TREND-AL
XAxisarray

The x-axis values.

StringItemstring

The value of the x-axis.

2024-01-01
SingleDataobject

The data of the single value chart.

Typestring

The type of the data.

suspicious
Valuelong

The value in the single value chart.

172
Namestring

The name of the data type.

suspicious
MultipleDataarray<object>

The values in the multi-value charts.

MultipleDataItemobject

The value in the multi-value chart.

Typestring

The type of the data.

safe
Valuelong

The attribute value.

0
Colorstring

The font color, which is an RGBA value.

#FFA800
Namestring

The name of the data type.

Safety
RequestIdstring

The request ID.

50CCE62A-2BC4-5CF8-B976-E4F62A31****
ChartSubTypeListarray

The subtype values in which the chart is selected.

ChartSubTypestring

The subtype value in which the chart is selected.

["CID_VUL_TREND-CVE", "CID_VUL_TREND-SYS", "CID_VUL_TREND-CMS", "CID_VUL_TREND-APP", "CID_VUL_TREND-EMG"]
AllChartSubTypeListarray<object>

The valid values for all subtypes of the chart.

AllChartSubTypeobject
SubTypestring

The subtype of the chart.

CID_SUSPICIOUS_TREND-ALL
SubTypeNamestring

The name of the chart subtype.

All Alerts
PropertyArrayValuestring

The attribute value of the array chart.

[]

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

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