Class: Google::Apis::BusinessprofileperformanceV1::DailyMetricTimeSeries
- Inherits:
-
Object
- Object
- Google::Apis::BusinessprofileperformanceV1::DailyMetricTimeSeries
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/businessprofileperformance_v1/classes.rb,
lib/google/apis/businessprofileperformance_v1/representations.rb,
lib/google/apis/businessprofileperformance_v1/representations.rb
Overview
Represents a single datapoint, where each datapoint is a DailyMetric- DailySubEntityType-TimeSeries tuple.
Instance Attribute Summary collapse
-
#daily_metric ⇒ String
The DailyMetric that the TimeSeries represents.
-
#daily_sub_entity_type ⇒ Google::Apis::BusinessprofileperformanceV1::DailySubEntityType
Represents all possible subentity types that are associated with DailyMetrics.
-
#time_series ⇒ Google::Apis::BusinessprofileperformanceV1::TimeSeries
Represents a timeseries.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DailyMetricTimeSeries
constructor
A new instance of DailyMetricTimeSeries.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DailyMetricTimeSeries
Returns a new instance of DailyMetricTimeSeries.
45 46 47 |
# File 'lib/google/apis/businessprofileperformance_v1/classes.rb', line 45 def initialize(**args) update!(**args) end |
Instance Attribute Details
#daily_metric ⇒ String
The DailyMetric that the TimeSeries represents.
Corresponds to the JSON property dailyMetric
33 34 35 |
# File 'lib/google/apis/businessprofileperformance_v1/classes.rb', line 33 def daily_metric @daily_metric end |
#daily_sub_entity_type ⇒ Google::Apis::BusinessprofileperformanceV1::DailySubEntityType
Represents all possible subentity types that are associated with DailyMetrics.
Corresponds to the JSON property dailySubEntityType
38 39 40 |
# File 'lib/google/apis/businessprofileperformance_v1/classes.rb', line 38 def daily_sub_entity_type @daily_sub_entity_type end |
#time_series ⇒ Google::Apis::BusinessprofileperformanceV1::TimeSeries
Represents a timeseries.
Corresponds to the JSON property timeSeries
43 44 45 |
# File 'lib/google/apis/businessprofileperformance_v1/classes.rb', line 43 def time_series @time_series end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
50 51 52 53 54 |
# File 'lib/google/apis/businessprofileperformance_v1/classes.rb', line 50 def update!(**args) @daily_metric = args[:daily_metric] if args.key?(:daily_metric) @daily_sub_entity_type = args[:daily_sub_entity_type] if args.key?(:daily_sub_entity_type) @time_series = args[:time_series] if args.key?(:time_series) end |