Class MetricAttributeBuilder
-
- All Implemented Interfaces:
public final class MetricAttributeBuilder
-
-
Constructor Summary
Constructors Constructor Description MetricAttributeBuilder(String key)
-
Method Summary
Modifier and Type Method Description final StringgetLabel()Label that is displayed in the VMware Aria Operations UI. final UnitsetLabel(String label)Label that is displayed in the VMware Aria Operations UI. final SdkUnitgetUnit()Specifies what unit this metric is returned in. final UnitsetUnit(SdkUnit unit)Specifies what unit this metric is returned in. final BooleanisRate()Declares this attribute as a rate (e.g., kilobytes per second). final UnitsetRate(Boolean isRate)Declares this attribute as a rate (e.g., kilobytes per second). final BooleanisDiscrete()Declares that this attribute's range of values is discrete (integer) rather than continuous (floating point). final UnitsetDiscrete(Boolean isDiscrete)Declares that this attribute's range of values is discrete (integer) rather than continuous (floating point). final BooleanisKpi()If set, threshold breaches for this metric will be used in the calculation of the object's 'Self - Health Score' metric, which can affect the 'Anomalies' Badge. final UnitsetKpi(Boolean isKpi)If set, threshold breaches for this metric will be used in the calculation of the object's 'Self - Health Score' metric, which can affect the 'Anomalies' Badge. final BooleanisImpact()If set, this attribute will never be the 'root cause' of an issue. final UnitsetImpact(Boolean isImpact)If set, this attribute will never be the 'root cause' of an issue. final BooleanisKeyAttribute()True if the attribute should be shown in some object summary widgets in the UI. final UnitsetKeyAttribute(Boolean isKeyAttribute)True if the attribute should be shown in some object summary widgets in the UI. final StringgetKey()Used to identify the parameter. final MetricAttributebuild(Integer dashboardOrder)-
-
Constructor Detail
-
MetricAttributeBuilder
MetricAttributeBuilder(String key)
-
-
Method Detail
-
getLabel
final String getLabel()
Label that is displayed in the VMware Aria Operations UI. Defaults to the key.
-
setLabel
final Unit setLabel(String label)
Label that is displayed in the VMware Aria Operations UI. Defaults to the key.
-
getUnit
final SdkUnit getUnit()
Specifies what unit this metric is returned in. This allows the UI to display the units in a consistent manner, and perform conversions when appropriate.
-
setUnit
final Unit setUnit(SdkUnit unit)
Specifies what unit this metric is returned in. This allows the UI to display the units in a consistent manner, and perform conversions when appropriate.
-
isRate
final Boolean isRate()
Declares this attribute as a rate (e.g., kilobytes per second). If a unit is specified, this will be set automatically. Otherwise, defaults to False.
-
setRate
final Unit setRate(Boolean isRate)
Declares this attribute as a rate (e.g., kilobytes per second). If a unit is specified, this will be set automatically. Otherwise, defaults to False.
-
isDiscrete
final Boolean isDiscrete()
Declares that this attribute's range of values is discrete (integer) rather than continuous (floating point). Defaults to False, unless 'is_string' is set, in which case it will always be set to True.
-
setDiscrete
final Unit setDiscrete(Boolean isDiscrete)
Declares that this attribute's range of values is discrete (integer) rather than continuous (floating point). Defaults to False, unless 'is_string' is set, in which case it will always be set to True.
-
isKpi
final Boolean isKpi()
If set, threshold breaches for this metric will be used in the calculation of the object's 'Self - Health Score' metric, which can affect the 'Anomalies' Badge.
-
setKpi
final Unit setKpi(Boolean isKpi)
If set, threshold breaches for this metric will be used in the calculation of the object's 'Self - Health Score' metric, which can affect the 'Anomalies' Badge.
-
isImpact
final Boolean isImpact()
If set, this attribute will never be the 'root cause' of an issue. For example, it could be a proxy to a root cause, but not the root cause itself.
-
setImpact
final Unit setImpact(Boolean isImpact)
If set, this attribute will never be the 'root cause' of an issue. For example, it could be a proxy to a root cause, but not the root cause itself.
-
isKeyAttribute
final Boolean isKeyAttribute()
True if the attribute should be shown in some object summary widgets in the UI.
-
setKeyAttribute
final Unit setKeyAttribute(Boolean isKeyAttribute)
True if the attribute should be shown in some object summary widgets in the UI.
-
build
final MetricAttribute build(Integer dashboardOrder)
-
-
-
-