CustomWidget #
A CustomWidget is a widget created by a CostQuerySet a User defined.
Package : spaceone.api.cost_analysis.v1
CustomWidget #
CustomWidget Methods:
create #
Creates a new CustomWidget. Based on the queries of the CostQuerySet the User made, a widget is created with the default template Cloudforet provides.
POST /cost-analysis/v1/custom-widget/create
name (string)
Required
options (Struct)
Required
domain_id (string)
Required
tags (Struct)
{
"name": "project_provider_region-f59722cf-dc03-4758-ab7f",
"options": {
"group_by": "project_id",
"stack": false,
"layout": 100.0,
"granularity": "ACCUMULATED",
"filters": {},
"chart_type": "DONUT"
}
}
widget_id (string)
Required
name (string)
Required
options (Struct)
Required
tags (Struct)
Required
user_id (string)
Required
domain_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
"widget_id": "widget-8b1241aff67d",
"name": "project_provider_region-f59722cf-dc03-4758-ab7f",
"options": {
"filters": {},
"group_by": "project_id",
"granularity": "ACCUMULATED",
"layout": 100.0,
"stack": false,
"chart_type": "DONUT"
},
"tags": {},
"user_id": "test_user@cloudforet.io",
"domain_id": "domain-58010aa2e451",
"created_at": "2022-07-19T06:18:55.819Z",
"updated_at": "2022-07-19T06:18:55.819Z"
}
update #
Updates a specific CustomWidget. You can make changes in CustomWidget settings, including chart_type
and queries.
POST /cost-analysis/v1/custom-widget/update
widget_id (string)
Required
domain_id (string)
Required
name (string)
options (Struct)
tags (Struct)
{
"widget_id": "widget-8b1241aff67d",
"name": "project_provider_region",
"options": {
"layout": 100.0,
"chart_type": "DONUT",
"stack": false,
"group_by": "project_id",
"granularity": "ACCUMULATED",
"filters": {}
},
"tags": {
"a": "b"
}
}
widget_id (string)
Required
name (string)
Required
options (Struct)
Required
tags (Struct)
Required
user_id (string)
Required
domain_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
"widget_id": "widget-8b1241aff67d",
"name": "project_provider_region-f59722cf-dc03-4758-ab7f",
"options": {
"filters": {},
"group_by": "project_id",
"granularity": "ACCUMULATED",
"layout": 100.0,
"stack": false,
"chart_type": "DONUT"
},
"tags": {},
"user_id": "test_user@cloudforet.io",
"domain_id": "domain-58010aa2e451",
"created_at": "2022-07-19T06:18:55.819Z",
"updated_at": "2022-07-19T06:18:55.819Z"
}
delete #
Deletes a specific CustomWidget. You must specify the custom_widget_id
of the CustomWidget to delete.
POST /cost-analysis/v1/custom-widget/delete
widget_id (string)
Required
domain_id (string)
Required
{
"widget_id": "widget-205f743a9890"
}
get #
Gets a specific CustomWidget. Prints detailed information about the CustomWidget, including chart_type
and queries.
POST /cost-analysis/v1/custom-widget/get
widget_id (string)
Required
domain_id (string)
Required
only (string)
Repeated
{
"widget_id": "widget-205f743a9890"
}
widget_id (string)
Required
name (string)
Required
options (Struct)
Required
tags (Struct)
Required
user_id (string)
Required
domain_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
"widget_id": "widget-8b1241aff67d",
"name": "project_provider_region-f59722cf-dc03-4758-ab7f",
"options": {
"filters": {},
"group_by": "project_id",
"granularity": "ACCUMULATED",
"layout": 100.0,
"stack": false,
"chart_type": "DONUT"
},
"tags": {},
"user_id": "test_user@cloudforet.io",
"domain_id": "domain-58010aa2e451",
"created_at": "2022-07-19T06:18:55.819Z",
"updated_at": "2022-07-19T06:18:55.819Z"
}
list #
Gets a list of all CustomWidgets. You can use a query to get a filtered list of CustomWidgets.
POST /cost-analysis/v1/custom-widget/list
domain_id (string)
Required
query (Query)
widget_id (string)
name (string)
user_id (string)
{
"query": {}
}
results (CustomWidgetInfo)
Repeated
Required
total_count (int32)
Required
{
"results": [
{
"widget_id": "widget-205f743a9890",
"name": "3 month product pie chart-a6752241-0a0b-4604-9186",
"options": {
"stack": false,
"layout": 100.0,
"granularity": "ACCUMULATED",
"filters": {},
"chart_type": "DONUT",
"group_by": "product"
},
"tags": {},
"user_id": "yuda@mz.co.kr",
"domain_id": "domain-58010aa2e451",
"created_at": "2022-03-08T03:37:42.967Z",
"updated_at": "2022-03-08T03:37:42.967Z"
},
{
"widget_id": "widget-c672e1501066",
"name": "6 month project group-589318f7-ee8d-4018-9d56",
"options": {
"stack": false,
"layout": 100.0,
"chart_type": "STACKED_COLUMN",
"filters": {},
"group_by": "project_group_id",
"granularity": "MONTHLY"
},
"tags": {},
"user_id": "yuda@mz.co.kr",
"domain_id": "domain-58010aa2e451",
"created_at": "2022-03-14T09:30:03.115Z",
"updated_at": "2022-03-14T09:30:03.115Z"
}
],
"total_count": 27
}
stat #
POST /cost-analysis/v1/custom-widget/stat
Message #
CreateCustomWidgetRequest #
name (string)
Required
options (Struct)
Required
domain_id (string)
Required
tags (Struct)
CustomWidgetInfo #
widget_id (string)
Required
name (string)
Required
options (Struct)
Required
tags (Struct)
Required
user_id (string)
Required
domain_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
CustomWidgetQuery #
domain_id (string)
Required
query (Query)
widget_id (string)
name (string)
user_id (string)
CustomWidgetRequest #
widget_id (string)
Required
domain_id (string)
Required
CustomWidgetStatQuery #
query (StatisticsQuery)
Required
domain_id (string)
Required
CustomWidgetsInfo #
results (CustomWidgetInfo)
Repeated
Required
total_count (int32)
Required
GetCustomWidgetRequest #
widget_id (string)
Required
domain_id (string)
Required
only (string)
Repeated
UpdateCustomWidgetRequest #
widget_id (string)
Required
domain_id (string)
Required
name (string)
options (Struct)
tags (Struct)