public final class MetricRule
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Service Consumer Management API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
MetricRule() |
Modifier and Type | Method and Description |
---|---|
MetricRule |
clone() |
java.util.Map<java.lang.String,java.lang.Long> |
getMetricCosts()
Metrics to update when the selected methods are called, and the associated cost applied to each
metric.
|
java.lang.String |
getSelector()
Selects the methods to which this rule applies.
|
MetricRule |
set(java.lang.String fieldName,
java.lang.Object value) |
MetricRule |
setMetricCosts(java.util.Map<java.lang.String,java.lang.Long> metricCosts)
Metrics to update when the selected methods are called, and the associated cost applied to each
metric.
|
MetricRule |
setSelector(java.lang.String selector)
Selects the methods to which this rule applies.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.Map<java.lang.String,java.lang.Long> getMetricCosts()
null
for nonepublic MetricRule setMetricCosts(java.util.Map<java.lang.String,java.lang.Long> metricCosts)
metricCosts
- metricCosts or null
for nonepublic java.lang.String getSelector()
null
for nonepublic MetricRule setSelector(java.lang.String selector)
selector
- selector or null
for nonepublic MetricRule set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public MetricRule clone()
clone
in class com.google.api.client.json.GenericJson