You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::GameLift::Types::MatchmakingTicket

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb

Overview

Ticket generated to track the progress of a matchmaking request. Each ticket is uniquely identified by a ticket ID, supplied by the requester, when creating a matchmaking request with StartMatchmaking. Tickets can be retrieved by calling DescribeMatchmaking with the ticket ID.

Instance Attribute Summary collapse

Instance Attribute Details

#configuration_nameString

Name of the MatchmakingConfiguration that is used with this ticket. Matchmaking configurations determine how players are grouped into a match and how a new game session is created for the match.

Returns:

  • (String)


4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 4412

class MatchmakingTicket < Struct.new(
  :ticket_id,
  :configuration_name,
  :status,
  :status_reason,
  :status_message,
  :start_time,
  :end_time,
  :players,
  :game_session_connection_info,
  :estimated_wait_time)
  include Aws::Structure
end

#end_timeTime

Time stamp indicating when the matchmaking request stopped being processed due to successful completion, timeout, or cancellation. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").

Returns:

  • (Time)


4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 4412

class MatchmakingTicket < Struct.new(
  :ticket_id,
  :configuration_name,
  :status,
  :status_reason,
  :status_message,
  :start_time,
  :end_time,
  :players,
  :game_session_connection_info,
  :estimated_wait_time)
  include Aws::Structure
end

#estimated_wait_timeInteger

Average amount of time (in seconds) that players are currently waiting for a match. If there is not enough recent data, this property may be empty.

Returns:

  • (Integer)


4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 4412

class MatchmakingTicket < Struct.new(
  :ticket_id,
  :configuration_name,
  :status,
  :status_reason,
  :status_message,
  :start_time,
  :end_time,
  :players,
  :game_session_connection_info,
  :estimated_wait_time)
  include Aws::Structure
end

#game_session_connection_infoTypes::GameSessionConnectionInfo

Identifier and connection information of the game session created for the match. This information is added to the ticket only after the matchmaking request has been successfully completed.



4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 4412

class MatchmakingTicket < Struct.new(
  :ticket_id,
  :configuration_name,
  :status,
  :status_reason,
  :status_message,
  :start_time,
  :end_time,
  :players,
  :game_session_connection_info,
  :estimated_wait_time)
  include Aws::Structure
end

#playersArray<Types::Player>

A set of Player objects, each representing a player to find matches for. Players are identified by a unique player ID and may include latency data for use during matchmaking. If the ticket is in status COMPLETED, the Player objects include the team the players were assigned to in the resulting match.

Returns:



4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 4412

class MatchmakingTicket < Struct.new(
  :ticket_id,
  :configuration_name,
  :status,
  :status_reason,
  :status_message,
  :start_time,
  :end_time,
  :players,
  :game_session_connection_info,
  :estimated_wait_time)
  include Aws::Structure
end

#start_timeTime

Time stamp indicating when this matchmaking request was received. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").

Returns:

  • (Time)


4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 4412

class MatchmakingTicket < Struct.new(
  :ticket_id,
  :configuration_name,
  :status,
  :status_reason,
  :status_message,
  :start_time,
  :end_time,
  :players,
  :game_session_connection_info,
  :estimated_wait_time)
  include Aws::Structure
end

#statusString

Current status of the matchmaking request.

  • QUEUED -- The matchmaking request has been received and is currently waiting to be processed.

  • SEARCHING -- The matchmaking request is currently being processed.

  • REQUIRES_ACCEPTANCE -- A match has been proposed and the players must accept the match (see AcceptMatch). This status is used only with requests that use a matchmaking configuration with a player acceptance requirement.

  • PLACING -- The FlexMatch engine has matched players and is in the process of placing a new game session for the match.

  • COMPLETED -- Players have been matched and a game session is ready to host the players. A ticket in this state contains the necessary connection information for players.

  • FAILED -- The matchmaking request was not completed. Tickets with players who fail to accept a proposed match are placed in FAILED status; new matchmaking requests can be submitted for these players.

  • CANCELLED -- The matchmaking request was canceled with a call to StopMatchmaking.

  • TIMED_OUT -- The matchmaking request was not completed within the duration specified in the matchmaking configuration. Matchmaking requests that time out can be resubmitted.

Returns:

  • (String)


4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 4412

class MatchmakingTicket < Struct.new(
  :ticket_id,
  :configuration_name,
  :status,
  :status_reason,
  :status_message,
  :start_time,
  :end_time,
  :players,
  :game_session_connection_info,
  :estimated_wait_time)
  include Aws::Structure
end

#status_messageString

Additional information about the current status.

Returns:

  • (String)


4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 4412

class MatchmakingTicket < Struct.new(
  :ticket_id,
  :configuration_name,
  :status,
  :status_reason,
  :status_message,
  :start_time,
  :end_time,
  :players,
  :game_session_connection_info,
  :estimated_wait_time)
  include Aws::Structure
end

#status_reasonString

Code to explain the current status. For example, a status reason may indicate when a ticket has returned to SEARCHING status after a proposed match fails to receive player acceptances.

Returns:

  • (String)


4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 4412

class MatchmakingTicket < Struct.new(
  :ticket_id,
  :configuration_name,
  :status,
  :status_reason,
  :status_message,
  :start_time,
  :end_time,
  :players,
  :game_session_connection_info,
  :estimated_wait_time)
  include Aws::Structure
end

#ticket_idString

Unique identifier for a matchmaking ticket.

Returns:

  • (String)


4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 4412

class MatchmakingTicket < Struct.new(
  :ticket_id,
  :configuration_name,
  :status,
  :status_reason,
  :status_message,
  :start_time,
  :end_time,
  :players,
  :game_session_connection_info,
  :estimated_wait_time)
  include Aws::Structure
end