GET /jobs
List Jobs. Filtering by userId, type, state namespace, createTimestamp, updateTimestamp, expireTimestamp.
Request
- Base URLhttps://api.cxxx.eagleeyenetworks.com/api/v3.0
- URLhttps://api.cxxx.eagleeyenetworks.com/api/v3.0/jobs
- AuthHTTP bearer
Query parameters
Token string value that references a page for pagination. This value is received when retrieving the first page in the nextPageToken and prevPageToken fields. When a pageToken is provided, the backend remembers search parameters from the original request, so search parameters that affect the result set or order are optional and will be ignored if provided. Representation parameters like include should still be applied.
The number of entries to return per page. The maximum range of valid page sizes is documented with minimum and maximum values, but the range might be further limited dynamically based on the requested information, account, and system status. Values outside of the (dynamic) allowed range will not result in an error, but will be clamped to the nearest limit. Thus, logic to detect the last page should not be based on comparing the requested size with the received size, but on the existence of a nextPageToken value.
List of fields that should be sorted. Use "-" and the field name to specify descending results. Use "+" and the field name to specify ascending results.
User that the Job runs under and/or for. In the case a regular user invokes the POST /jobs endpoint, this is their user ID.
Filter by Jobs.userId. REQUIRED.
The stream type of the device used to generate the media.
State of the Job. When updating a Job, appropriate state changes are enforced. - Pending Jobs can be updated to any state. - Started Jobs can be updated to failure, success, or revoked. - Failure Jobs cannot be updated. - Success Jobs cannot be updated. - Revoked Jobs cannot be updated. When a Job is revoked, the worker is notified through any communication the worker performs that needs to touch the Job resource. For example, when the worker is trying to add a result or update progress through the API, it will receive an error which should result in termination of the work. This error will be a 400 or 500 error. Delete Jobs will interrupt the worker using the same methods (404 error, etc). Uses Celery task state conventions: https://docs.celeryq.dev/en/stable/reference/celery.states.html#misc
Filter by Jobs.state
Jobs with common concerns are grouped according to their namespace. For example, Reports has it's own reports namespace to make filtering and finding report type jobs easier.
Filter by Jobs.namespace
Minimum timestamp for creation date.
Maximum timestamp for creation date.
Minimum timestamp for update date.
Maximum timestamp for update date.
Minimum timestamp for expire date.
Maximum timestamp for expire date.
Filter Jobs.state to those having all given state
Response
List Jobs
Example response
{
"results": [
{
"detailedState": {
"totalItems": 10,
"currentItems": 4
},
"type": "reports.user-permissions",
"namespace": "reports",
"arguments": {
"timeRangeSelect": "day"
},
"userId": "cafe0010",
"scheduleTimestamp": "2020-01-01T00:00:00.000Z",
"createTimestamp": "2020-01-01T00:00:00.000Z",
"updateTimestamp": "2020-01-01T00:00:00.000Z",
"expireTimestamp": "2020-01-01T00:00:00.000Z"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.