Class: Google::Apis::MybusinessbusinesscallsV1::BusinessCallsInsights

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

Instance Method Summary collapse

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_metricsGoogle::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_typeString

The metric for which the value applies. Corresponds to the JSON property metricType

Returns:

  • (String)


100
101
102
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 100

def metric_type
  @metric_type
end

#nameString

Required. The resource name of the calls insights. Format: locations/location /businesscallsinsights Corresponds to the JSON property name

Returns:

  • (String)


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