Version: en

Custom Ticket Data Access

Supported Data Sources#

There are different levels of data sources accessible in rules.

Match#

A match has the following accessible fields:

FieldTypeDescription
TeamsList<Object>The list of teams in the match
TicketsList<Object>The list of tickets in the match
PlayersList<Object>The list of players in the match

Team#

A team has the following accessible fields:

FieldTypeDescription
NameTextThe name of the team
TicketsList<Object>The list of tickets in the team
PlayersList<Object>The list of players in the team

Ticket#

A ticket has the following accessible fields:

FieldTypeDescription
AgeNumberThe current age of the ticket
PlayersList<Object>The list of players in the ticket
DataCustom JObjectCustom data defined by the developer
QosResultsQosResultsThe QosResults for the ticket

Player#

A player has the following accessible fields:

FieldTypeDescription
DataCustom JObjectCustom data defined by the developer

QosResults#

A QosResults has the following accessible fields:

FieldTypeDescription
RegionIdstringThe Multiplay Region ID
LatencyNumberLatency in milliseconds
PacketLossNumberPacket loss ratio [0.0..1.0]

Supported Data Operations#

OperationInputOutputDescription
CountList<*>NumberGet the number of elements in the provided list
MedianList<Number>NumberGet the Median of the numbers in the provided list
AvgList<Number>NumberGet the Average of the numbers in the provided list
SumList<Number>NumberGet the Summation of the numbers in the provided list
MinList<Number>NumberGet the Minimum number from the provided list of numbers
MaxList<Number>NumberGet the Maximum number from the provided list of numbers

Examples#

The skill of the ticket#

{ ..."Source": "Ticket.Data.Skill"... }

The sum of all ticket skills in the team#

{ ..."Source": "Team.Tickets.Data.Skill.Sum"... }

The average of all players' skills in the whole match#

{ ..."Source": "Match.Players.Data.Skill.Avg"... }