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:

get

POST /cost-analysis/v1/unified-cost/get

{{< tabs " get " >}}

{{< tab "Request Example" >}}

UnifiedCostRequest

  • unified_cost_id (string) Required

{{< highlight json >}} { "unified_cost_id": "unified-cost-11153fceca11" } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

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

{{< highlight json >}} { "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" } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

list

POST /cost-analysis/v1/unified-cost/list

{{< tabs " list " >}}

{{< tab "Request Example" >}}

UnifiedCostQuery

  • query (Query)

  • unified_cost_id (string)

{{< highlight json >}} { "query": {} } {{< /highlight >}} {{< /tab >}}

{{< tab "Response Example" >}}

UnifiedCostsInfo

  • results (UnifiedCostInfo) Repeated Required

  • total_count (int32) Required

{{< highlight json >}} { "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 } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

analyze

POST /cost-analysis/v1/unified-cost/analyze

{{< tabs " analyze " >}}

{{< tab "Request Example" >}}

UnifiedCostAnalyzeQuery

  • query (TimeSeriesAnalyzeQuery) Required

  • is_confirmed (bool) Required

{{< highlight json >}} { "query": {} } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

stat

POST /cost-analysis/v1/unified-cost/stat

{{< tabs " stat " >}}

{{< tab "Request Example" >}}

UnifiedCostStatQuery

  • query (StatisticsQuery) Required

{{< highlight json >}} { "query": {} } {{< /highlight >}} {{< /tab >}}

{{< /tabs >}}

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

Last updated