private void collectByteThroughput0(ByteThroughputProvider provider) { final ThroughputMetricType throughputType = provider.getThroughputMetricType(); final ServiceMetricType byteCountType = throughputType.getByteCountMetricType(); final Set<MetricType> metrics = AwsSdkMetrics.getPredefinedMetrics(); final double byteCount = provider.getByteCount(); .withValue(throughputType.name()); final MetricDatum throughputDatum = new MetricDatum() .withMetricName(throughputType.getServiceName()) .withDimensions(throughputDimension) .withUnit(StandardUnit.BytesSecond)
ThroughputMetricType expectedThroughputType = (ThroughputMetricType) expectedType; ServiceMetricType expectedByteCountType = expectedThroughputType .getByteCountMetricType(); final String expectedByteCountTypeName = expectedByteCountType.name(); final String byteCountTypeNameSuffix = expectedByteCountTypeName.substring(2); .guessThroughputMetricType(req, suffix, byteCountTypeNameSuffix); String actualTypeName = actualType.name(); final ServiceMetricType actualByteCountType = actualType.getByteCountMetricType(); assertEquals(expectedServiceName, actualType.getServiceName()); assertEquals(expectedServiceName, actualByteCountType.getServiceName()); assertEquals(actualTypeName, expectedType, actualType);
private void collectByteThroughput0(ByteThroughputProvider provider) { final ThroughputMetricType throughputType = provider.getThroughputMetricType(); final ServiceMetricType byteCountType = throughputType.getByteCountMetricType(); final Set<MetricType> metrics = AwsSdkMetrics.getPredefinedMetrics(); final double byteCount = provider.getByteCount(); .withValue(throughputType.name()); final MetricDatum throughputDatum = new MetricDatum() .withMetricName(throughputType.getServiceName()) .withDimensions(throughputDimension) .withUnit(StandardUnit.BytesSecond)