Skip to content

Commit

Permalink
Merge pull request #432 from ImMin5/master
Browse files Browse the repository at this point in the history
Add description for `UnifiedCost` Service
  • Loading branch information
ImMin5 authored Oct 10, 2024
2 parents cbe74dc + 913dc50 commit f128f95
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion proto/spaceone/api/cost_analysis/v1/unified_cost.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Unified Cost service is a service that provides unified cost based on the cost data from various DataSources registered in each domain.
syntax = "proto3";

package spaceone.api.cost_analysis.v1;
Expand Down Expand Up @@ -56,18 +57,45 @@ message UnifiedCostAnalyzeQuery {
bool is_confirmed = 2;
}


//{
// "unified_cost_id": "unified-cost-11153fceca11",
// "cost": {
// "KRW": 13000,
// "USD": 1,
// "JPY": 100
// },
// "billed_month": "2024-08",
// "billed_year": "2024",
// "exchange_date": "2024-08-14",
// "exchange_source": "Yahoo Finance!",
// "aggregation_date": "2024-08-15",
// "currency": "USD",
// "is_confirmed": true,
// "provider": "aws",
// "region_code": "AP2",
// "region_key": "aws.AP2",
// "product": "AmazonS3",
// "data_source_name": "AWS",
// "workspace_name": "SpaceONE",
// "data_source_id": "ds-1acca85666c1",
// "project_id": project-1acca85666c1,
// "workspace_id": "workspace-1acca85666c1",
// "domain_id": "domain-1acca85666c1",
// "created_at": "2024-09-30T08:00:03.945Z"
//}
message UnifiedCostInfo {
string unified_cost_id = 1;
google.protobuf.Struct cost = 2;
// ex). 2021-01
string billed_month = 3;
// ex). 2021
string billed_year = 4;
// ex). 2021-01-01
string aggregation_date = 5;
string exchange_date = 6;
// ex). Yahoo Finance
string exchange_source = 7;
// Original currency of cost
string currency = 8;
bool is_confirmed = 9;
string provider = 10;
Expand Down

0 comments on commit f128f95

Please sign in to comment.