public static class ServiceProperties.RetentionPolicy extends Object
| Constructor and Description |
|---|
RetentionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getDays()
Gets the number of days that metrics or logging data should be
retained, if logging is enabled.
|
boolean |
isEnabled()
Gets a flag indicating whether a retention policy is enabled.
|
ServiceProperties.RetentionPolicy |
setDays(Integer days)
Sets the number of days that metrics or logging data should be
retained.
|
ServiceProperties.RetentionPolicy |
setEnabled(boolean enabled)
Sets a flag indicating whether to enable a retention policy.
|
public Integer getDays()
null.public ServiceProperties.RetentionPolicy setDays(Integer days)
false.days - The number of days to retain logging or metrics data.ServiceProperties.RetentionPolicy instance.public boolean isEnabled()
true if a retention policy is
enabled; otherwise, false.public ServiceProperties.RetentionPolicy setEnabled(boolean enabled)
enabled - Set a flag value of true to enable a
retention policy; otherwise, false.ServiceProperties.RetentionPolicy 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.
*/