问题描述
我可以过滤指标数据类型吗?
Can I filter metric data types?
我正在检索键名为CPU0,CPU1等(最多到CPU256)的数据类型,以及其他一些数据类型.我希望过滤器仅检索不以CPU开头的数据类型.我尝试了下面的过滤器,但仍检索到所有对象:
I am retrieving datatypes with keynames CPU0, CPU1, etc up to CPU256, plus some other datatypes. I would like a filter to retrieve only the datatypes that do not start with CPU. I tried the filter below but all objects were still retrieved:
https://api.softlayer.com/rest/v3/SoftLayer_Metric_Tracking_Object/<objectId>/getMetricDataTypes?objectFilter=objectFilter=objectFilter={"metricDataTypes":{"keyName":{"operation":"!*= CPU"}}}
推荐答案
很遗憾,无法过滤 MetricDataTypes ,因为此数据类型为: SoftLayer_Container_Metric_Data_Type 不具有id之类的任何关联属性
Unfortunately, it's not possible to filter MetricDataTypes, because this datatype: SoftLayer_Container_Metric_Data_Type doesn't have any relation property like id
我建议使用一种编程语言并在代码中进行过滤,以查看SoftLayer支持的编程语言:
I recommend to use a programming language and filter in the code, to see programming languages supported by SoftLayer:
这篇关于SoftLayer API如何过滤MetricDataTypes的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!