TableServiceMetrics Class

  • java.lang.Object
    • com.azure.data.tables.models.TableServiceMetrics

Implements

public final class TableServiceMetrics
implements XmlSerializable<TableServiceMetrics>

The TableServiceMetrics model.

Constructor Summary

Constructor Description
TableServiceMetrics()

Creates an instance of TableServiceMetrics class.

Method Summary

Modifier and Type Method and Description
static TableServiceMetrics fromXml(XmlReader xmlReader)

Reads an instance of TableServiceMetrics from the XmlReader.

static TableServiceMetrics fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of TableServiceMetrics from the XmlReader.

TableServiceRetentionPolicy getTableServiceRetentionPolicy()

Get the retentionPolicy property: The retention policy.

String getVersion()

Get the version property: The version of Analytics to configure.

boolean isEnabled()

Get the enabled property: Indicates whether metrics are enabled for the Table service.

Boolean isIncludeApis()

Get the includeApis property: Indicates whether metrics should generate summary statistics for called API operations.

TableServiceMetrics setEnabled(boolean enabled)

Set the enabled property: Indicates whether metrics are enabled for the Table service.

TableServiceMetrics setIncludeApis(Boolean includeApis)

Set the includeApis property: Indicates whether metrics should generate summary statistics for called API operations.

TableServiceMetrics setRetentionPolicy(TableServiceRetentionPolicy retentionPolicy)

Set the retentionPolicy property: The retention policy.

TableServiceMetrics setVersion(String version)

Set the version property: The version of Analytics to configure.

XmlWriter toXml(XmlWriter xmlWriter)
XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Methods inherited from java.lang.Object

Constructor Details

TableServiceMetrics

public TableServiceMetrics()

Creates an instance of TableServiceMetrics class.

Method Details

fromXml

public static TableServiceMetrics fromXml(XmlReader xmlReader)

Reads an instance of TableServiceMetrics from the XmlReader.

Parameters:

xmlReader - The XmlReader being read.

Returns:

An instance of TableServiceMetrics 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 TableServiceMetrics.

fromXml

public static TableServiceMetrics fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of TableServiceMetrics 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 TableServiceMetrics 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 TableServiceMetrics.

getTableServiceRetentionPolicy

public TableServiceRetentionPolicy getTableServiceRetentionPolicy()

Get the retentionPolicy property: The retention policy.

Returns:

the retentionPolicy value.

getVersion

public String getVersion()

Get the version property: The version of Analytics to configure.

Returns:

the version value.

isEnabled

public boolean isEnabled()

Get the enabled property: Indicates whether metrics are enabled for the Table service.

Returns:

the enabled value.

isIncludeApis

public Boolean isIncludeApis()

Get the includeApis property: Indicates whether metrics should generate summary statistics for called API operations.

Returns:

the includeApis value.

setEnabled

public TableServiceMetrics setEnabled(boolean enabled)

Set the enabled property: Indicates whether metrics are enabled for the Table service.

Parameters:

enabled - the enabled value to set.

Returns:

the TableServiceMetrics object itself.

setIncludeApis

public TableServiceMetrics 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 TableServiceMetrics object itself.

setRetentionPolicy

public TableServiceMetrics setRetentionPolicy(TableServiceRetentionPolicy retentionPolicy)

Set the retentionPolicy property: The retention policy.

Parameters:

retentionPolicy - the retentionPolicy value to set.

Returns:

the TableServiceMetrics object itself.

setVersion

public TableServiceMetrics setVersion(String version)

Set the version property: The version of Analytics to configure.

Parameters:

version - the version value to set.

Returns:

the TableServiceMetrics object itself.

toXml

public XmlWriter toXml(XmlWriter xmlWriter)

Parameters:

xmlWriter

Throws:

toXml

public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Parameters:

xmlWriter
rootElementName

Throws:

Applies to