Package com.thingworx.metrics.v2
Class ThingworxMetricAttributes
java.lang.Object
com.thingworx.metrics.v2.ThingworxMetricAttributes
@ThingworxExtensionApiClass(since={9,7,0},
canInstantiate=true)
public final class ThingworxMetricAttributes
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
Supports value as Lists of type: Long, Double, Boolean, String.
Any other custom instance type is not set as attribute.
-
Constructor Details
-
ThingworxMetricAttributes
-
-
Method Details
-
set
@ThingworxExtensionApiMethod(since={9,7,0}) public ThingworxMetricAttributes set(String key, Boolean value) -
set
@ThingworxExtensionApiMethod(since={9,7,0}) public ThingworxMetricAttributes set(String key, String value) -
set
@ThingworxExtensionApiMethod(since={9,7,0}) public ThingworxMetricAttributes set(String key, List<?> value)
Supports value as Lists of type: Long, Double, Boolean, String.
Any other custom instance type is not set as attribute.- Parameters:
key
- name of the label.value
- list of elements represented as the value of the label key.- Returns:
- ThingworxMetricAttributes
-
set
@ThingworxExtensionApiMethod(since={9,7,0}) public ThingworxMetricAttributes set(String key, Double value) -
set
@ThingworxExtensionApiMethod(since={9,7,0}) public ThingworxMetricAttributes set(String key, Long value)
-