QueueMetrics Class
- java.
lang. Object - com.
azure. storage. queue. models. QueueMetrics
- com.
Implements
public final class QueueMetrics
implements XmlSerializable<QueueMetrics>
a summary of request statistics grouped by API in hour or minute aggregates for queues.
Constructor Summary
Constructor | Description |
---|---|
QueueMetrics() |
Creates an instance of Queue |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Queue |
fromXml(XmlReader xmlReader)
Reads an instance of Queue |
static
Queue |
fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of Queue |
Queue |
getRetentionPolicy()
Get the retention |
String |
getVersion()
Get the version property: The version of Storage Analytics to configure. |
boolean |
isEnabled()
Get the enabled property: Indicates whether metrics are enabled for the Queue service. |
Boolean |
isIncludeApis()
Get the include |
Queue |
setEnabled(boolean enabled)
Set the enabled property: Indicates whether metrics are enabled for the Queue service. |
Queue |
setIncludeApis(Boolean includeApis)
Set the include |
Queue |
setRetentionPolicy(QueueRetentionPolicy retentionPolicy)
Set the retention |
Queue |
setVersion(String version)
Set the version property: The version of Storage Analytics to configure. |
Xml |
toXml(XmlWriter xmlWriter) |
Xml |
toXml(XmlWriter xmlWriter, String rootElementName) |
Methods inherited from java.lang.Object
Constructor Details
QueueMetrics
public QueueMetrics()
Creates an instance of QueueMetrics class.
Method Details
fromXml
public static QueueMetrics fromXml(XmlReader xmlReader)
Reads an instance of QueueMetrics from the XmlReader.
Parameters:
Returns:
Throws:
fromXml
public static QueueMetrics fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of QueueMetrics from the XmlReader.
Parameters:
Returns:
Throws:
getRetentionPolicy
public QueueRetentionPolicy getRetentionPolicy()
Get the retentionPolicy property: the retention policy.
Returns:
getVersion
public String getVersion()
Get the version property: The version of Storage Analytics to configure.
Returns:
isEnabled
public boolean isEnabled()
Get the enabled property: Indicates whether metrics are enabled for the Queue service.
Returns:
isIncludeApis
public Boolean isIncludeApis()
Get the includeApis property: Indicates whether metrics should generate summary statistics for called API operations.
Returns:
setEnabled
public QueueMetrics setEnabled(boolean enabled)
Set the enabled property: Indicates whether metrics are enabled for the Queue service.
Parameters:
Returns:
setIncludeApis
public QueueMetrics setIncludeApis(Boolean includeApis)
Set the includeApis property: Indicates whether metrics should generate summary statistics for called API operations.
Parameters:
Returns:
setRetentionPolicy
public QueueMetrics setRetentionPolicy(QueueRetentionPolicy retentionPolicy)
Set the retentionPolicy property: the retention policy.
Parameters:
Returns:
setVersion
public QueueMetrics setVersion(String version)
Set the version property: The version of Storage Analytics to configure.
Parameters:
Returns:
toXml
toXml
public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)
Parameters:
Throws:
Applies to
Azure SDK for Java