Class Metric
Metrics are the quantitative measurements. For example,
the metric ga:users
indicates the total number of users for the requested time period.
Implements
Inherited Members
Namespace: Google.Apis.AnalyticsReporting.v4.Data
Assembly: Google.Apis.AnalyticsReporting.v4.dll
Syntax
public class Metric : IDirectResponseSchema
Properties
Alias
An alias for the metric expression is an alternate name for the expression. The alias can be used for filtering and sorting. This field is optional and is useful if the expression is not a single metric but a complex expression which cannot be used in filtering and sorting. The alias is also used in the response column header.
Declaration
[JsonProperty("alias")]
public virtual string Alias { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Expression
A metric expression in the request. An expression is constructed from one or more metrics and numbers.
Accepted operators include: Plus (+), Minus (-), Negation (Unary -), Divided by (/), Multiplied by (*),
Parenthesis, Positive cardinal numbers (0-9), can include decimals and is limited to 1024 characters.
Example ga:totalRefunds/ga:users
, in most cases the metric expression is just a single metric name like
ga:users
. Adding mixed MetricType
(E.g., CURRENCY
+ PERCENTAGE
) metrics will result in unexpected
results.
Declaration
[JsonProperty("expression")]
public virtual string Expression { get; set; }
Property Value
Type | Description |
---|---|
string |
FormattingType
Specifies how the metric expression should be formatted, for example INTEGER
.
Declaration
[JsonProperty("formattingType")]
public virtual string FormattingType { get; set; }
Property Value
Type | Description |
---|---|
string |