All Products
Search
Document Center

Security Center:GetDataTrend

Last Updated:May 22, 2025

Queries the security operations trends of the vulnerabilities, alerts, and baseline risks.

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
BizTypesstringYes

The type of the security data that you want to query. Valid values:

  • HC_NEW: the number of new baseline risks.
  • HC_OPERATE: the number of handled baseline risks.
  • VUL_NEW: the number of new vulnerabilities.
  • VUL_OPERATE: the number of handled vulnerabilities.
  • SUSP_NEW: the number of new alerts.
  • SUSP_OPERATE: the number of handled alerts.
HC_NEW,HC_OPERATE
StartTimestamplongYes

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

1687334501000
EndTimestamplongYes

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

1721923200000
IntervalintegerYes

The interval of the data that you want to query. Unit: milliseconds.

Note The minimum value is 1000.
86400000

Response parameters

ParameterTypeDescriptionExample
object

PlainResult

Dataobject

The response parameters.

DateListarray

The statistical timestamps of the trend data.

DateListinteger

The statistical timestamp of the trend data. Unit: seconds.

1721404800
DateStrListarray

The statistical dates and time for the trend data.

DateStrListstring

The statistical time and date of the trend data.

Note The value is in the yyyy-MM-dd HH:mm:ss format.
2024-01-01 00:00:00
ItemListarray<object>

The returned data.

ItemListobject

The returned data.

KeyNamestring

The type of the security data. Valid values:

  • HC_NEW: the number of new baseline risks.
  • HC_OPERATE: the number of handled baseline risks.
  • VUL_NEW: the number of new vulnerabilities.
  • VUL_OPERATE: the number of handled vulnerabilities.
  • SUSP_NEW: the number of new alerts.
  • SUSP_OPERATE: the number of handled alerts.
HC_NEW
CountListarray

The statistical values of the trend data.

CountListlong

The statistical value of the trend data.

10
RequestIdstring

The request ID.

1383B0DB-D5D6-4B0C-9E6B-75939C8E****

Examples

Sample success responses

JSONformat

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

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