diff --git a/proto/spaceone/api/cost_analysis/plugin/cost.proto b/proto/spaceone/api/cost_analysis/plugin/cost.proto index 814d29ac..b8db6fab 100644 --- a/proto/spaceone/api/cost_analysis/plugin/cost.proto +++ b/proto/spaceone/api/cost_analysis/plugin/cost.proto @@ -11,9 +11,6 @@ service Cost { rpc get_data (GetDataRequest) returns (stream CostsInfo) {} } -//{ -// -//} message GetDataRequest { google.protobuf.Struct options = 1; google.protobuf.Struct secret_data = 2; @@ -26,26 +23,18 @@ message GetDataRequest { message CostInfo { float cost = 1; - string currency = 2; - float usage_quantity = 3; + float usage_quantity = 2; + string usage_unit = 3; string provider = 4; string region_code = 5; - string category = 6; - string product = 7; - string account = 8; - string usage_type = 9; - string resource_group = 10; - string resource = 11; + string product = 6; + string usage_type = 7; + string resource = 8; google.protobuf.Struct tags = 12; google.protobuf.Struct additional_info = 13; - string billed_at = 14; - float usd_cost = 15; - string usage_unit = 16; + string billed_date = 21; } -//{ -// -//} message CostsInfo { repeated CostInfo results = 1; } \ No newline at end of file diff --git a/proto/spaceone/api/cost_analysis/v1/cost.proto b/proto/spaceone/api/cost_analysis/v1/cost.proto index b3727a19..e50be285 100644 --- a/proto/spaceone/api/cost_analysis/v1/cost.proto +++ b/proto/spaceone/api/cost_analysis/v1/cost.proto @@ -103,8 +103,7 @@ message CreateCostRequest { string project_id = 32; string data_source_id = 33; string domain_id = 34; - // +optional - string billed_at = 41; + string billed_date = 41; } //{ @@ -152,6 +151,12 @@ message CostQuery { // +optional string data_source_id = 13; string domain_id = 14; + // +optional + string billed_year = 21; + // +optional + string billed_month = 22; + // +optional + string billed_date = 23; } @@ -172,8 +177,9 @@ message CostQuery { // }, // "data_source_id": "ds-fcba92ca73b1" // "domain_id": "domain-58010aa2e451", -// "billed_at": "2022-07-19T09:44:27.326Z", -// "created_at": "2022-07-19T09:44:27.373Z" +// "billed_year": "2022", +// "billed_month": "2022-07", +// "billed_date": "2022-07-19" //} message CostInfo { string cost_id = 1; @@ -192,8 +198,9 @@ message CostInfo { string project_id = 32; string data_source_id = 33; string domain_id = 34; - string billed_at = 41; - string created_at = 42; + string billed_year = 41; + string billed_month = 42; + string billed_date = 43; } //{ @@ -215,8 +222,9 @@ message CostInfo { // }, // "data_source_id": "ds-fcba92ca73b1" // "domain_id": "domain-58010aa2e451", -// "billed_at": "2022-07-19T09:44:27.326Z", -// "created_at": "2022-07-19T09:44:27.373Z" +// "billed_year": "2022", +// "billed_month": "2022-07", +// "billed_date": "2022-07-19" // }, // { // "cost_id": "cost-1d5e1b0dbf82", @@ -232,8 +240,9 @@ message CostInfo { // "tags": {}, // "data_source_id": "ds-fcba92ca73b1", // "domain_id": "domain-58010aa2e451", -// "billed_at": "2021-01-01T00:00:00.000Z", -// "created_at": "2022-04-06T13:49:39.675Z" +// "billed_year": "2022", +// "billed_month": "2022-07", +// "billed_date": "2022-07-20" // } // ], // "total_count": 307066