public final class Metric 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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Metric() |
Modifier and Type | Method and Description |
---|---|
Metric |
clone() |
String |
getAlias()
An alias for the metric expression is an alternate name for the expression.
|
String |
getExpression()
A metric expression in the request.
|
String |
getFormattingType()
Specifies how the metric expression should be formatted, for example `INTEGER`.
|
Metric |
set(String fieldName,
Object value) |
Metric |
setAlias(String alias)
An alias for the metric expression is an alternate name for the expression.
|
Metric |
setExpression(String expression)
A metric expression in the request.
|
Metric |
setFormattingType(String formattingType)
Specifies how the metric expression should be formatted, for example `INTEGER`.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getAlias()
null
for nonepublic Metric setAlias(String alias)
alias
- alias or null
for nonepublic String getExpression()
null
for nonepublic Metric setExpression(String expression)
expression
- expression or null
for nonepublic String getFormattingType()
null
for nonepublic Metric setFormattingType(String formattingType)
formattingType
- formattingType or null
for nonepublic Metric set(String fieldName, Object value)
set
in class GenericJson
public Metric clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.