BlobMetrics Class
- java.
lang. Object - com.
azure. storage. blob. models. BlobMetrics
- com.
Implements
public final class BlobMetrics
implements XmlSerializable<BlobMetrics>
a summary of request statistics grouped by API in hour or minute aggregates for blobs.
Constructor Summary
Constructor | Description |
---|---|
BlobMetrics() |
Creates an instance of Blob |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Blob |
fromXml(XmlReader xmlReader)
Reads an instance of Blob |
static
Blob |
fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of Blob |
Blob |
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 Blob service. |
Boolean |
isIncludeApis()
Get the include |
Blob |
setEnabled(boolean enabled)
Set the enabled property: Indicates whether metrics are enabled for the Blob service. |
Blob |
setIncludeApis(Boolean includeApis)
Set the include |
Blob |
setRetentionPolicy(BlobRetentionPolicy retentionPolicy)
Set the retention |
Blob |
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
BlobMetrics
public BlobMetrics()
Creates an instance of BlobMetrics class.
Method Details
fromXml
public static BlobMetrics fromXml(XmlReader xmlReader)
Reads an instance of BlobMetrics from the XmlReader.
Parameters:
Returns:
Throws:
fromXml
public static BlobMetrics fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of BlobMetrics from the XmlReader.
Parameters:
Returns:
Throws:
getRetentionPolicy
public BlobRetentionPolicy getRetentionPolicy()
Get the retentionPolicy property: the retention policy which determines how long the associated data should persist.
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 Blob service.
Returns:
isIncludeApis
public Boolean isIncludeApis()
Get the includeApis property: Indicates whether metrics should generate summary statistics for called API operations.
Returns:
setEnabled
public BlobMetrics setEnabled(boolean enabled)
Set the enabled property: Indicates whether metrics are enabled for the Blob service.
Parameters:
Returns:
setIncludeApis
public BlobMetrics setIncludeApis(Boolean includeApis)
Set the includeApis property: Indicates whether metrics should generate summary statistics for called API operations.
Parameters:
Returns:
setRetentionPolicy
public BlobMetrics setRetentionPolicy(BlobRetentionPolicy retentionPolicy)
Set the retentionPolicy property: the retention policy which determines how long the associated data should persist.
Parameters:
Returns:
setVersion
public BlobMetrics 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: