Get Assets with Alerts
POST/adoptionadvisor/api/v2/cspm/riskyasset/trend
Get the list of assets generating alerts.
Request
- application/json
Body
- Array [
- ]
- RelativeTimeRangeConfigModel
- AbsoluteTimeRangeConfigModel
- ToNowTimeRangeConfigModel
- absolute
- relative
- to_now
filters object[]
List of filters that can be applied for the API
Possible values: [CLOUD_TYPE
, ALERT_SEVERITY
]
Name of the allowed Filter types.
Only allowed operator for the filter is '='
Value for the applied filter
timeRange object
See the Time Range Model for details.
Possible values: [BACKWARD
, FORWARD
]
Direction in which to count time. Default = BACKWARD
value objectrequired
Model for RelativeTimeDuration
Number of time units
Possible values: [minute
, hour
, day
, week
, month
, year
]
Time unit
value objectrequired
Model for Time
End timestamp
Start timestamp
Possible values: [MINUTE
, HOUR
, DAY
, WEEK
, MONTH
, YEAR
, EPOCH
, LOGIN
]
Time range object
Possible values: [absolute
, relative
, to_now
]
Time type
value objectrequired
Model for Time
End timestamp
Start timestamp
Possible values: [BACKWARD
, FORWARD
]
Direction in which to count time. Default = BACKWARD
value objectrequired
Model for RelativeTimeDuration
Number of time units
Possible values: [minute
, hour
, day
, week
, month
, year
]
Time unit
Possible values: [MINUTE
, HOUR
, DAY
, WEEK
, MONTH
, YEAR
, EPOCH
, LOGIN
]
Time range object
Responses
- 200
- 400
- 401
successful operation
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
assetsWithAlerts object[]
Assets with Alerts
alertsByCloudType object[]
alerts
critical
high
informational
low
medium
cloudType
criticalAssets
highAssets
informationalAssets
insertTs
lowAssets
mediumAssets
privilege
Row count
{
"assetsWithAlerts": [
{
"alertsByCloudType": [
{
"critical": 0,
"high": 0,
"informational": 0,
"low": 0,
"medium": 0,
"type": "string"
}
],
"criticalAssets": 0,
"highAssets": 0,
"informationalAssets": 0,
"insertTs": 0,
"lowAssets": 0,
"mediumAssets": 0
}
],
"privilege": "string",
"rowCount": 0
}
bad_request
unauthorized_access