Class: Zendesk2::TicketMetric
- Inherits:
-
Cistern::Model
- Object
- Cistern::Model
- Zendesk2::TicketMetric
- Extended by:
- Attributes
- Defined in:
- lib/zendesk2/ticket_metric.rb
Instance Method Summary collapse
-
#agent_wait_time_in_minutes ⇒ Hash
Number of minutes the agent spent waiting inside and out of business hours.
-
#assigned_at ⇒ Time
When the ticket was last assigned.
-
#assignee_stations ⇒ Integer
Number of assignees this ticket had.
-
#assignee_updated_at ⇒ Time
When the assignee last updated the ticket.
-
#created_at ⇒ Time
The time the audit was created.
-
#first_resolution_time_in_minutes ⇒ Hash
Number of minutes to the first resolution time inside and out of business hours.
-
#full_resolution_time_in_minutes ⇒ Hash
Number of minutes to the full resolution inside and out of business hours.
-
#group_stations ⇒ Integer
Number of groups this ticket passed through.
-
#id ⇒ Integer
Automatically assigned.
-
#initially_assigned_at ⇒ Time
When the ticket was initially assigned.
-
#latest_comment_added_at ⇒ Time
When the latest comment was added.
-
#reopens ⇒ Integer
Total number of times the ticket was reopened.
-
#replies ⇒ Integer
Total number of times ticket was replied to.
-
#reply_time_in_minutes ⇒ Hash
Number of minutes to the first reply inside and out of business hours.
-
#requester_updated_at ⇒ Time
When the requester last updated the ticket.
-
#requester_wait_time_in_minutes ⇒ Hash
Number of minutes the requester spent waiting inside and out of business hours.
-
#solved_at ⇒ Time
When the ticket was solved.
-
#status_updated_at ⇒ Time
When the status was last updated.
- #ticket ⇒ Object
-
#ticket_id ⇒ Integer
The ID of the associated ticket.
-
#updated_at ⇒ Time
The time the audit was last updated.
Methods included from Attributes
assoc_accessor, assoc_reader, assoc_writer
Instance Method Details
#agent_wait_time_in_minutes ⇒ Hash
Returns Number of minutes the agent spent waiting inside and out of business hours.
45 |
# File 'lib/zendesk2/ticket_metric.rb', line 45 attribute :agent_wait_time_in_minutes |
#assigned_at ⇒ Time
Returns When the ticket was last assigned.
32 |
# File 'lib/zendesk2/ticket_metric.rb', line 32 attribute :assigned_at, type: :time |
#assignee_stations ⇒ Integer
Returns Number of assignees this ticket had.
17 |
# File 'lib/zendesk2/ticket_metric.rb', line 17 attribute :assignee_stations, type: :integer |
#assignee_updated_at ⇒ Time
Returns When the assignee last updated the ticket.
24 |
# File 'lib/zendesk2/ticket_metric.rb', line 24 attribute :assignee_updated_at, type: :time |
#created_at ⇒ Time
Returns The time the audit was created.
10 |
# File 'lib/zendesk2/ticket_metric.rb', line 10 attribute :created_at, type: :time |
#first_resolution_time_in_minutes ⇒ Hash
Returns Number of minutes to the first resolution time inside and out of business hours.
39 |
# File 'lib/zendesk2/ticket_metric.rb', line 39 attribute :first_resolution_time_in_minutes |
#full_resolution_time_in_minutes ⇒ Hash
Returns Number of minutes to the full resolution inside and out of business hours.
43 |
# File 'lib/zendesk2/ticket_metric.rb', line 43 attribute :full_resolution_time_in_minutes |
#group_stations ⇒ Integer
Returns Number of groups this ticket passed through.
15 |
# File 'lib/zendesk2/ticket_metric.rb', line 15 attribute :group_stations, type: :integer |
#id ⇒ Integer
Returns Automatically assigned.
6 |
# File 'lib/zendesk2/ticket_metric.rb', line 6 identity :id, type: :integer |
#initially_assigned_at ⇒ Time
Returns When the ticket was initially assigned.
30 |
# File 'lib/zendesk2/ticket_metric.rb', line 30 attribute :initially_assigned_at, type: :time |
#latest_comment_added_at ⇒ Time
Returns When the latest comment was added.
36 |
# File 'lib/zendesk2/ticket_metric.rb', line 36 attribute :latest_comment_added_at, type: :time |
#reopens ⇒ Integer
Returns Total number of times the ticket was reopened.
19 |
# File 'lib/zendesk2/ticket_metric.rb', line 19 attribute :reopens, type: :integer |
#replies ⇒ Integer
Returns Total number of times ticket was replied to.
21 |
# File 'lib/zendesk2/ticket_metric.rb', line 21 attribute :replies, type: :integer |
#reply_time_in_minutes ⇒ Hash
Returns Number of minutes to the first reply inside and out of business hours.
41 |
# File 'lib/zendesk2/ticket_metric.rb', line 41 attribute :reply_time_in_minutes |
#requester_updated_at ⇒ Time
Returns When the requester last updated the ticket.
26 |
# File 'lib/zendesk2/ticket_metric.rb', line 26 attribute :requester_updated_at, type: :time |
#requester_wait_time_in_minutes ⇒ Hash
Returns Number of minutes the requester spent waiting inside and out of business hours.
47 |
# File 'lib/zendesk2/ticket_metric.rb', line 47 attribute :requester_wait_time_in_minutes |
#solved_at ⇒ Time
Returns When the ticket was solved.
34 |
# File 'lib/zendesk2/ticket_metric.rb', line 34 attribute :solved_at, type: :time |
#status_updated_at ⇒ Time
Returns When the status was last updated.
28 |
# File 'lib/zendesk2/ticket_metric.rb', line 28 attribute :status_updated_at, type: :time |
#ticket ⇒ Object
49 50 51 52 53 |
# File 'lib/zendesk2/ticket_metric.rb', line 49 def ticket requires :ticket_id cistern.tickets.get(ticket_id) end |
#ticket_id ⇒ Integer
Returns The ID of the associated ticket.
8 |
# File 'lib/zendesk2/ticket_metric.rb', line 8 attribute :ticket_id, type: :integer |
#updated_at ⇒ Time
Returns The time the audit was last updated.
12 |
# File 'lib/zendesk2/ticket_metric.rb', line 12 attribute :updated_at, type: :time |