[ 
https://issues.apache.org/jira/browse/BEAM-5716?focusedWorklogId=158179&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-158179
 ]

ASF GitHub Bot logged work on BEAM-5716:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Oct/18 15:12
            Start Date: 24/Oct/18 15:12
    Worklog Time Spent: 10m 
      Work Description: kkucharc commented on a change in pull request #6725: 
[BEAM-5716] Reorganize testing modules
URL: https://github.com/apache/beam/pull/6725#discussion_r227831614
 
 

 ##########
 File path: 
sdks/java/testing/test-utils/src/main/java/org/apache/beam/sdk/testutils/metrics/MetricsReader.java
 ##########
 @@ -0,0 +1,126 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ */
+package org.apache.beam.sdk.testutils.metrics;
+
+import java.util.NoSuchElementException;
+import org.apache.beam.sdk.PipelineResult;
+import org.apache.beam.sdk.metrics.DistributionResult;
+import org.apache.beam.sdk.metrics.MetricNameFilter;
+import org.apache.beam.sdk.metrics.MetricQueryResults;
+import org.apache.beam.sdk.metrics.MetricResult;
+import org.apache.beam.sdk.metrics.MetricsFilter;
+import org.joda.time.Duration;
+import org.slf4j.LoggerFactory;
+
+/** Provides methods for querying metrics from {@link PipelineResult} per 
namespace. */
+public class MetricsReader {
+
+  private static final org.slf4j.Logger LOG = 
LoggerFactory.getLogger(MetricsReader.class);
+
+  private enum DistributionType {
+    MIN,
+    MAX
 
 Review comment:
   Are we sure if we don't want to have also AVG? Maybe someone would find it 
useful in the future?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 158179)
    Time Spent: 1h 20m  (was: 1h 10m)

> Move testing utilities to a common place
> ----------------------------------------
>
>                 Key: BEAM-5716
>                 URL: https://issues.apache.org/jira/browse/BEAM-5716
>             Project: Beam
>          Issue Type: Task
>          Components: testing
>            Reporter: Lukasz Gajowy
>            Assignee: Lukasz Gajowy
>            Priority: Major
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> This was raised on the devlist here: 
> [https://lists.apache.org/thread.html/19412a35c06d41b378c7e0116557b6eccbd7c289d86998e8ab3fadcf@%3Cdev.beam.apache.org%3E]
> Short version: there are some testing utilities from nexmark module that 
> could be reused in load test (and possibly elsewhere). Other than that, both 
> Nexmark and Load-tests should be stored in a common module together with the 
> utils, as they all serve similar causes (testing).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to