Class: Google::Apis::MybusinessbusinesscallsV1::AggregateMetrics

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

Metrics aggregated over the input time range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AggregateMetrics

Returns a new instance of AggregateMetrics.



73
74
75
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 73

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#answered_calls_countFixnum

Total count of answered calls. Corresponds to the JSON property answeredCallsCount

Returns:

  • (Fixnum)


32
33
34
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 32

def answered_calls_count
  @answered_calls_count
end

#end_dateGoogle::Apis::MybusinessbusinesscallsV1::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property endDate



44
45
46
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 44

def end_date
  @end_date
end

#hourly_metricsArray<Google::Apis::MybusinessbusinesscallsV1::HourlyMetrics>

A list of metrics by hour of day. Corresponds to the JSON property hourlyMetrics



49
50
51
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 49

def hourly_metrics
  @hourly_metrics
end

#missed_calls_countFixnum

Total count of missed calls. Corresponds to the JSON property missedCallsCount

Returns:

  • (Fixnum)


54
55
56
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 54

def missed_calls_count
  @missed_calls_count
end

#start_dateGoogle::Apis::MybusinessbusinesscallsV1::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property startDate



66
67
68
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 66

def start_date
  @start_date
end

#weekday_metricsArray<Google::Apis::MybusinessbusinesscallsV1::WeekDayMetrics>

A list of metrics by day of week. Corresponds to the JSON property weekdayMetrics



71
72
73
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 71

def weekday_metrics
  @weekday_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



78
79
80
81
82
83
84
85
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 78

def update!(**args)
  @answered_calls_count = args[:answered_calls_count] if args.key?(:answered_calls_count)
  @end_date = args[:end_date] if args.key?(:end_date)
  @hourly_metrics = args[:hourly_metrics] if args.key?(:hourly_metrics)
  @missed_calls_count = args[:missed_calls_count] if args.key?(:missed_calls_count)
  @start_date = args[:start_date] if args.key?(:start_date)
  @weekday_metrics = args[:weekday_metrics] if args.key?(:weekday_metrics)
end