2014-12-15 14:45:12 -05:00
|
|
|
c = require './../schemas'
|
|
|
|
|
|
|
|
AnalyticsLogEventSchema = c.object {
|
|
|
|
title: 'Analytics Log Event'
|
|
|
|
description: 'Analytics event logs.'
|
|
|
|
}
|
|
|
|
|
|
|
|
_.extend AnalyticsLogEventSchema.properties,
|
2015-01-14 20:51:04 -05:00
|
|
|
u: c.objectId(links: [{rel: 'extra', href: '/db/user/{($)}'}])
|
|
|
|
e: {type: 'integer'}
|
|
|
|
p: {type: 'object'}
|
|
|
|
|
|
|
|
# TODO: Remove these legacy properties after we stop querying for them (probably 30 days, ~2/16/15)
|
2014-12-15 14:45:12 -05:00
|
|
|
user: c.objectId(links: [{rel: 'extra', href: '/db/user/{($)}'}])
|
|
|
|
event: {type: 'string'}
|
|
|
|
properties: {type: 'object'}
|
|
|
|
|
|
|
|
c.extendBasicProperties AnalyticsLogEventSchema, 'analytics.log.event'
|
|
|
|
|
|
|
|
module.exports = AnalyticsLogEventSchema
|