Find Job By Id

Field selector:

{
    type,
    name,
    percentComplete,
    status,
    message,
    user{username, firstName, lastName},
    submittedTime,
    completedTime
}

Request:

GET /videos/assets/1fc23ffd-dc6f-482c-bdae-bc75704533b1?fs={type,name,percentComplete,status,message,user{username,firstName,lastName},submittedTime,completedTime}

Response:

{
    "type": "JOB_STANDARD",
    "name": "tyrann_mathieu_draft_stock_3200k",
    "percentComplete": 20,
    "status": "IN_PROGRESS",
    "message": "TRANSCODING ",
    "user": {
        "username": "jdoe1",
        "firstName": "John",
        "lastName": "Doe"
    },
    "submittedTime": "2015-03-25T10:00:00Z",
    "completedTime": "2015-03-25T10:05:00Z"
}

Find All Jobs

Field selector:

{
    type,
    name,
    percentComplete,
    status,
    message,
    submittedTime,
    completedTime,
    user(username,firstName,lastName),
    tasks(type, id, name, percentComplete, status)
}

Request:

GET /videos/assets/jobs?fs={type,name,percentComplete,status,message,submittedTime,completedTime,user(username,firstName,lastName),tasks(type, id, name, percentComplete, status)}

Response:

{
    "pager": {},
    "data": [
        {
            "type": "JOB_CLOSED_CAPTIONING",
            "name": "JOB123453: Transcoding VideoAsset1",
            "percentComplete": 50,
            "status": "IN_PROGRESS",
            "message": "Processing Job...",
            "submittedTime": "2015-03-30T16:07:05-07",
            "completedTime": "2015-03-30T16:09:05-07",
            "user": {
                "username": "gbaghdas",
                "firstName": "Greg",
                "lastName": "Baghdassarian"
            },
            "tasks": {
                "pager": {},
                "data": [
                    {
                        "type": "TASK_TRANSCODE_DELEGATE_FILE",
                        "id": "8ebc6bda-7e61-4a9b-9001-2ac7e199549c",
                        "name": "Transcoding Delegate Video For Closed Captioning",
                        "percentComplete": 100,
                        "status": "COMPLETED"
                    },
                    {
                        "type": "TASK_GENERATE_CLOSED_CAPTIONING",
                        "id": "7d9395ba-4976-474a-8495-f513c8513bd1",
                        "name": "Retrieve file from Vitec",
                        "percentComplete": 99,
                        "status": "WAITING"
                    },
                    {
                        "type": "TASK_TRANSCODE_WITH_CLOSED_CAPTIONING",
                        "id": "4a73b4b0-1422-4e72-b491-bfce20c2da35",
                        "name": "Transcoding Final VideoAsset For Closed Captioning",
                        "percentComplete": 50,
                        "status": "IN_PROGRESS"
                    },
                    {
                        "type": "TASK_UPLOAD_TO_DELIVERY_STORAGE_LOCATION",
                        "id": "a98a1781-dee0-4e71-be31-01bd4726267f",
                        "name": "Uploading to delivery storage location",
                        "percentComplete": 0,
                        "status": "PENDING"
                    },
                    {
                        "type": "TASK_SUBMIT_TO_DCL",
                        "id": "38723fbe-2670-44ee-b5b0-5b867bae87d8",
                        "name": "FTPing video Asset",
                        "percentComplete": 0,
                        "status": "PENDING"
                    }
                ]
            }
        }
    ]
}

Find all jobs that were submitted in the last 3 days

Field selector:

{
    type,
    name,
    percentComplete,
    status,
    message,
    submittedTime,
    completedTime,
    user(username,firstName,lastName),
    tasks(type, id, name, percentComplete, status)
}

Query:

