REST API - Logs¶
- class iceprod.rest.handlers.logs.MultiLogsHandler(*args, **kwargs)[source]¶
Handle logs requests.
- async get()[source]¶
Get multiple log entries based on search arguments.
- Body args (json):
from (str): timestamp to start searching to (str): timestamp to end searching name (str): name (type) of log dataset_id (str): dataset_id task_id (str): task_id keys: | separated list of keys to return for each task
- Returns:
{log_id: {keys}}
- Return type:
- class iceprod.rest.handlers.logs.LogsHandler(*args, **kwargs)[source]¶
Handle logs requests.
- class iceprod.rest.handlers.logs.DatasetMultiLogsHandler(*args, **kwargs)[source]¶
Handle logs requests.
- class iceprod.rest.handlers.logs.DatasetTaskLogsHandler(*args, **kwargs)[source]¶
Handle log requests for a task
- async get(dataset_id, task_id)[source]¶
Get logs for a dataset and task.
Note: “num” and “group” are generally not used together.
- Params (optional):
num (int): number of logs, or groups of logs, to return group {true, false}: group by log name order {asc, desc}: order by time keys: | separated list of keys to return for each log