public enum KnownMetrics extends java.lang.Enum<KnownMetrics>
| Modifier and Type | Method and Description |
|---|---|
com.google.api.MetricDescriptor.MetricKind |
getKind() |
java.lang.String |
getName() |
com.google.api.MetricDescriptor.ValueType |
getType() |
com.google.api.control.model.KnownMetrics.Update |
getUpdater() |
static boolean |
isSupported(com.google.api.MetricDescriptor d)
Determines if the given
MetricDescriptor is supported. |
boolean |
matches(com.google.api.MetricDescriptor d)
Determines if
d matches this KnownMetric instance. |
void |
performUpdate(ReportRequestInfo info,
com.google.api.servicecontrol.v1.Operation.Builder o)
Adds metrics to an operation from the provided request data
|
static KnownMetrics |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KnownMetrics[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KnownMetrics CONSUMER_REQUEST_COUNT
public static final KnownMetrics PRODUCER_REQUEST_COUNT
public static final KnownMetrics PRODUCER_BY_CONSUMER_REQUEST_COUNT
public static final KnownMetrics CONSUMER_REQUEST_SIZES
public static final KnownMetrics PRODUCER_REQUEST_SIZES
public static final KnownMetrics PRODUCER_BY_CONSUMER_REQUEST_SIZES
public static final KnownMetrics CONSUMER_RESPONSE_SIZES
public static final KnownMetrics PRODUCER_RESPONSE_SIZES
public static final KnownMetrics PRODUCER_BY_CONSUMER_RESPONSE_SIZES
public static final KnownMetrics CONSUMER_REQUEST_ERROR_COUNT
public static final KnownMetrics PRODUCER_REQUEST_ERROR_COUNT
public static final KnownMetrics PRODUCER_BY_CONSUMER_ERROR_COUNT
public static final KnownMetrics CONSUMER_TOTAL_LATENCIES
public static final KnownMetrics PRODUCER_TOTAL_LATENCIES
public static final KnownMetrics PRODUCER_BY_CONSUMER_TOTAL_LATENCIES
public static final KnownMetrics CONSUMER_BACKEND_LATENCIES
public static final KnownMetrics PRODUCER_BACKEND_LATENCIES
public static final KnownMetrics PRODUCER_BY_CONSUMER_BACKEND_LATENCIES
public static final KnownMetrics CONSUMER_REQUEST_OVERHEAD_LATENCIES
public static final KnownMetrics PRODUCER_REQUEST_OVERHEAD_LATENCIES
public static final KnownMetrics PRODUCER_BY_CONSUMER_REQUEST_OVERHEAD_LATENCIES
public static KnownMetrics[] values()
for (KnownMetrics c : KnownMetrics.values()) System.out.println(c);
public static KnownMetrics valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getName()
public com.google.api.MetricDescriptor.MetricKind getKind()
MetricKind of metrics that match this instancepublic com.google.api.MetricDescriptor.ValueType getType()
ValueType of metrics that match this instancepublic com.google.api.control.model.KnownMetrics.Update getUpdater()
public boolean matches(com.google.api.MetricDescriptor d)
d matches this KnownMetric instance.d - a LabelDescriptortrue if d matchespublic static boolean isSupported(com.google.api.MetricDescriptor d)
MetricDescriptor is supported.d - a MetricDescriptortrue if the MetricDescriptor is supported, otherwise falsepublic void performUpdate(ReportRequestInfo info, com.google.api.servicecontrol.v1.Operation.Builder o)
info - contains request data to be reportedo - the Operation.Builder to which metrics will be added