public class OperationAggregator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.api.MetricDescriptor.MetricKind |
DEFAULT_KIND
Used when the
kinds is not specified, or for metric names that are not specified in
kinds |
| Constructor and Description |
|---|
OperationAggregator(com.google.api.servicecontrol.v1.Operation op,
java.util.Map<java.lang.String,com.google.api.MetricDescriptor.MetricKind> kinds)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.google.api.servicecontrol.v1.Operation other)
Combines
op with the other operation(s) merged into this instance. |
com.google.api.servicecontrol.v1.Operation |
asOperation() |
public static final com.google.api.MetricDescriptor.MetricKind DEFAULT_KIND
kinds is not specified, or for metric names that are not specified in
kindspublic OperationAggregator(com.google.api.servicecontrol.v1.Operation op,
java.util.Map<java.lang.String,com.google.api.MetricDescriptor.MetricKind> kinds)
op - the initial Operationkinds - specifies the MetricDescriptor.MetricKind for specific metric namespublic void add(com.google.api.servicecontrol.v1.Operation other)
op with the other operation(s) merged into this instance.other - an Operation to merge into the aggregate.public com.google.api.servicecontrol.v1.Operation asOperation()
Operation that combines all the merged Operations