public class MetricDescriptor extends Object
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">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}unsignedLong">
<minInclusive value="30000"/>
</restriction>
</simpleType>
</attribute>
<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>
| Modifier and Type | Field and Description |
|---|---|
protected String |
category |
protected String |
dataType |
protected BigInteger |
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 and Description |
|---|
MetricDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory()
Gets the value of the category property.
|
String |
getDataType()
Gets the value of the dataType property.
|
BigInteger |
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(BigInteger 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.
|
protected Version version
protected String category
protected String dataType
protected BigInteger 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
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 BigInteger getDefaultInterval()
BigIntegerpublic void setDefaultInterval(BigInteger value)
value - allowed object is
BigIntegerpublic 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
MeasurementUnitsDescriptorCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.