Search in sources :

Example 6 with NameAndKind

use of com.google.api.services.dataflow.model.NameAndKind in project beam by apache.

the class CounterShortIdCacheTest method createMetricUpdateNameAndKind.

private CounterUpdate createMetricUpdateNameAndKind(final String name) {
    CounterUpdate metricUpdate = new CounterUpdate();
    NameAndKind nameAndKind = new NameAndKind();
    nameAndKind.setName(name);
    metricUpdate.setNameAndKind(nameAndKind);
    return metricUpdate;
}
Also used : NameAndKind(com.google.api.services.dataflow.model.NameAndKind) CounterUpdate(com.google.api.services.dataflow.model.CounterUpdate)

Aggregations

NameAndKind (com.google.api.services.dataflow.model.NameAndKind)6 CounterUpdate (com.google.api.services.dataflow.model.CounterUpdate)5 WorkItemStatus (com.google.api.services.dataflow.model.WorkItemStatus)2 CounterSet (org.apache.beam.runners.dataflow.worker.counters.CounterSet)2 Nullable (org.checkerframework.checker.nullness.qual.Nullable)2 Test (org.junit.Test)2 CounterMetadata (com.google.api.services.dataflow.model.CounterMetadata)1 CounterStructuredName (com.google.api.services.dataflow.model.CounterStructuredName)1 CounterStructuredNameAndMetadata (com.google.api.services.dataflow.model.CounterStructuredNameAndMetadata)1 IntegerMean (com.google.api.services.dataflow.model.IntegerMean)1 CounterCell (org.apache.beam.runners.core.metrics.CounterCell)1 DistributionData (org.apache.beam.runners.core.metrics.DistributionData)1 MetricsContainerImpl (org.apache.beam.runners.core.metrics.MetricsContainerImpl)1