public static class ServiceProperties.Metrics extends Object
| Constructor and Description |
|---|
Metrics() |
| Modifier and Type | Method and Description |
|---|---|
ServiceProperties.RetentionPolicy |
getRetentionPolicy()
Gets the retention policy for metrics data set on the storage
account.
|
String |
getVersion()
Gets the version of Storage Analytics configured on the storage
account.
|
boolean |
isEnabled()
Gets a flag indicating whether metrics is enabled for the storage
account.
|
Boolean |
isIncludeAPIs()
Gets a flag indicating whether metrics generates summary statistics
for called API operations.
|
ServiceProperties.Metrics |
setEnabled(boolean enabled)
Sets a flag indicating whether to enable metrics for the storage
account.
|
ServiceProperties.Metrics |
setIncludeAPIs(Boolean includeAPIs)
Sets a flag indicating whether metrics should generate summary
statistics for called API operations.
|
ServiceProperties.Metrics |
setRetentionPolicy(ServiceProperties.RetentionPolicy retentionPolicy)
Sets the retention policy to use for metrics data on the storage
account.
|
ServiceProperties.Metrics |
setVersion(String version)
Sets the version of Storage Analytics configured on the storage
account.
|
public ServiceProperties.RetentionPolicy getRetentionPolicy()
ServiceProperties.RetentionPolicy set on the storage account.public ServiceProperties.Metrics setRetentionPolicy(ServiceProperties.RetentionPolicy retentionPolicy)
retentionPolicy - The ServiceProperties.RetentionPolicy to set on the storage account.ServiceProperties.Metrics instance.public Boolean isIncludeAPIs()
true if metrics generates
summary statistics for called API operations; otherwise,
false.public ServiceProperties.Metrics setIncludeAPIs(Boolean includeAPIs)
includeAPIs - Set a flag value of true to generate summary
statistics for called API operations; otherwise,
false.ServiceProperties.Metrics instance.public boolean isEnabled()
true if metrics is enabled for
the storage account; otherwise, false.public ServiceProperties.Metrics setEnabled(boolean enabled)
enabled - Set a flag value of true to enable metrics
for the storage account; otherwise, false.ServiceProperties.Metrics instance.public String getVersion()
String containing the version of Storage Analytics
configured on the storage account.public ServiceProperties.Metrics setVersion(String version)
version - A String containing the version of Storage
Analytics configured on the storage account.ServiceProperties.Metrics instance./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/