Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description for UnifiedCost Service list api #433

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions proto/spaceone/api/cost_analysis/v1/unified_cost.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,26 @@ service UnifiedCost {
}
}

//{
// "unified_cost_id": "unified-cost-11153fceca11"
//}
message UnifiedCostRequest {
string unified_cost_id = 1;
}

//{
// "query": {}
//}
message UnifiedCostQuery {
// +optional
spaceone.api.core.v2.Query query = 1;
// +optional
string unified_cost_id = 2;
}

//{
// "query": {}
//}
message UnifiedCostAnalyzeQuery {
spaceone.api.core.v2.TimeSeriesAnalyzeQuery query = 1;
bool is_confirmed = 2;
Expand Down Expand Up @@ -116,11 +125,46 @@ message UnifiedCostInfo {
string created_at = 31;
}

//{
// "results": [
// {
// "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"
// }
// ],
// "total_count": 1
//}
message UnifiedCostsInfo {
repeated UnifiedCostInfo results = 1;
int32 total_count = 2;
}


//{
// "query": {}
//}
message UnifiedCostStatQuery {
spaceone.api.core.v2.StatisticsQuery query = 1;
}
Loading