UnifiedCost #
Unified Cost service is a service that provides unified cost based on the cost data from various DataSources registered in each domain.
Package : spaceone.api.cost_analysis.v1
UnifiedCost #
UnifiedCost Methods:
Method | Request | Response |
---|---|---|
get | UnifiedCostRequest | UnifiedCostInfo |
list | UnifiedCostQuery | UnifiedCostsInfo |
analyze | UnifiedCostAnalyzeQuery | Struct |
stat | UnifiedCostStatQuery | Struct |
get #
POST /cost-analysis/v1/unified-cost/get
- unified_cost_id (string)
Required
{
"unified_cost_id": "unified-cost-11153fceca11"
}
unified_cost_id (string)
Required
cost (Struct)
Required
billed_month (string)
Required
ex). 2021-01
billed_year (string)
Required
ex). 2021
aggregation_date (string)
Required
ex). 2021-01-01
exchange_date (string)
Required
exchange_source (string)
Required
ex). Yahoo Finance
currency (string)
Required
Original currency of cost
is_confirmed (bool)
Required
provider (string)
Required
region_code (string)
Required
region_key (string)
Required
product (string)
Required
usage_type (string)
Required
usage_unit (string)
Required
service_account_name (string)
Required
data_source_name (string)
Required
project_name (string)
Required
workspace_name (string)
Required
domain_id (string)
Required
workspace_id (string)
Required
project_id (string)
Required
data_source_id (string)
Required
service_account_id (string)
Required
created_at (string)
Required
{
"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"
}
list #
POST /cost-analysis/v1/unified-cost/list
results (UnifiedCostInfo)
Repeated
Required
total_count (int32)
Required
{
"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
}
analyze #
POST /cost-analysis/v1/unified-cost/analyze
query (TimeSeriesAnalyzeQuery)
Required
is_confirmed (bool)
Required
{
"query": {}
}
stat #
POST /cost-analysis/v1/unified-cost/stat
Message #
UnifiedCostAnalyzeQuery #
query (TimeSeriesAnalyzeQuery)
Required
is_confirmed (bool)
Required
UnifiedCostInfo #
unified_cost_id (string)
Required
cost (Struct)
Required
billed_month (string)
Required
ex). 2021-01
billed_year (string)
Required
ex). 2021
aggregation_date (string)
Required
ex). 2021-01-01
exchange_date (string)
Required
exchange_source (string)
Required
ex). Yahoo Finance
currency (string)
Required
Original currency of cost
is_confirmed (bool)
Required
provider (string)
Required
region_code (string)
Required
region_key (string)
Required
product (string)
Required
usage_type (string)
Required
usage_unit (string)
Required
service_account_name (string)
Required
data_source_name (string)
Required
project_name (string)
Required
workspace_name (string)
Required
domain_id (string)
Required
workspace_id (string)
Required
project_id (string)
Required
data_source_id (string)
Required
service_account_id (string)
Required
created_at (string)
Required
UnifiedCostQuery #
query (Query)
unified_cost_id (string)
UnifiedCostRequest #
unified_cost_id (string)
Required
UnifiedCostStatQuery #
query (StatisticsQuery)
Required
UnifiedCostsInfo #
results (UnifiedCostInfo)
Repeated
Required
total_count (int32)
Required