Modified level session schema to log playtime, renormalize score and name in matches

This commit is contained in:
Michael Schmatz 2014-05-16 14:13:59 -07:00
parent 21ccaa2d8a
commit 2e36a3352e

View file

@ -113,6 +113,12 @@ _.extend LevelSessionSchema.properties,
type: 'string'
default: 'javascript'
playtime:
type: 'number'
title: 'Playtime'
default: 0
description: 'The total playtime on this session'
teamSpells:
type: 'object'
additionalProperties:
@ -193,6 +199,11 @@ _.extend LevelSessionSchema.properties,
date: c.date
title: 'Date computed'
description: 'The date a match was computed.'
playtime:
title: 'Playtime so far'
description: 'The total seconds of playtime on this session when the match was computed.'
type: 'number'
metrics:
type: 'object'
title: 'Metrics'
@ -217,6 +228,14 @@ _.extend LevelSessionSchema.properties,
title: 'Opponent User ID'
description: 'The user ID of an opponent'
type: ['object','string']
name:
title: 'Opponent name'
description: 'The name of the opponent'
type: 'string'
totalScore:
title: 'Opponent total score'
description: 'The totalScore of a user when the match was computed'
type: 'number'
metrics:
type: 'object'
properties: