Class: Zendesk2::TicketMetric

Inherits:
Cistern::Model
  • Object
show all
Extended by:
Attributes
Defined in:
lib/zendesk2/ticket_metric.rb

Instance Method Summary collapse

Methods included from Attributes

assoc_accessor, assoc_reader, assoc_writer

Instance Method Details

#agent_wait_time_in_minutesHash

Returns Number of minutes the agent spent waiting inside and out of business hours.

Returns:

  • (Hash)

    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_atTime

Returns When the ticket was last assigned.

Returns:

  • (Time)

    When the ticket was last assigned



32
# File 'lib/zendesk2/ticket_metric.rb', line 32

attribute :assigned_at, type: :time

#assignee_stationsInteger

Returns Number of assignees this ticket had.

Returns:

  • (Integer)

    Number of assignees this ticket had



17
# File 'lib/zendesk2/ticket_metric.rb', line 17

attribute :assignee_stations, type: :integer

#assignee_updated_atTime

Returns When the assignee last updated the ticket.

Returns:

  • (Time)

    When the assignee last updated the ticket



24
# File 'lib/zendesk2/ticket_metric.rb', line 24

attribute :assignee_updated_at, type: :time

#created_atTime

Returns The time the audit was created.

Returns:

  • (Time)

    The time the audit was created



10
# File 'lib/zendesk2/ticket_metric.rb', line 10

attribute :created_at, type: :time

#first_resolution_time_in_minutesHash

Returns Number of minutes to the first resolution time inside and out of business hours.

Returns:

  • (Hash)

    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_minutesHash

Returns Number of minutes to the full resolution inside and out of business hours.

Returns:

  • (Hash)

    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_stationsInteger

Returns Number of groups this ticket passed through.

Returns:

  • (Integer)

    Number of groups this ticket passed through



15
# File 'lib/zendesk2/ticket_metric.rb', line 15

attribute :group_stations, type: :integer

#idInteger

Returns Automatically assigned.

Returns:

  • (Integer)

    Automatically assigned



6
# File 'lib/zendesk2/ticket_metric.rb', line 6

identity :id, type: :integer

#initially_assigned_atTime

Returns When the ticket was initially assigned.

Returns:

  • (Time)

    When the ticket was initially assigned



30
# File 'lib/zendesk2/ticket_metric.rb', line 30

attribute :initially_assigned_at, type: :time

#latest_comment_added_atTime

Returns When the latest comment was added.

Returns:

  • (Time)

    When the latest comment was added



36
# File 'lib/zendesk2/ticket_metric.rb', line 36

attribute :latest_comment_added_at, type: :time

#reopensInteger

Returns Total number of times the ticket was reopened.

Returns:

  • (Integer)

    Total number of times the ticket was reopened



19
# File 'lib/zendesk2/ticket_metric.rb', line 19

attribute :reopens, type: :integer

#repliesInteger

Returns Total number of times ticket was replied to.

Returns:

  • (Integer)

    Total number of times ticket was replied to



21
# File 'lib/zendesk2/ticket_metric.rb', line 21

attribute :replies, type: :integer

#reply_time_in_minutesHash

Returns Number of minutes to the first reply inside and out of business hours.

Returns:

  • (Hash)

    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_atTime

Returns When the requester last updated the ticket.

Returns:

  • (Time)

    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_minutesHash

Returns Number of minutes the requester spent waiting inside and out of business hours.

Returns:

  • (Hash)

    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_atTime

Returns When the ticket was solved.

Returns:

  • (Time)

    When the ticket was solved



34
# File 'lib/zendesk2/ticket_metric.rb', line 34

attribute :solved_at, type: :time

#status_updated_atTime

Returns When the status was last updated.

Returns:

  • (Time)

    When the status was last updated



28
# File 'lib/zendesk2/ticket_metric.rb', line 28

attribute :status_updated_at, type: :time

#ticketObject



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_idInteger

Returns The ID of the associated ticket.

Returns:

  • (Integer)

    The ID of the associated ticket



8
# File 'lib/zendesk2/ticket_metric.rb', line 8

attribute :ticket_id, type: :integer

#updated_atTime

Returns The time the audit was last updated.

Returns:

  • (Time)

    The time the audit was last updated



12
# File 'lib/zendesk2/ticket_metric.rb', line 12

attribute :updated_at, type: :time