{- "schedules": [
- {
- "created_at": "2020-12-31T11:22:33Z",
- "cron": "string",
- "database": "Alpha",
- "delay": 5,
- "engine_version": "stable",
- "executing_user_id": 0,
- "name": "string",
- "priority": 1,
- "query": "string",
- "retry_limit": 3,
- "timezone": "UTC",
- "type": "string",
- "user_name": "Treasure Data"
}
]
}
Creates a schedule.
OK
name=string&cron=string&database=Alpha&delay=5&executing_user_id=0&engine_version=stable&pool_name=pool_1&priority=1&retry_limit=3&query=string&result=string&timezone=UTC&type=string
{- "created_at": "2020-12-31T11:22:33Z",
- "cron": "string",
- "database": "Alpha",
- "delay": 5,
- "name": "string",
- "query": "string",
- "timezone": "UTC",
- "type": "string",
- "user_name": "Treasure Data"
}
{- "created_at": "2020-12-31T11:22:33Z",
- "cron": "string",
- "database": "Alpha",
- "delay": 5,
- "name": "string",
- "query": "string",
- "timezone": "UTC",
- "type": "string",
- "user_name": "Treasure Data"
}
Updates a schedule.
OK
name=string&cron=string&database=Alpha&delay=5&executing_user_id=0&engine_version=stable&pool_name=pool_1&priority=1&retry_limit=3&query=string&result=string&timezone=UTC&type=string
{- "created_at": "2020-12-31T11:22:33Z",
- "cron": "string",
- "database": "Alpha",
- "delay": 5,
- "name": "string",
- "query": "string",
- "timezone": "UTC",
- "type": "string",
- "user_name": "Treasure Data"
}
num=1&domain_key=domain_key_123
{- "jobs": [
- {
- "job_id": 19,
- "type": "presto",
- "scheduled_at": "2020-12-31 11:22:33 UTC"
}
]
}
Gets a history of scheduled executions by name.
OK
{- "count": 20,
- "from": 5,
- "to": 15,
- "history": [
- {
- "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",
- "scheduled_at": "2020-12-31 11:22:33 UTC"
}
]
}