PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / 3.2.2
ShareThis Dashboard for Google Analytics v3.2.2
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / lib / analytics-admin / vendor / google / cloud / AnalyticsData / src / V1alpha / MetricAggregation.php
googleanalytics / lib / analytics-admin / vendor / google / cloud / AnalyticsData / src / V1alpha Last commit date
CohortsRange 3 years ago DimensionExpression 3 years ago Filter 3 years ago Gapic 3 years ago OrderBy 3 years ago resources 3 years ago AlphaAnalyticsDataClient.php 3 years ago AlphaAnalyticsDataGrpcClient.php 3 years ago BatchRunPivotReportsRequest.php 3 years ago BatchRunPivotReportsResponse.php 3 years ago BatchRunReportsRequest.php 3 years ago BatchRunReportsResponse.php 3 years ago Cohort.php 3 years ago CohortReportSettings.php 3 years ago CohortSpec.php 3 years ago CohortsRange.php 3 years ago DateRange.php 3 years ago Dimension.php 3 years ago DimensionExpression.php 3 years ago DimensionHeader.php 3 years ago DimensionMetadata.php 3 years ago DimensionValue.php 3 years ago Entity.php 3 years ago Filter.php 3 years ago FilterExpression.php 3 years ago FilterExpressionList.php 3 years ago GetMetadataRequest.php 3 years ago Metadata.php 3 years ago Metric.php 3 years ago MetricAggregation.php 3 years ago MetricHeader.php 3 years ago MetricMetadata.php 3 years ago MetricType.php 3 years ago MetricValue.php 3 years ago NumericValue.php 3 years ago OrderBy.php 3 years ago Pivot.php 3 years ago PivotDimensionHeader.php 3 years ago PivotHeader.php 3 years ago PropertyQuota.php 3 years ago QuotaStatus.php 3 years ago ResponseMetaData.php 3 years ago Row.php 3 years ago RunPivotReportRequest.php 3 years ago RunPivotReportResponse.php 3 years ago RunRealtimeReportRequest.php 3 years ago RunRealtimeReportResponse.php 3 years ago RunReportRequest.php 3 years ago RunReportResponse.php 3 years ago gapic_metadata.json 3 years ago
MetricAggregation.php
76 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/analytics/data/v1alpha/data.proto
4
5 namespace Google\Analytics\Data\V1alpha;
6
7 use UnexpectedValueException;
8
9 /**
10 * Represents aggregation of metrics.
11 *
12 * Protobuf type <code>google.analytics.data.v1alpha.MetricAggregation</code>
13 */
14 class MetricAggregation
15 {
16 /**
17 * Unspecified operator.
18 *
19 * Generated from protobuf enum <code>METRIC_AGGREGATION_UNSPECIFIED = 0;</code>
20 */
21 const METRIC_AGGREGATION_UNSPECIFIED = 0;
22 /**
23 * SUM operator.
24 *
25 * Generated from protobuf enum <code>TOTAL = 1;</code>
26 */
27 const TOTAL = 1;
28 /**
29 * Minimum operator.
30 *
31 * Generated from protobuf enum <code>MINIMUM = 5;</code>
32 */
33 const MINIMUM = 5;
34 /**
35 * Maximum operator.
36 *
37 * Generated from protobuf enum <code>MAXIMUM = 6;</code>
38 */
39 const MAXIMUM = 6;
40 /**
41 * Count operator.
42 *
43 * Generated from protobuf enum <code>COUNT = 4;</code>
44 */
45 const COUNT = 4;
46
47 private static $valueToName = [
48 self::METRIC_AGGREGATION_UNSPECIFIED => 'METRIC_AGGREGATION_UNSPECIFIED',
49 self::TOTAL => 'TOTAL',
50 self::MINIMUM => 'MINIMUM',
51 self::MAXIMUM => 'MAXIMUM',
52 self::COUNT => 'COUNT',
53 ];
54
55 public static function name($value)
56 {
57 if (!isset(self::$valueToName[$value])) {
58 throw new UnexpectedValueException(sprintf(
59 'Enum %s has no name defined for value %s', __CLASS__, $value));
60 }
61 return self::$valueToName[$value];
62 }
63
64
65 public static function value($name)
66 {
67 $const = __CLASS__ . '::' . strtoupper($name);
68 if (!defined($const)) {
69 throw new UnexpectedValueException(sprintf(
70 'Enum %s has no value defined for name %s', __CLASS__, $name));
71 }
72 return constant($const);
73 }
74 }
75
76