Class: Google::Apis::MybusinessbusinesscallsV1::BusinessCallsInsights
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinesscallsV1::BusinessCallsInsights
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessbusinesscalls_v1/classes.rb,
lib/google/apis/mybusinessbusinesscalls_v1/representations.rb,
lib/google/apis/mybusinessbusinesscalls_v1/representations.rb
Overview
Insights for calls made to a location.
Instance Attribute Summary collapse
-
#aggregate_metrics ⇒ Google::Apis::MybusinessbusinesscallsV1::AggregateMetrics
Metrics aggregated over the input time range.
-
#metric_type ⇒ String
The metric for which the value applies.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BusinessCallsInsights
constructor
A new instance of BusinessCallsInsights.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BusinessCallsInsights
Returns a new instance of BusinessCallsInsights.
108 109 110 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 108 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aggregate_metrics ⇒ Google::Apis::MybusinessbusinesscallsV1::AggregateMetrics
Metrics aggregated over the input time range.
Corresponds to the JSON property aggregateMetrics
95 96 97 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 95 def aggregate_metrics @aggregate_metrics end |
#metric_type ⇒ String
The metric for which the value applies.
Corresponds to the JSON property metricType
100 101 102 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 100 def metric_type @metric_type end |
#name ⇒ String
Required. The resource name of the calls insights. Format: locations/location
/businesscallsinsights
Corresponds to the JSON property name
106 107 108 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 106 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
113 114 115 116 117 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 113 def update!(**args) @aggregate_metrics = args[:aggregate_metrics] if args.key?(:aggregate_metrics) @metric_type = args[:metric_type] if args.key?(:metric_type) @name = args[:name] if args.key?(:name) end |