Package com.azure.data.tables.models
Class TableServiceMetrics
java.lang.Object
com.azure.data.tables.models.TableServiceMetrics
A model representing configurable metrics settings of the Table service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet theTableServiceRetentionPolicyfor these metrics on the Table service.Get the version of Analytics to configure.booleanGet a value that indicates whether metrics are enabled for the Table service.Get a value that indicates whether metrics should generate summary statistics for called API operations.setEnabled(boolean enabled) Set a value that indicates whether metrics are enabled for the Table service.setIncludeApis(Boolean includeApis) Set a value that indicates whether metrics should generate summary statistics for called API operations.setRetentionPolicy(TableServiceRetentionPolicy retentionPolicy) Set theTableServiceRetentionPolicyfor these metrics on the Table service.setVersion(String version) Set the version of Analytics to configure.
-
Constructor Details
-
TableServiceMetrics
public TableServiceMetrics()
-
-
Method Details
-
getVersion
Get the version of Analytics to configure.- Returns:
- The
version.
-
setVersion
Set the version of Analytics to configure.- Parameters:
version- Theversionto set.- Returns:
- The updated
TableServiceMetricsobject.
-
isEnabled
public boolean isEnabled()Get a value that indicates whether metrics are enabled for the Table service.- Returns:
- The
enabledvalue.
-
setEnabled
Set a value that indicates whether metrics are enabled for the Table service.- Parameters:
enabled- Theenabledvalue to set.- Returns:
- The updated
TableServiceMetricsobject.
-
isIncludeApis
Get a value that indicates whether metrics should generate summary statistics for called API operations.- Returns:
- The
includeApisvalue.
-
setIncludeApis
Set a value that indicates whether metrics should generate summary statistics for called API operations.- Parameters:
includeApis- TheincludeApisvalue to set.- Returns:
- The updated
TableServiceMetricsobject.
-
getTableServiceRetentionPolicy
Get theTableServiceRetentionPolicyfor these metrics on the Table service.- Returns:
- The
TableServiceRetentionPolicy.
-
setRetentionPolicy
Set theTableServiceRetentionPolicyfor these metrics on the Table service.- Parameters:
retentionPolicy- TheTableServiceRetentionPolicyto set.- Returns:
- The updated
TableServiceMetricsobject.
-