public static class ServiceProperties.Metrics extends Object
ServiceProperties.RetentionPolicy instance for retention
policy settings.| Constructor and Description |
|---|
Metrics() |
| Modifier and Type | Method and Description |
|---|---|
ServiceProperties.RetentionPolicy |
getRetentionPolicy()
Gets a reference to the
ServiceProperties.RetentionPolicy instance in this
ServiceProperties.Metrics instance. |
String |
getVersion()
Gets the Storage Analytics version number associated with this
ServiceProperties.Metrics instance. |
boolean |
isEnabled()
Gets a flag indicating whether metrics is enabled for the Queue
storage service.
|
Boolean |
isIncludeAPIs()
Gets a flag indicating whether metrics should generate summary
statistics for called API operations.
|
ServiceProperties.Metrics |
setEnabled(boolean enabled)
Sets a flag indicating whether to enable metrics for the Queue
storage service.
|
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
ServiceProperties.RetentionPolicy instance in this ServiceProperties.Metrics
instance. |
ServiceProperties.Metrics |
setVersion(String version)
Sets the Storage Analytics version number to associate with this
ServiceProperties.Metrics instance. |
public ServiceProperties.RetentionPolicy getRetentionPolicy()
ServiceProperties.RetentionPolicy instance in this
ServiceProperties.Metrics instance.ServiceProperties.RetentionPolicy instance in this
ServiceProperties.Metrics instance.public ServiceProperties.Metrics setRetentionPolicy(ServiceProperties.RetentionPolicy retentionPolicy)
ServiceProperties.RetentionPolicy instance in this ServiceProperties.Metrics
instance.retentionPolicy - The ServiceProperties.RetentionPolicy instance to set in this
ServiceProperties.Metrics instance.ServiceProperties.Metrics instance.public Boolean isIncludeAPIs()
true then all Queue service REST API operations will be
included in the metrics.true if Queue service REST API operations are
included in metrics, otherwise false.public ServiceProperties.Metrics setIncludeAPIs(Boolean includeAPIs)
true then all Queue service REST API operations will be
included in the metrics.includeAPIs - true to include Queue service REST API
operations in metrics, otherwise false.ServiceProperties.Metrics instance.public boolean isEnabled()
public ServiceProperties.Metrics setEnabled(boolean enabled)
enabled - true to enable metrics for the Queue storage
service, otherwise false.ServiceProperties.Metrics instance.public String getVersion()
ServiceProperties.Metrics instance.String containing the Storage Analytics version
number.public ServiceProperties.Metrics setVersion(String version)
ServiceProperties.Metrics instance. The current supported version number is
"1.0".
See the Storage Analytics Overview documentation on MSDN for more information.
version - A String containing the Storage Analytics version
number to set.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.
*/