/** * Gets the minute metrics properties. * * @return A {@link MetricsProperties} object which represents the minute metrics properties. */ public MetricsProperties getMinuteMetrics() { return this.serviceProperties.getMinuteMetrics(); }
/** * Gets the minute metrics properties. * * @return A {@link MetricsProperties} object which represents the minute metrics properties. */ public MetricsProperties getMinuteMetrics() { return this.serviceProperties.getMinuteMetrics(); }
this.props.getMinuteMetrics().setRetentionIntervalInDays(this.retentionPolicyDays); MetricsProperties metrics = this.props.getMinuteMetrics(); if (Constants.AnalyticsConstants.VERSION_ELEMENT.equals(currentNode)) { metrics.setVersion(value);
this.props.getMinuteMetrics().setRetentionIntervalInDays(this.retentionPolicyDays); MetricsProperties metrics = this.props.getMinuteMetrics(); if (Constants.AnalyticsConstants.VERSION_ELEMENT.equals(currentNode)) { metrics.setVersion(value);
if (properties.getMinuteMetrics() != null) { writeMetricsProperties(xmlw, properties.getMinuteMetrics(), Constants.AnalyticsConstants.MINUTE_METRICS_ELEMENT);
if (properties.getMinuteMetrics() != null) { writeMetricsProperties(xmlw, properties.getMinuteMetrics(), Constants.AnalyticsConstants.MINUTE_METRICS_ELEMENT);
private void testAnalyticsDisable(ServiceClient client, ServiceProperties props) throws StorageException, InterruptedException { props.getLogging().setLogOperationTypes(EnumSet.noneOf(LoggingOperations.class)); props.getLogging().setRetentionIntervalInDays(null); props.getLogging().setVersion("1.0"); props.getHourMetrics().setMetricsLevel(MetricsLevel.DISABLED); props.getHourMetrics().setRetentionIntervalInDays(null); props.getHourMetrics().setVersion("1.0"); props.getMinuteMetrics().setMetricsLevel(MetricsLevel.DISABLED); props.getMinuteMetrics().setRetentionIntervalInDays(null); props.getMinuteMetrics().setVersion("1.0"); props.getCors().getCorsRules().clear(); callUploadServiceProps(client, props, null); assertServicePropertiesAreEqual(props, callDownloadServiceProperties(client)); }
props.getMinuteMetrics().setMetricsLevel(MetricsLevel.SERVICE); props.getMinuteMetrics().setRetentionIntervalInDays(6); props.getMinuteMetrics().setVersion("1.0"); newProps.setMinuteMetrics(props.getMinuteMetrics()); newProps.setCors(null); callUploadServiceProps(client, newProps, null);
props.getMinuteMetrics().setMetricsLevel(MetricsLevel.DISABLED); props.getMinuteMetrics().setRetentionIntervalInDays(null); callUploadServiceProps(client, props, null); props.getMinuteMetrics().setRetentionIntervalInDays(1); props.getMinuteMetrics().setMetricsLevel(MetricsLevel.SERVICE); callUploadServiceProps(client, props, null); props.getMinuteMetrics().setRetentionIntervalInDays(2); props.getMinuteMetrics().setMetricsLevel(MetricsLevel.SERVICE_AND_API); callUploadServiceProps(client, props, null);
if (propsA.getMinuteMetrics() != null && propsB.getMinuteMetrics() != null) { assertTrue(propsA.getMinuteMetrics().getMetricsLevel().equals(propsB.getMinuteMetrics().getMetricsLevel())); assertEquals(propsA.getMinuteMetrics().getRetentionIntervalInDays(), propsB.getMinuteMetrics() .getRetentionIntervalInDays()); assertEquals(propsA.getMinuteMetrics().getVersion(), propsB.getMinuteMetrics().getVersion()); assertNull(propsA.getMinuteMetrics()); assertNull(propsB.getMinuteMetrics());
throws StorageException, InterruptedException { final MetricsProperties minutes = (props == null) ? fileProps.getMinuteMetrics() : props.getMinuteMetrics();