{- "jobs": [
- {
- "cpu_time": 0,
- "created_at": "2020-12-31 11:22:33 UTC",
- "database": "string",
- "duration": 10,
- "end_at": "2020-12-31 11:22:33 UTC",
- "hive_result_schema": "string",
- "job_id": "19",
- "linked_result_export_job_id": 19,
- "num_records": 100,
- "organization": "string",
- "priority": 0,
- "query": "string",
- "result": "string",
- "result_export_target_job_id": 19,
- "result_size": 1048576,
- "retry_limit": 3,
- "start_at": "2020-12-31 11:22:33 UTC",
- "status": "success",
- "type": "presto",
- "updated_at": "2020-12-31 11:22:33 UTC",
- "url": "string",
- "user_name": "Treasure Data"
}
], - "count": 0,
- "from": 0,
- "to": 0
}
{- "cpu_time": 0,
- "created_at": "2020-12-31 11:22:33 UTC",
- "database": "string",
- "duration": 10,
- "end_at": "2020-12-31 11:22:33 UTC",
- "hive_result_schema": "string",
- "job_id": "19",
- "linked_result_export_job_id": 19,
- "num_records": 100,
- "organization": "string",
- "priority": 0,
- "query": "string",
- "result": "string",
- "result_export_target_job_id": 19,
- "result_size": 1048576,
- "retry_limit": 3,
- "start_at": "2020-12-31 11:22:33 UTC",
- "status": "success",
- "type": "presto",
- "updated_at": "2020-12-31 11:22:33 UTC",
- "url": "string",
- "user_name": "Treasure Data",
- "debug": {
- "cmdout": "string",
- "stderr": "string"
}
}
Show the status information of the given job id at last execution as well as other related information.
OK
{- "job_id": "19",
- "cpu_time": 0,
- "created_at": "2020-12-31 11:22:33 UTC",
- "end_at": "2020-12-31 11:22:33 UTC",
- "duration": 10,
- "num_records": 100,
- "result_size": 1048576,
- "start_at": "2020-12-31 11:22:33 UTC",
- "status": "success",
- "updated_at": "2020-12-31 11:22:33 UTC"
}
Checks the status of a job using the domain key.
OK
{- "job_id": "19",
- "cpu_time": 0,
- "created_at": "2020-12-31 11:22:33 UTC",
- "end_at": "2020-12-31 11:22:33 UTC",
- "duration": 10,
- "num_records": 100,
- "result_size": 1048576,
- "start_at": "2020-12-31 11:22:33 UTC",
- "status": "success",
- "updated_at": "2020-12-31 11:22:33 UTC"
}
Creates a job of a given type under a specified database.
OK
{- "query": "SELECT COUNT(1) FROM www_access",
- "priority": 0,
- "result": "string",
- "retry_limit": 0,
- "pool_name": "string"
}
{- "job": "19",
- "job_id": "19",
- "database": "Alpha"
}
Sets the results of a specified job ID.
OK
domain_key=domain_key_123&pool_name=pool_1&priority=0&query=SELECT%20%2A%20FROM%20my_table%3B&retry_limit=3&scheduled_time=2020-12-31T11%3A22%3A33Z&target_job_id=19&result_connection_id=17&result=string&database=Alpha&table=Bravo
{- "cpu_time": 0,
- "created_at": "2020-12-31 11:22:33 UTC",
- "database": "string",
- "duration": 10,
- "end_at": "2020-12-31 11:22:33 UTC",
- "hive_result_schema": "string",
- "job_id": "19",
- "linked_result_export_job_id": 19,
- "num_records": 100,
- "organization": "string",
- "priority": 0,
- "query": "string",
- "result": "string",
- "result_export_target_job_id": 19,
- "result_size": 1048576,
- "retry_limit": 3,
- "start_at": "2020-12-31 11:22:33 UTC",
- "status": "success",
- "type": "presto",
- "updated_at": "2020-12-31 11:22:33 UTC",
- "url": "string",
- "user_name": "Treasure Data",
- "debug": {
- "cmdout": "string",
- "stderr": "string"
}
}
Creates an export job.
OK
access_key_id=a_key&assume_role=string&bucket=test_bucket&domain_key=domain_key_123&encryption=string&file_format=json.gz&file_prefix=string&from=1356998400&pool_name=pool_1&secret_access_key=secret_abc&storage_type=s3&to=1356998400
{- "job": "19",
- "job_id": "19",
- "database": "Alpha"
}
Creates a partial delete job.
OK
domain_key=domain_key_123&from=1356998400&pool_name=pool_1&to=1356998400
{- "job_id": 19,
- "database": "Alpha",
- "table": "Bravo",
- "from": 1356998400,
- "to": 1356998400
}