Metric #
Package : spaceone.api.inventory.v1
Metric #
Metric Methods:
create #
POST /inventory/v1/metric/create
name (string)
Required
metric_type (MetricType)
Required
query_options (AnalyzeQuery)
Required
namespace_id (string)
Required
resource_group (ResourceGroup)
Required
metric_id (string)
resource_type (string)
date_field (string)
unit (string)
tags (Struct)
workspace_id (string)
{
}
metric_id (string)
Required
name (string)
Required
metric_type (MetricType)
Required
resource_type (string)
Required
query_options (AnalyzeQuery)
Required
date_field (string)
Required
unit (string)
Required
tags (Struct)
Required
labels_info (Struct)
Repeated
Required
is_managed (bool)
Required
resource_group (ResourceGroup)
Required
domain_id (string)
Required
workspace_id (string)
Required
namespace_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
}
update #
POST /inventory/v1/metric/update
metric_id (string)
Required
name (string)
query_options (AnalyzeQuery)
date_field (string)
unit (string)
tags (Struct)
{
}
metric_id (string)
Required
name (string)
Required
metric_type (MetricType)
Required
resource_type (string)
Required
query_options (AnalyzeQuery)
Required
date_field (string)
Required
unit (string)
Required
tags (Struct)
Required
labels_info (Struct)
Repeated
Required
is_managed (bool)
Required
resource_group (ResourceGroup)
Required
domain_id (string)
Required
workspace_id (string)
Required
namespace_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
}
delete #
POST /inventory/v1/metric/delete
run #
POST /inventory/v1/metric/run
test #
POST /inventory/v1/metric/test
get #
POST /inventory/v1/metric/get
metric_id (string)
Required
name (string)
Required
metric_type (MetricType)
Required
resource_type (string)
Required
query_options (AnalyzeQuery)
Required
date_field (string)
Required
unit (string)
Required
tags (Struct)
Required
labels_info (Struct)
Repeated
Required
is_managed (bool)
Required
resource_group (ResourceGroup)
Required
domain_id (string)
Required
workspace_id (string)
Required
namespace_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
{
}
list #
POST /inventory/v1/metric/list
query (Query)
metric_id (string)
metric_type (MetricType)
resource_type (string)
is_managed (string)
workspace_id (string)
namespace_id (string)
{
}
stat #
POST /inventory/v1/metric/stat
Message #
CreateMetricRequest #
name (string)
Required
metric_type (MetricType)
Required
query_options (AnalyzeQuery)
Required
namespace_id (string)
Required
resource_group (ResourceGroup)
Required
metric_id (string)
resource_type (string)
date_field (string)
unit (string)
tags (Struct)
workspace_id (string)
MetricInfo #
metric_id (string)
Required
name (string)
Required
metric_type (MetricType)
Required
resource_type (string)
Required
query_options (AnalyzeQuery)
Required
date_field (string)
Required
unit (string)
Required
tags (Struct)
Required
labels_info (Struct)
Repeated
Required
is_managed (bool)
Required
resource_group (ResourceGroup)
Required
domain_id (string)
Required
workspace_id (string)
Required
namespace_id (string)
Required
created_at (string)
Required
updated_at (string)
Required
MetricQuery #
query (Query)
metric_id (string)
metric_type (MetricType)
resource_type (string)
is_managed (string)
workspace_id (string)
namespace_id (string)
MetricRequest #
metric_id (string)
Required
MetricStatQuery #
query (StatisticsQuery)
Required
MetricTestRequest #
metric_id (string)
Required
query_options (AnalyzeQuery)
Required
MetricsInfo #
results (MetricInfo)
Repeated
Required
total_count (int32)
Required
UpdateMetricRequest #
metric_id (string)
Required
name (string)
query_options (AnalyzeQuery)
date_field (string)
unit (string)
tags (Struct)