Class: Google::Analytics::Data::V1beta::MetricMetadata
- Inherits:
-
Object
- Object
- Google::Analytics::Data::V1beta::MetricMetadata
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/analytics/data/v1beta/data.rb
Overview
Explains a metric.
Defined Under Namespace
Modules: BlockedReason
Instance Attribute Summary collapse
-
#api_name ⇒ ::String
A metric name.
-
#blocked_reasons ⇒ ::Array<::Google::Analytics::Data::V1beta::MetricMetadata::BlockedReason>
If reasons are specified, your access is blocked to this metric for this property.
-
#category ⇒ ::String
The display name of the category that this metrics belongs to.
-
#custom_definition ⇒ ::Boolean
True if the metric is a custom metric for this property.
-
#deprecated_api_names ⇒ ::Array<::String>
Still usable but deprecated names for this metric.
-
#description ⇒ ::String
Description of how this metric is used and calculated.
-
#expression ⇒ ::String
The mathematical expression for this derived metric.
-
#type ⇒ ::Google::Analytics::Data::V1beta::MetricType
The type of this metric.
-
#ui_name ⇒ ::String
This metric's name within the Google Analytics user interface.
Instance Attribute Details
#api_name ⇒ ::String
Returns A metric name. Useable in Metric's name
. For example,
eventCount
.
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
# File 'proto_docs/google/analytics/data/v1beta/data.rb', line 1034 class MetricMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Justifications for why this metric is blocked. module BlockedReason # Will never be specified in API response. BLOCKED_REASON_UNSPECIFIED = 0 # If present, your access is blocked to revenue related metrics for this # property, and this metric is revenue related. NO_REVENUE_METRICS = 1 # If present, your access is blocked to cost related metrics for this # property, and this metric is cost related. NO_COST_METRICS = 2 end end |
#blocked_reasons ⇒ ::Array<::Google::Analytics::Data::V1beta::MetricMetadata::BlockedReason>
Returns If reasons are specified, your access is blocked to this metric for this property. API requests from you to this property for this metric will succeed; however, the report will contain only zeros for this metric. API requests with metric filters on blocked metrics will fail. If reasons are empty, you have access to this metric.
To learn more, see Access and data-restriction management.
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
# File 'proto_docs/google/analytics/data/v1beta/data.rb', line 1034 class MetricMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Justifications for why this metric is blocked. module BlockedReason # Will never be specified in API response. BLOCKED_REASON_UNSPECIFIED = 0 # If present, your access is blocked to revenue related metrics for this # property, and this metric is revenue related. NO_REVENUE_METRICS = 1 # If present, your access is blocked to cost related metrics for this # property, and this metric is cost related. NO_COST_METRICS = 2 end end |
#category ⇒ ::String
Returns The display name of the category that this metrics belongs to. Similar dimensions and metrics are categorized together.
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
# File 'proto_docs/google/analytics/data/v1beta/data.rb', line 1034 class MetricMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Justifications for why this metric is blocked. module BlockedReason # Will never be specified in API response. BLOCKED_REASON_UNSPECIFIED = 0 # If present, your access is blocked to revenue related metrics for this # property, and this metric is revenue related. NO_REVENUE_METRICS = 1 # If present, your access is blocked to cost related metrics for this # property, and this metric is cost related. NO_COST_METRICS = 2 end end |
#custom_definition ⇒ ::Boolean
Returns True if the metric is a custom metric for this property.
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
# File 'proto_docs/google/analytics/data/v1beta/data.rb', line 1034 class MetricMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Justifications for why this metric is blocked. module BlockedReason # Will never be specified in API response. BLOCKED_REASON_UNSPECIFIED = 0 # If present, your access is blocked to revenue related metrics for this # property, and this metric is revenue related. NO_REVENUE_METRICS = 1 # If present, your access is blocked to cost related metrics for this # property, and this metric is cost related. NO_COST_METRICS = 2 end end |
#deprecated_api_names ⇒ ::Array<::String>
Returns 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
.
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
# File 'proto_docs/google/analytics/data/v1beta/data.rb', line 1034 class MetricMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Justifications for why this metric is blocked. module BlockedReason # Will never be specified in API response. BLOCKED_REASON_UNSPECIFIED = 0 # If present, your access is blocked to revenue related metrics for this # property, and this metric is revenue related. NO_REVENUE_METRICS = 1 # If present, your access is blocked to cost related metrics for this # property, and this metric is cost related. NO_COST_METRICS = 2 end end |
#description ⇒ ::String
Returns Description of how this metric is used and calculated.
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
# File 'proto_docs/google/analytics/data/v1beta/data.rb', line 1034 class MetricMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Justifications for why this metric is blocked. module BlockedReason # Will never be specified in API response. BLOCKED_REASON_UNSPECIFIED = 0 # If present, your access is blocked to revenue related metrics for this # property, and this metric is revenue related. NO_REVENUE_METRICS = 1 # If present, your access is blocked to cost related metrics for this # property, and this metric is cost related. NO_COST_METRICS = 2 end end |
#expression ⇒ ::String
Returns 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.
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
# File 'proto_docs/google/analytics/data/v1beta/data.rb', line 1034 class MetricMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Justifications for why this metric is blocked. module BlockedReason # Will never be specified in API response. BLOCKED_REASON_UNSPECIFIED = 0 # If present, your access is blocked to revenue related metrics for this # property, and this metric is revenue related. NO_REVENUE_METRICS = 1 # If present, your access is blocked to cost related metrics for this # property, and this metric is cost related. NO_COST_METRICS = 2 end end |
#type ⇒ ::Google::Analytics::Data::V1beta::MetricType
Returns The type of this metric.
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
# File 'proto_docs/google/analytics/data/v1beta/data.rb', line 1034 class MetricMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Justifications for why this metric is blocked. module BlockedReason # Will never be specified in API response. BLOCKED_REASON_UNSPECIFIED = 0 # If present, your access is blocked to revenue related metrics for this # property, and this metric is revenue related. NO_REVENUE_METRICS = 1 # If present, your access is blocked to cost related metrics for this # property, and this metric is cost related. NO_COST_METRICS = 2 end end |
#ui_name ⇒ ::String
Returns This metric's name within the Google Analytics user interface. For example,
Event count
.
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
# File 'proto_docs/google/analytics/data/v1beta/data.rb', line 1034 class MetricMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Justifications for why this metric is blocked. module BlockedReason # Will never be specified in API response. BLOCKED_REASON_UNSPECIFIED = 0 # If present, your access is blocked to revenue related metrics for this # property, and this metric is revenue related. NO_REVENUE_METRICS = 1 # If present, your access is blocked to cost related metrics for this # property, and this metric is cost related. NO_COST_METRICS = 2 end end |