Class: Google::Apis::MybusinessbusinesscallsV1::AggregateMetrics
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinesscallsV1::AggregateMetrics
- 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
-
#answered_calls_count ⇒ Fixnum
Total count of answered calls.
-
#end_date ⇒ Google::Apis::MybusinessbusinesscallsV1::Date
Represents a whole or partial calendar date, such as a birthday.
-
#hourly_metrics ⇒ Array<Google::Apis::MybusinessbusinesscallsV1::HourlyMetrics>
A list of metrics by hour of day.
-
#missed_calls_count ⇒ Fixnum
Total count of missed calls.
-
#start_date ⇒ Google::Apis::MybusinessbusinesscallsV1::Date
Represents a whole or partial calendar date, such as a birthday.
-
#weekday_metrics ⇒ Array<Google::Apis::MybusinessbusinesscallsV1::WeekDayMetrics>
A list of metrics by day of week.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AggregateMetrics
constructor
A new instance of AggregateMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_count ⇒ Fixnum
Total count of answered calls.
Corresponds to the JSON property answeredCallsCount
32 33 34 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 32 def answered_calls_count @answered_calls_count end |
#end_date ⇒ Google::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_metrics ⇒ Array<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_count ⇒ Fixnum
Total count of missed calls.
Corresponds to the JSON property missedCallsCount
54 55 56 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 54 def missed_calls_count @missed_calls_count end |
#start_date ⇒ Google::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_metrics ⇒ Array<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 |