CostQuerySet

CostQuerySet #

A CostQuerySet is a set of saved queries a User frequently uses as a setting.

Package : spaceone.api.cost_analysis.v1



CostQuerySet #

CostQuerySet Methods:

MethodRequestResponse
createCreateCostQuerySetRequestCostQuerySetInfo
updateUpdateCostQuerySetRequestCostQuerySetInfo
deleteCostQuerySetRequestEmpty
getCostQuerySetRequestCostQuerySetInfo
listCostQuerySetQueryCostQuerySetsInfo
statCostQuerySetStatQueryStruct

create #

Creates a new CostQuerySet. You can make your own custom query that meets your needs, and input it as an option parameter of the resource. Queries such as group_by and granularity are provided by default.

POST /cost-analysis/v1/cost-query-set/create

CreateCostQuerySetRequest

  • data_source_id (string) Required

  • name (string) Required

  • options (Struct) Required

  • tags (Struct)

{
       "data_source_id": "ds-085d1e872789",
       "name": "project_provider_region",
       "options": {}
}

CostQuerySetInfo

  • cost_query_set_id (string) Required

  • name (string) Required

  • options (Struct) Required

  • tags (Struct) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • user_id (string) Required

  • data_source_id (string) Required

  • created_at (string) Required

  • updated_at (string) Required

{
       "cost_query_set_id": "query-76a58ea5d02c",
       "name": "project_provider_region",
       "options": {},
       "tags": {},
       "user_id": "test@cloudforet.io",
       "data_source_id": "ds-085d1e872789",
       "domain_id": "domain-58010aa2e451",
       "created_at": "2022-07-19T06:11:03.701Z",
       "updated_at": "2022-07-19T06:11:03.701Z"
}

update #

Updates a specific CostQuerySet. You can make changes in the details of queries.

POST /cost-analysis/v1/cost-query-set/update

UpdateCostQuerySetRequest

  • cost_query_set_id (string) Required

  • name (string)

  • options (Struct)

  • tags (Struct)

{
       "cost_query_set_id": "query-76a58ea5d02c",
       "name": "project_provider_region",
       "options": {},
       "tags": {},
       "user_id": "test@cloudforet.io",
       "domain_id": "domain-58010aa2e451",
       "created_at": "2022-07-19T06:11:03.701Z",
       "updated_at": "2022-07-19T06:11:03.701Z"
}

CostQuerySetInfo

  • cost_query_set_id (string) Required

  • name (string) Required

  • options (Struct) Required

  • tags (Struct) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • user_id (string) Required

  • data_source_id (string) Required

  • created_at (string) Required

  • updated_at (string) Required

{
       "cost_query_set_id": "query-76a58ea5d02c",
       "name": "project_provider_region",
       "options": {},
       "tags": {},
       "user_id": "test@cloudforet.io",
       "data_source_id": "ds-085d1e872789",
       "domain_id": "domain-58010aa2e451",
       "created_at": "2022-07-19T06:11:03.701Z",
       "updated_at": "2022-07-19T06:11:03.701Z"
}

delete #

Deletes a specific CostQuerySet. You must specify the cost_query_set_id of the CostQuerySet to delete.

POST /cost-analysis/v1/cost-query-set/delete

CostQuerySetRequest

  • cost_query_set_id (string) Required
{
   "cost_query_set_id": "query-16ae671dc8fb",
    "domain_id": "domain-58010aa2e451"
}

get #

Gets a specific CostQuerySet. Prints detailed information about the CostQuerySet, including the details of queries.

POST /cost-analysis/v1/cost-query-set/get

CostQuerySetRequest

  • cost_query_set_id (string) Required
{
   "cost_query_set_id": "query-16ae671dc8fb",
    "domain_id": "domain-58010aa2e451"
}

CostQuerySetInfo

  • cost_query_set_id (string) Required

  • name (string) Required

  • options (Struct) Required

  • tags (Struct) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • user_id (string) Required

  • data_source_id (string) Required

  • created_at (string) Required

  • updated_at (string) Required

{
       "cost_query_set_id": "query-76a58ea5d02c",
       "name": "project_provider_region",
       "options": {},
       "tags": {},
       "user_id": "test@cloudforet.io",
       "data_source_id": "ds-085d1e872789",
       "domain_id": "domain-58010aa2e451",
       "created_at": "2022-07-19T06:11:03.701Z",
       "updated_at": "2022-07-19T06:11:03.701Z"
}

list #

Gets a list of all CostQuerySets. You can use a query to get a filtered list of CostQuerySets.

POST /cost-analysis/v1/cost-query-set/list

CostQuerySetQuery

  • data_source_id (string) Required

  • query (Query)

  • name (string)

{
   "query": {}
}

CostQuerySetsInfo

  • results (CostQuerySetInfo) Repeated Required

  • total_count (int32) Required

{
       "results": [
           {
               "cost_query_set_id": "query-16ae671dc8fb",
               "name": "3 month product pie chart",
               "options": {},
               "tags": {},
               "user_id": "yuda@mz.co.kr",
               "data_source_id": "ds-085d1e872789",
               "domain_id": "domain-58010aa2e451",
               "created_at": "2022-03-08T03:37:31.404Z",
               "updated_at": "2022-03-08T03:37:31.404Z"
           },
           {
               "cost_query_set_id": "query-d90addf25e4b",
               "name": "6 month project group",
               "options": {},
               "tags": {},
               "user_id": "yuda@mz.co.kr",
               "data_source_id": "ds-085d1e872789",
               "domain_id": "domain-58010aa2e451",
               "created_at": "2022-03-14T09:29:54.306Z",
               "updated_at": "2022-03-14T09:29:54.306Z"
           }
       ],
       "total_count": 34
}

stat #

POST /cost-analysis/v1/cost-query-set/stat



Message #

CostQuerySetInfo #

  • cost_query_set_id (string) Required

  • name (string) Required

  • options (Struct) Required

  • tags (Struct) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • user_id (string) Required

  • data_source_id (string) Required

  • created_at (string) Required

  • updated_at (string) Required


CostQuerySetQuery #

  • data_source_id (string) Required

  • query (Query)

  • name (string)


CostQuerySetRequest #

  • cost_query_set_id (string) Required


CostQuerySetStatQuery #

  • query (StatisticsQuery) Required

  • data_source_id (string) Required


CostQuerySetsInfo #

  • results (CostQuerySetInfo) Repeated Required

  • total_count (int32) Required


CreateCostQuerySetRequest #

  • data_source_id (string) Required

  • name (string) Required

  • options (Struct) Required

  • tags (Struct)


UpdateCostQuerySetRequest #

  • cost_query_set_id (string) Required

  • name (string)

  • options (Struct)

  • tags (Struct)


Calendar November 4, 2024
Edit Edit this page