Show / Hide Table of Contents

Class MetricMetadata

Explains a metric.

Inheritance
System.Object
MetricMetadata
Implements
Google.Protobuf.IMessage<MetricMetadata>
System.IEquatable<MetricMetadata>
Google.Protobuf.IDeepCloneable<MetricMetadata>
Google.Protobuf.IBufferMessage
Google.Protobuf.IMessage
Inherited Members
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
Namespace: Google.Analytics.Data.V1Beta
Assembly: Google.Analytics.Data.V1Beta.dll
Syntax
public sealed class MetricMetadata : IMessage<MetricMetadata>, IEquatable<MetricMetadata>, IDeepCloneable<MetricMetadata>, IBufferMessage, IMessage

Constructors

MetricMetadata()

Declaration
public MetricMetadata()

MetricMetadata(MetricMetadata)

Declaration
public MetricMetadata(MetricMetadata other)
Parameters
Type Name Description
MetricMetadata other

Properties

ApiName

A metric name. Useable in Metric's name. For example, eventCount.

Declaration
public string ApiName { get; set; }
Property Value
Type Description
System.String

CustomDefinition

True if the metric is a custom metric for this property.

Declaration
public bool CustomDefinition { get; set; }
Property Value
Type Description
System.Boolean

DeprecatedApiNames

Still usable but deprecated names for this metric. If populated, this metric is available by either apiName or one of deprecatedApiNames for a period of time. After the deprecation period, the metric will be available only by apiName.

Declaration
public RepeatedField<string> DeprecatedApiNames { get; }
Property Value
Type Description
Google.Protobuf.Collections.RepeatedField<System.String>

Description

Description of how this metric is used and calculated.

Declaration
public string Description { get; set; }
Property Value
Type Description
System.String

Expression

The mathematical expression for this derived metric. Can be used in Metric's expression field for equivalent reports. Most metrics are not expressions, and for non-expressions, this field is empty.

Declaration
public string Expression { get; set; }
Property Value
Type Description
System.String

Type

The type of this metric.

Declaration
public MetricType Type { get; set; }
Property Value
Type Description
MetricType

UiName

This metric's name within the Google Analytics user interface. For example, Event count.

Declaration
public string UiName { get; set; }
Property Value
Type Description
System.String
Back to top