Class: Google::Apis::BusinessprofileperformanceV1::DailyMetricTimeSeries

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_metricString

The DailyMetric that the TimeSeries represents. Corresponds to the JSON property dailyMetric

Returns:

  • (String)


33
34
35
# File 'lib/google/apis/businessprofileperformance_v1/classes.rb', line 33

def daily_metric
  @daily_metric
end

#daily_sub_entity_typeGoogle::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_seriesGoogle::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