Skip to content

Commit 18b863c

Browse files
authored
Merge pull request #555 from ImMin5/master
Add task_changed field at job task info
2 parents 021ac77 + c43fa25 commit 18b863c

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

proto/spaceone/api/cost_analysis/plugin/job.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ message GetTasksRequest {
2929

3030
message TaskInfo {
3131
google.protobuf.Struct task_options = 1;
32+
// +optional
33+
ChangedInfo task_changed = 2;
3234
}
3335

3436
message ChangedInfo {

proto/spaceone/api/cost_analysis/v1/job.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ message SyncedAccountInfo{
100100
// "finished_at": "2022-04-02T09:19:47.715Z",
101101
// "changed": [
102102
// {
103-
// "start": "2021-01-01T00:00:00.000Z"
103+
// "start": "2021-01"
104104
// }
105105
// ]
106106
//}
@@ -177,7 +177,7 @@ message JobInfo {
177177
// "finished_at": "2022-07-17T16:01:28.206Z",
178178
// "changed": [
179179
// {
180-
// "start": "2022-07-01T00:00:00.000Z"
180+
// "start": "2022-07"
181181
// }
182182
// ]
183183
// }

proto/spaceone/api/cost_analysis/v1/job_task.proto

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ option go_package = "github.com/cloudforet-io/api/dist/go/spaceone/api/cost_anal
88
import "google/protobuf/struct.proto";
99
import "google/api/annotations.proto";
1010
import "spaceone/api/core/v2/query.proto";
11-
11+
import "spaceone/api/cost_analysis/v1/job.proto";
1212

1313
service JobTask {
1414

@@ -45,6 +45,7 @@ message JobTaskRequest {
4545
}
4646

4747
//{
48+
// "data_source_id": "ds-12asdsf2a",
4849
// "query": {}
4950
//}
5051
message JobTaskQuery {
@@ -80,6 +81,13 @@ message JobTaskQuery {
8081
// "month": "202207",
8182
// "platform": "gcp"
8283
// },
84+
// "changed": {
85+
// "start": "2024-12",
86+
// "end": "2025-01",
87+
// "filter": {
88+
// "additional_info.Account ID": "3241123123"
89+
// }
90+
// },
8391
// "created_count": 1,
8492
// "job_id": "job-85cf2c385252",
8593
// "data_source_id": "ds-c96609f5afeb",
@@ -109,9 +117,10 @@ message JobTaskInfo {
109117
string job_task_id = 1;
110118
Status status = 2;
111119
google.protobuf.Struct options = 3;
112-
int32 created_count = 4;
113-
string error_code = 5;
114-
string error_message = 6;
120+
ChangedInfo changed = 4;
121+
int32 created_count = 5;
122+
string error_code = 6;
123+
string error_message = 7;
115124

116125
ResourceGroup resource_group = 20;
117126
string domain_id = 21;

0 commit comments

Comments
 (0)