{
    "$query":{"submittedTime" : {"$lt:3"}
}

Request:

GET /videos/assets/jobs?fs={type,name,percentComplete,status,message,submittedTime,completedTime,user(username,firstName,lastName),tasks(type, id, name, percentComplete, status)}&s={"$query":{"submitDate" : {"$lt:3"}}

Response:

{
    "pager": {},
    "data": [
        {
            "type": "JOB_CLOSED_CAPTIONING",
            "name": "JOB89155: Transcoding VideoAsset2",
            "percentComplete": 62,
            "status": "IN_PROGRESS",
            "message": "Processing Job...",
            "submittedTime": "2015-04-01T16:12:39-07",
            "completedTime": "2015-03-30T16:14:39-07",
            "user": {
                "username": "gbaghdas",
                "firstName": "Greg",
                "lastName": "Baghdassarian"
            },
            "tasks": {
                "pager": {},
                "data": [
                    {
                        "type": "TASK_TRANSCODE_DELEGATE_FILE",
                        "id": "42c86fdc-b656-4b1b-a80a-2bccff6c33dc",
                        "name": "Transcoding Delegate Video For Closed Captioning",
                        "percentComplete": 100,
                        "status": "COMPLETED"
                    },
                    {
                        "type": "TASK_GENERATE_CLOSED_CAPTIONING",
                        "id": "3a94d8da-7f0d-422c-ab43-bc041dc014ae",
                        "name": "Retrieve file from Vitec",
                        "percentComplete": 99,
                        "status": "WAITING"
                    },
                    {
                        "type": "TASK_TRANSCODE_WITH_CLOSED_CAPTIONING",
                        "id": "cd291903-4742-4f1a-b43e-3ea388a9e9fa",
                        "name": "Transcoding Final VideoAsset For Closed Captioning",
                        "percentComplete": 50,
                        "status": "IN_PROGRESS"
                    },
                    {
                        "type": "TASK_UPLOAD_TO_DELIVERY_STORAGE_LOCATION",
                        "id": "61cd2f48-d4ff-46b8-893c-e70e6cea9afc",
                        "name": "Uploading to delivery storage location",
                        "percentComplete": 0,
                        "status": "PENDING"
                    },
                    {
                        "type": "TASK_SUBMIT_TO_DCL",
                        "id": "b0f9a97b-8411-4b4e-a640-ae0612da8b65",
                        "name": "FTPing video Asset",
                        "percentComplete": 0,
                        "status": "PENDING"
                    }
                ]
            }
        },
        {
            "type": "JOB_CLOSED_CAPTIONING",
            "name": "JOB123453: Transcoding VideoAsset4",
            "percentComplete": 62,
            "status": "IN_PROGRESS",
            "message": "Processing Job...",
            "submittedTime": "2015-03-30T16:12:39-07",
            "completedTime": "2015-03-30T16:14:39-07",
            "user": {
                "username": "gbaghdas",
                "firstName": "Greg",
                "lastName": "Baghdassarian"
            },
            "tasks": {
                "pager": {},
                "data": [
                    {
                        "type": "TASK_TRANSCODE_DELEGATE_FILE",
                        "id": "42c86fdc-b656-4b1b-a80a-2bccff6c33dc",
                        "name": "Transcoding Delegate Video For Closed Captioning",
                        "percentComplete": 100,
                        "status": "COMPLETED"
                    },
                    {
                        "type": "TASK_GENERATE_CLOSED_CAPTIONING",
                        "id": "3a94d8da-7f0d-422c-ab43-bc041dc014ae",
                        "name": "Retrieve file from Vitec",
                        "percentComplete": 99,
                        "status": "IN_PROGRESS"
                    },
                    {
                        "type": "TASK_TRANSCODE_WITH_CLOSED_CAPTIONING",
                        "id": "cd291903-4742-4f1a-b43e-3ea388a9e9fa",
                        "name": "Transcoding Final VideoAsset For Closed Captioning",
                        "percentComplete": 50,
                        "status": "PENDING"
                    },
                    {
                        "type": "TASK_UPLOAD_TO_DELIVERY_STORAGE_LOCATION",
                        "id": "61cd2f48-d4ff-46b8-893c-e70e6cea9afc",
                        "name": "Uploading to delivery storage location",
                        "percentComplete": 0,
                        "status": "PENDING"
                    },
                    {
                        "type": "TASK_SUBMIT_TO_DCL",
                        "id": "b0f9a97b-8411-4b4e-a640-ae0612da8b65",
                        "name": "FTPing video Asset",
                        "percentComplete": 0,
                        "status": "PENDING"
                    }
                ]
            }
        }
    ]
}