/autoactions/recent_violations?eventType=AAVA
Gets a list of recent AutoAction violations filtered by app type.
Request
GET http://unravel-host
:3000/api/v1/autoactions/recent_violations?eventType=AAVA?start_time={timestamp}&end_time={timestamp}&limit={integer}"
Path parameters
None.
Query parameters
Required parameters are highlighted
.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
| string | The app's owner. | ||||||
| string | The app's Id. | ||||||
| string | The type of app. You must specify one or more of the following. Use a comma separated list to specify multiple app types.
| ||||||
| string | Starting date of date range. Format: | ||||||
| string | Ending date of date range. Format: | ||||||
| integer | Maximum number of violations to return. Default: 100 |
Response body
Name | Type | Description |
---|---|---|
[violation] | array | JSON structure containing a list of violations grouped by event type. |
Violation
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
| integer | App type.
| ||||||
| string | Cluster the violating app was on at time of violation. | ||||||
| string | Violating app's Id. This is unique to the app. | ||||||
| integer | Time the violation occurred. (Unix epoch format) | ||||||
| string | Name assigned when AutoAction was created. | ||||||
| string | An unique ID associated with the AutoAction; generated by Unravel. | ||||||
| string | Username of AutoAction's creator. | ||||||
| string | Queue the violating app was in at time of violation. |
Examples
Request:
curl -X GET "http://node.company.com:3000/api/v1/autoactions/recent_violations?start_time=2019-11-01&end_time=2019-11-31&limit=1" -H "accept: application/json" -H "Authorization: JWT token
"
Response body:
[ { "entityType": 0, "clusterName": "N/A", "appId": "http://node.company.com:3000/#/app/operations/charts/impala?from=1578397319224&to=1578397919224&at=1578397619224&interval=1m", "eventTime": 1578397619224, "eventName": "Long running impala query", "entityId": "8496537073757152411", "user": "N/A", "queue": "N/A" } ]