QueueMetrics Class

  • java.lang.Object
    • com.azure.storage.queue.models.QueueMetrics

public final class 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 QueueMetrics class.

Method Summary

Modifier and Type Method and Description
QueueRetentionPolicy getRetentionPolicy()

Get the retentionPolicy property: the retention policy.

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 includeApis property: Indicates whether metrics should generate summary statistics for called API operations.

QueueMetrics setEnabled(boolean enabled)

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

QueueMetrics setIncludeApis(Boolean includeApis)

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

QueueMetrics setRetentionPolicy(QueueRetentionPolicy retentionPolicy)

Set the retentionPolicy property: the retention policy.

QueueMetrics setVersion(String version)

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

Methods inherited from java.lang.Object

Constructor Details

QueueMetrics

public QueueMetrics()

Creates an instance of QueueMetrics class.

Method Details

getRetentionPolicy

public QueueRetentionPolicy getRetentionPolicy()

Get the retentionPolicy property: the retention policy.

Returns:

the retentionPolicy value.

getVersion

public String getVersion()

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

Returns:

the version value.

isEnabled

public boolean isEnabled()

Get the enabled property: Indicates whether metrics are enabled for the Queue 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 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.

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.

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.

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.

Applies to