JobTask #
A JobTask is a task unit subdividing a Job. The division criteria are specified in each DataSource plugin.
Package : spaceone.api.cost_analysis.v1
JobTask #
JobTask Methods:
Method | Request | Response |
---|---|---|
get | JobTaskRequest | JobTaskInfo |
list | JobTaskQuery | JobTasksInfo |
stat | JobTaskStatQuery | Struct |
get #
Gets a specific JobTask. Prints detailed information about the JobTask, including the relevant resources: DataSource and Job. The criteria used for dividing a Job into JobTasks can be found in the DataSource used, but the total count of divided JobTasks can be found by this method.
POST /cost-analysis/v1/job-task/get
job_task_id (string)
Required
status (Status)
Required
options (Struct)
Required
created_count (int32)
Required
error_code (string)
Required
error_message (string)
Required
resource_group (ResourceGroup)
Required
domain_id (string)
Required
workspace_id (string)
Required
job_id (string)
Required
data_source_id (string)
Required
created_at (string)
Required
started_at (string)
Required
updated_at (string)
Required
finished_at (string)
Required
{
"job_task_id": "job-task-3622d860a776",
"status": "SUCCESS",
"options": {
"month": "202207",
"platform": "gcp"
},
"created_count": 1,
"job_id": "job-85cf2c385252",
"data_source_id": "ds-c96609f5afeb",
"domain_id": "domain-58010aa2e451",
"created_at": "2022-07-17T16:00:08.266Z",
"started_at": "2022-07-17T16:01:28.243Z",
"updated_at": "2022-07-17T16:01:28.939Z",
"finished_at": "2022-07-17T16:01:28.939Z"
}
list #
Gets a list of all JobTasks. You can use a query to get a filtered list of JobTasks.
POST /cost-analysis/v1/job-task/list
query (Query)
job_task_id (string)
status (Status)
workspace_id (string)
job_id (string)
data_source_id (string)
{
"query": {}
}
results (JobTaskInfo)
Repeated
Required
total_count (int32)
Required
{
"results": [
{
"job_task_id": "job-task-3622d860a776",
"status": "SUCCESS",
"options": {
"platform": "gcp",
"month": "202207"
},
"created_count": 1,
"job_id": "job-85cf2c385252",
"data_source_id": "ds-c96609f5afeb",
"domain_id": "domain-58010aa2e451",
"created_at": "2022-07-17T16:00:08.266Z",
"started_at": "2022-07-17T16:01:28.243Z",
"updated_at": "2022-07-17T16:01:28.939Z",
"finished_at": "2022-07-17T16:01:28.939Z"
},
{
"job_task_id": "job-task-038c0b076ec5",
"status": "SUCCESS",
"options": {
"account": "257706363616",
"start": "2022-07-01"
},
"created_count": 5756,
"job_id": "job-6b6765f757a9",
"data_source_id": "ds-fcba92ca73b1",
"domain_id": "domain-58010aa2e451",
"created_at": "2022-07-17T16:00:05.099Z",
"started_at": "2022-07-17T16:00:47.356Z",
"updated_at": "2022-07-17T16:01:20.856Z",
"finished_at": "2022-07-17T16:01:20.856Z"
}
],
"total_count": 720
}
stat #
POST /cost-analysis/v1/job-task/stat
Message #
JobTaskInfo #
job_task_id (string)
Required
status (Status)
Required
options (Struct)
Required
created_count (int32)
Required
error_code (string)
Required
error_message (string)
Required
resource_group (ResourceGroup)
Required
domain_id (string)
Required
workspace_id (string)
Required
job_id (string)
Required
data_source_id (string)
Required
created_at (string)
Required
started_at (string)
Required
updated_at (string)
Required
finished_at (string)
Required
JobTaskQuery #
query (Query)
job_task_id (string)
status (Status)
workspace_id (string)
job_id (string)
data_source_id (string)
JobTaskRequest #
job_task_id (string)
Required
JobTaskStatQuery #
query (StatisticsQuery)
Required
JobTasksInfo #
results (JobTaskInfo)
Repeated
Required
total_count (int32)
Required