google-analytics-admin-v1alpha 0.27.1 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -647,6 +647,9 @@ module Google
647
647
  # @!attribute [rw] event_create_rule
648
648
  # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule]
649
649
  # A snapshot of an EventCreateRule resource in change history.
650
+ # @!attribute [rw] calculated_metric
651
+ # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric]
652
+ # A snapshot of a CalculatedMetric resource in change history.
650
653
  class ChangeHistoryResource
651
654
  include ::Google::Protobuf::MessageExts
652
655
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -841,7 +844,7 @@ module Google
841
844
  # When a conversion event for this event_name has no set currency,
842
845
  # this currency will be applied as the default. Must be in ISO 4217
843
846
  # currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
844
- # more.
847
+ # more information.
845
848
  class DefaultConversionValue
846
849
  include ::Google::Protobuf::MessageExts
847
850
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1040,6 +1043,100 @@ module Google
1040
1043
  end
1041
1044
  end
1042
1045
 
1046
+ # A definition for a calculated metric.
1047
+ # @!attribute [r] name
1048
+ # @return [::String]
1049
+ # Output only. Resource name for this CalculatedMetric.
1050
+ # Format: 'properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id}'
1051
+ # @!attribute [rw] description
1052
+ # @return [::String]
1053
+ # Optional. Description for this calculated metric.
1054
+ # Max length of 4096 characters.
1055
+ # @!attribute [rw] display_name
1056
+ # @return [::String]
1057
+ # Required. Display name for this calculated metric as shown in the
1058
+ # Google Analytics UI. Max length 82 characters.
1059
+ # @!attribute [r] calculated_metric_id
1060
+ # @return [::String]
1061
+ # Output only. The ID to use for the calculated metric. In the UI, this is
1062
+ # referred to as the "API name."
1063
+ #
1064
+ # The calculated_metric_id is used when referencing this calculated metric
1065
+ # from external APIs. For example, "calcMetric:\\{calculated_metric_id}".
1066
+ # @!attribute [rw] metric_unit
1067
+ # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric::MetricUnit]
1068
+ # Required. The type for the calculated metric's value.
1069
+ # @!attribute [r] restricted_metric_type
1070
+ # @return [::Array<::Google::Analytics::Admin::V1alpha::CalculatedMetric::RestrictedMetricType>]
1071
+ # Output only. Types of restricted data that this metric contains.
1072
+ # @!attribute [rw] formula
1073
+ # @return [::String]
1074
+ # Required. The calculated metric's definition. Maximum number of unique
1075
+ # referenced custom metrics is 5. Formulas supports the following operations:
1076
+ # + (addition), - (subtraction), - (negative), * (multiplication), /
1077
+ # (division), () (parenthesis). Any valid real numbers are acceptable that
1078
+ # fit in a Long (64bit integer) or a Double (64 bit floating point number).
1079
+ # Example formula:
1080
+ # "( customEvent:parameter_name + cartPurchaseQuantity ) / 2.0"
1081
+ # @!attribute [r] invalid_metric_reference
1082
+ # @return [::Boolean]
1083
+ # Output only. If true, this calculated metric has a invalid metric
1084
+ # reference. Anything using a calculated metric with invalid_metric_reference
1085
+ # set to true may fail, produce warnings, or produce unexpected results.
1086
+ class CalculatedMetric
1087
+ include ::Google::Protobuf::MessageExts
1088
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1089
+
1090
+ # Possible types of representing the calculated metric's value.
1091
+ module MetricUnit
1092
+ # MetricUnit unspecified or missing.
1093
+ METRIC_UNIT_UNSPECIFIED = 0
1094
+
1095
+ # This metric uses default units.
1096
+ STANDARD = 1
1097
+
1098
+ # This metric measures a currency.
1099
+ CURRENCY = 2
1100
+
1101
+ # This metric measures feet.
1102
+ FEET = 3
1103
+
1104
+ # This metric measures miles.
1105
+ MILES = 4
1106
+
1107
+ # This metric measures meters.
1108
+ METERS = 5
1109
+
1110
+ # This metric measures kilometers.
1111
+ KILOMETERS = 6
1112
+
1113
+ # This metric measures milliseconds.
1114
+ MILLISECONDS = 7
1115
+
1116
+ # This metric measures seconds.
1117
+ SECONDS = 8
1118
+
1119
+ # This metric measures minutes.
1120
+ MINUTES = 9
1121
+
1122
+ # This metric measures hours.
1123
+ HOURS = 10
1124
+ end
1125
+
1126
+ # Labels that mark the data in calculated metric used in conjunction with
1127
+ # user roles that restrict access to cost and/or revenue metrics.
1128
+ module RestrictedMetricType
1129
+ # Type unknown or unspecified.
1130
+ RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0
1131
+
1132
+ # Metric reports cost data.
1133
+ COST_DATA = 1
1134
+
1135
+ # Metric reports revenue data.
1136
+ REVENUE_DATA = 2
1137
+ end
1138
+ end
1139
+
1043
1140
  # Settings values for data retention. This is a singleton resource.
1044
1141
  # @!attribute [r] name
1045
1142
  # @return [::String]
@@ -1600,6 +1697,9 @@ module Google
1600
1697
 
1601
1698
  # EventCreateRule resource
1602
1699
  EVENT_CREATE_RULE = 29
1700
+
1701
+ # CalculatedMetric resource
1702
+ CALCULATED_METRIC = 31
1603
1703
  end
1604
1704
 
1605
1705
  # Status of the Google Signals settings.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-analytics-admin-v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.1
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-12 00:00:00.000000000 Z
11
+ date: 2024-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common