Home

/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

User

string

The app's owner.

appId

string

The app's Id.

appType

string

The type of app. You must specify one or more of the following. Use a comma separated list to specify multiple app types.

0: MR
1: Hive
2: Spark
13: Workflows
15: Tez
16: Impala

start_time

string

Starting date of date range. Format: YYYY-MM-DD.

end_time

string

Ending date of date range. Format: YYYY-MM-DD.

limit

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

entityType

integer

App type.

0: MR
1: Hive
2: Spark
13: Workflows
15: Tez
16: Impala

clusterName

string

Cluster the violating app was on at time of violation.

appId

string

Violating app's Id. This is unique to the app.

eventTime

integer

Time the violation occurred. (Unix epoch format)

eventName

string

Name assigned when AutoAction was created.

entityId

string

An unique ID associated with the AutoAction; generated by Unravel.

user

string

Username of AutoAction's creator.

queue

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"
   }
]