Class QueueMetrics

java.lang.Object
com.azure.storage.queue.models.QueueMetrics
All Implemented Interfaces:
com.azure.xml.XmlSerializable<QueueMetrics>

public final class QueueMetrics extends Object implements com.azure.xml.XmlSerializable<QueueMetrics>
a summary of request statistics grouped by API in hour or minute aggregates for queues.
  • Constructor Details

    • QueueMetrics

      public QueueMetrics()
      Creates an instance of QueueMetrics class.
  • Method Details

    • getVersion

      public String getVersion()
      Get the version property: The version of Storage Analytics to configure.
      Returns:
      the version value.
    • setVersion

      public QueueMetrics setVersion(String version)
      Set the version property: The version of Storage Analytics to configure.
      Parameters:
      version - the version value to set.
      Returns:
      the QueueMetrics object itself.
    • isEnabled

      public boolean isEnabled()
      Get the enabled property: Indicates whether metrics are enabled for the Queue service.
      Returns:
      the enabled value.
    • setEnabled

      public QueueMetrics setEnabled(boolean enabled)
      Set the enabled property: Indicates whether metrics are enabled for the Queue service.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the QueueMetrics object itself.
    • isIncludeApis

      public Boolean isIncludeApis()
      Get the includeApis property: Indicates whether metrics should generate summary statistics for called API operations.
      Returns:
      the includeApis value.
    • setIncludeApis

      public QueueMetrics setIncludeApis(Boolean includeApis)
      Set the includeApis property: Indicates whether metrics should generate summary statistics for called API operations.
      Parameters:
      includeApis - the includeApis value to set.
      Returns:
      the QueueMetrics object itself.
    • getRetentionPolicy

      public QueueRetentionPolicy getRetentionPolicy()
      Get the retentionPolicy property: the retention policy.
      Returns:
      the retentionPolicy value.
    • setRetentionPolicy

      public QueueMetrics setRetentionPolicy(QueueRetentionPolicy retentionPolicy)
      Set the retentionPolicy property: the retention policy.
      Parameters:
      retentionPolicy - the retentionPolicy value to set.
      Returns:
      the QueueMetrics object itself.
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter) throws XMLStreamException
      Specified by:
      toXml in interface com.azure.xml.XmlSerializable<QueueMetrics>
      Throws:
      XMLStreamException
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException
      Specified by:
      toXml in interface com.azure.xml.XmlSerializable<QueueMetrics>
      Throws:
      XMLStreamException
    • fromXml

      public static QueueMetrics fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException
      Reads an instance of QueueMetrics from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      Returns:
      An instance of QueueMetrics if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
      Throws:
      XMLStreamException - If an error occurs while reading the QueueMetrics.
    • fromXml

      public static QueueMetrics fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException
      Reads an instance of QueueMetrics from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      rootElementName - Optional root element name to override the default defined by the model. Used to support cases where the model can deserialize from different root element names.
      Returns:
      An instance of QueueMetrics if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
      Throws:
      XMLStreamException - If an error occurs while reading the QueueMetrics.