task_history list¶
Description¶
タスク履歴の一覧を出力します。
Examples¶
基本的な使い方¶
--task_id
に出力対象のタスクのtask_idを指定してください。
$ annofabcli task_history list --project_id prj1 --task_id file://task_id.txt
出力結果¶
JSON出力¶
$ annofabcli task_history list --project_id prj1 --format pretty_json --output out.json
out.json¶
{
"task1": [
{
"project_id": "prj1",
"task_id": "task1",
"task_history_id": "12345678-abcd-1234-abcd-1234abcd5678",
"started_datetime": "2020-12-09T02:17:42.257+09:00",
"ended_datetime": null,
"accumulated_labor_time_milliseconds": "PT0S",
"phase": "annotation",
"phase_stage": 1,
"account_id": null,
"user_id": null,
"username": null,
"worktime_hour": 0.0
},
...
],
"task2": [
{
"project_id": "prj1",
"task_id": "task2",
"task_history_id": "22345678-abcd-1234-abcd-1234abcd5678",
"started_datetime": "2020-12-09T02:17:42.257+09:00",
"ended_datetime": null,
"accumulated_labor_time_milliseconds": "PT0S",
"phase": "annotation",
"phase_stage": 1,
"account_id": null,
"user_id": null,
"username": null,
"worktime_hour": 0.0
},
...
],
}
Usage Details¶
タスク履歴の一覧を出力します。
usage: annofabcli task_history list [-h] [--yes] [--endpoint_url ENDPOINT_URL]
[--logdir LOGDIR] [--disable_log]
[--debug] -p PROJECT_ID
[-t TASK_ID [TASK_ID ...]]
[-f {csv,json,pretty_json}] [-o OUTPUT]
[--csv_format CSV_FORMAT]
Named Arguments¶
- -p, --project_id
対象のプロジェクトのproject_idを指定します。
- -t, --task_id
対象のタスクのtask_idを指定します。
file://
を先頭に付けると、task_idの一覧が記載されたファイルを指定できます。- -f, --format
Possible choices: csv, json, pretty_json
出力フォーマットを指定します。
Default: "csv"
- -o, --output
出力先のファイルパスを指定します。未指定の場合は、標準出力に出力されます。
- --csv_format
CSVのフォーマットをJSON形式で指定します。
--format
がcsv
でないときは、このオプションは無視されます。file://
を先頭に付けると、JSON形式のファイルを指定できます。 指定した値はpandas.DataFrame.to_csv
の引数として渡されます。
global optional arguments¶
- --yes
処理中に現れる問い合わせに対して、常に
yes
と回答します。- --endpoint_url
Annofab WebAPIのエンドポイントを指定します。
Default: "https://annofab.com"
- --logdir
ログファイルを保存するディレクトリを指定します。
Default: .log
- --disable_log
ログを無効にします。
- --debug
HTTPリクエストの内容やレスポンスのステータスコードなど、デバッグ用のログが出力されます。