BlobMetrics Class

  • java.lang.Object
    • com.azure.storage.blob.models.BlobMetrics

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

Method Summary

Modifier and Type Method and Description
BlobRetentionPolicy getRetentionPolicy()

Get the retentionPolicy property: the retention policy which determines how long the associated data should persist.

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

BlobMetrics setEnabled(boolean enabled)

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

BlobMetrics setIncludeApis(Boolean includeApis)

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

BlobMetrics setRetentionPolicy(BlobRetentionPolicy retentionPolicy)

Set the retentionPolicy property: the retention policy which determines how long the associated data should persist.

BlobMetrics setVersion(String version)

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

Methods inherited from java.lang.Object

Constructor Details

BlobMetrics

public BlobMetrics()

Creates an instance of BlobMetrics class.

Method Details

getRetentionPolicy

public BlobRetentionPolicy getRetentionPolicy()

Get the retentionPolicy property: the retention policy which determines how long the associated data should persist.

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 Blob 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 BlobMetrics setEnabled(boolean enabled)

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

Parameters:

enabled - the enabled value to set.

Returns:

the BlobMetrics object itself.

setIncludeApis

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

setRetentionPolicy

public BlobMetrics setRetentionPolicy(BlobRetentionPolicy retentionPolicy)

Set the retentionPolicy property: the retention policy which determines how long the associated data should persist.

Parameters:

retentionPolicy - the retentionPolicy value to set.

Returns:

the BlobMetrics object itself.

setVersion

public BlobMetrics setVersion(String version)

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

Parameters:

version - the version value to set.

Returns:

the BlobMetrics object itself.

Applies to