public class MetricIdentifier extends Object
Metric
.
{equals(Object)
and {hashCode()
do not depend on metricDescription and metricUnit. Hence two MetricIdentier objects will be
considered equal as long as metricName, objectKey and objectType are same.Constructor and Description |
---|
MetricIdentifier(String objectType,
String objectKey,
String metricName,
String metricDescription,
String metricUnit)
Constructs a MetricIdentifier
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDescription()
Return the description of the metric
|
String |
getMetricName()
Returns the name of the metric
|
String |
getMetricUnit()
Returns the unit specifying what the metric is measuring.
|
String |
getObjectKey()
Returns the key for identifying the object instance to which the metric belongs
|
String |
getObjectType()
Returns the name of the
TeaObjectType for the object instance to which the metric belongs |
int |
hashCode() |
public MetricIdentifier(String objectType, String objectKey, String metricName, String metricDescription, String metricUnit)
objectType
- name of the TeaObjectType
for the object instanceobjectKey
- key for identifying the object instancemetricName
- name of the metricmetricDescription
- description of the metricmetricUnit
- Unit specifying what the metric is measuring. e.g. when measuring JVM memory, unit could be kilobytes.public String getMetricName()
public String getObjectKey()
public String getObjectType()
TeaObjectType
for the object instance to which the metric belongspublic String getDescription()
public String getMetricUnit()
Copyright © 2014 Cloud Software Group, Inc.. All Rights Reserved.