public final class MetricFilter extends 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 Analytics Reporting API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MetricFilter() |
| Modifier and Type | Method and Description |
|---|---|
MetricFilter |
clone() |
String |
getComparisonValue()
The value to compare against.
|
String |
getMetricName()
The metric that will be filtered on.
|
Boolean |
getNot()
Logical `NOT` operator.
|
String |
getOperator()
Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the comparisonValue, the default is
`EQUAL`.
|
MetricFilter |
set(String fieldName,
Object value) |
MetricFilter |
setComparisonValue(String comparisonValue)
The value to compare against.
|
MetricFilter |
setMetricName(String metricName)
The metric that will be filtered on.
|
MetricFilter |
setNot(Boolean not)
Logical `NOT` operator.
|
MetricFilter |
setOperator(String operator)
Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the comparisonValue, the default is
`EQUAL`.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getComparisonValue()
null for nonepublic MetricFilter setComparisonValue(String comparisonValue)
comparisonValue - comparisonValue or null for nonepublic String getMetricName()
null for nonepublic MetricFilter setMetricName(String metricName)
metricName - metricName or null for nonepublic Boolean getNot()
null for nonepublic MetricFilter setNot(Boolean not)
not - not or null for nonepublic String getOperator()
null for nonepublic MetricFilter setOperator(String operator)
operator - operator or null for nonepublic MetricFilter set(String fieldName, Object value)
set in class GenericJsonpublic MetricFilter clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.