|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.clientapi.descriptor.plugin.MetricDescriptor
public class MetricDescriptor
A declared value that can be monitored for changes over time. Metrics are divided into several main types including numeric, string traits, timings and complex.
Java class for metric element declaration.
The following schema fragment specifies the expected content contained within this class.
<element name="metric">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{urn:xmlns:rhq-plugin}version" minOccurs="0"/>
</sequence>
<attribute name="category" default="performance">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="availability"/>
<enumeration value="performance"/>
<enumeration value="throughput"/>
<enumeration value="utilization"/>
</restriction>
</simpleType>
</attribute>
<attribute name="dataType" default="measurement">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="measurement"/>
<enumeration value="trait"/>
<enumeration value="calltime"/>
</restriction>
</simpleType>
</attribute>
<attribute name="defaultInterval" type="{http://www.w3.org/2001/XMLSchema}int" />
<attribute name="defaultOn" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="destinationType">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<whiteSpace value="collapse"/>
<minLength value="1"/>
<maxLength value="100"/>
</restriction>
</simpleType>
</attribute>
<attribute name="displayName" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="displayType" default="detail">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="summary"/>
<enumeration value="detail"/>
</restriction>
</simpleType>
</attribute>
<attribute name="measurementType" default="dynamic">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="dynamic"/>
<enumeration value="trendsup"/>
<enumeration value="trendsdown"/>
</restriction>
</simpleType>
</attribute>
<attribute name="property" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="units" type="{urn:xmlns:rhq-configuration}measurementUnitsDescriptor" default="none" />
</restriction>
</complexContent>
</complexType>
</element>
| Field Summary | |
|---|---|
protected String |
category
|
protected String |
dataType
|
protected Integer |
defaultInterval
|
protected Boolean |
defaultOn
|
protected String |
description
|
protected String |
destinationType
|
protected String |
displayName
|
protected String |
displayType
|
protected String |
measurementType
|
protected String |
property
|
protected MeasurementUnitsDescriptor |
units
|
protected Version |
version
|
| Constructor Summary | |
|---|---|
MetricDescriptor()
|
|
| Method Summary | |
|---|---|
String |
getCategory()
Gets the value of the category property. |
String |
getDataType()
Gets the value of the dataType property. |
Integer |
getDefaultInterval()
Gets the value of the defaultInterval property. |
String |
getDescription()
Gets the value of the description property. |
String |
getDestinationType()
Gets the value of the destinationType property. |
String |
getDisplayName()
Gets the value of the displayName property. |
String |
getDisplayType()
Gets the value of the displayType property. |
String |
getMeasurementType()
Gets the value of the measurementType property. |
String |
getProperty()
Gets the value of the property property. |
MeasurementUnitsDescriptor |
getUnits()
Gets the value of the units property. |
Version |
getVersion()
Gets the value of the version property. |
boolean |
isDefaultOn()
Gets the value of the defaultOn property. |
void |
setCategory(String value)
Sets the value of the category property. |
void |
setDataType(String value)
Sets the value of the dataType property. |
void |
setDefaultInterval(Integer value)
Sets the value of the defaultInterval property. |
void |
setDefaultOn(Boolean value)
Sets the value of the defaultOn property. |
void |
setDescription(String value)
Sets the value of the description property. |
void |
setDestinationType(String value)
Sets the value of the destinationType property. |
void |
setDisplayName(String value)
Sets the value of the displayName property. |
void |
setDisplayType(String value)
Sets the value of the displayType property. |
void |
setMeasurementType(String value)
Sets the value of the measurementType property. |
void |
setProperty(String value)
Sets the value of the property property. |
void |
setUnits(MeasurementUnitsDescriptor value)
Sets the value of the units property. |
void |
setVersion(Version value)
Sets the value of the version property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Version version
protected String category
protected String dataType
protected Integer defaultInterval
protected Boolean defaultOn
protected String description
protected String destinationType
protected String displayName
protected String displayType
protected String measurementType
protected String property
protected MeasurementUnitsDescriptor units
| Constructor Detail |
|---|
public MetricDescriptor()
| Method Detail |
|---|
public Version getVersion()
Versionpublic void setVersion(Version value)
value - allowed object is
Versionpublic String getCategory()
Stringpublic void setCategory(String value)
value - allowed object is
Stringpublic String getDataType()
Stringpublic void setDataType(String value)
value - allowed object is
Stringpublic Integer getDefaultInterval()
Integerpublic void setDefaultInterval(Integer value)
value - allowed object is
Integerpublic boolean isDefaultOn()
Booleanpublic void setDefaultOn(Boolean value)
value - allowed object is
Booleanpublic String getDescription()
Stringpublic void setDescription(String value)
value - allowed object is
Stringpublic String getDestinationType()
Stringpublic void setDestinationType(String value)
value - allowed object is
Stringpublic String getDisplayName()
Stringpublic void setDisplayName(String value)
value - allowed object is
Stringpublic String getDisplayType()
Stringpublic void setDisplayType(String value)
value - allowed object is
Stringpublic String getMeasurementType()
Stringpublic void setMeasurementType(String value)
value - allowed object is
Stringpublic String getProperty()
Stringpublic void setProperty(String value)
value - allowed object is
Stringpublic MeasurementUnitsDescriptor getUnits()
MeasurementUnitsDescriptorpublic void setUnits(MeasurementUnitsDescriptor value)
value - allowed object is
MeasurementUnitsDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||