Skip to content

Instantly share code, notes, and snippets.

@sfentress
Last active July 12, 2016 16:06
Show Gist options
  • Save sfentress/2e8eb2382cd891ad8b8052c73d75904b to your computer and use it in GitHub Desktop.
Save sfentress/2e8eb2382cd891ad8b8052c73d75904b to your computer and use it in GitHub Desktop.
Sample Actor-Action-Target Log, and list of current existing keywords
Actors:
USER - actions triggered directly by user
SYSTEM - actions triggered by system (e.g. "started session")
Actions:
STARTED
NAVIGATED
ADVANCED
CHANGED
SUBMITTED
Targets:
SESSION
CHALLENGE
TRAIL
ALLELE
SEX
DRAKE
[{
"event": {
"username": "testuser-c2221558",
"session": "c2221558-8173-45d5-872d-e401a17799a9",
"time": 1468337811278,
"sequence": 0,
"actor": "SYSTEM",
"action": "STARTED",
"target": "SESSION"
}
},
{
"event": {
"username": "testuser-c2221558",
"session": "c2221558-8173-45d5-872d-e401a17799a9",
"time": 1468337811302,
"sequence": 1,
"actor": "USER",
"action": "NAVIGATED",
"target": "CHALLENGE",
"context": {
"case": 0,
"challenge": 2,
"initialDrake": {
"alleleString": "a:T,b:T,a:m,b:M,a:W,b:W,a:h,b:h,a:C,b:C,a:B,b:B,a:fl,b:fl,a:Hl,b:hl,a:A1,b:A1,a:D,a:Bog,a:rh",
"sex": 0
},
"targetDrake": {
"alleleString": "a:T,b:T,a:m,b:m,a:W,b:W,a:h,b:h,a:C,b:C,a:B,b:B,a:fl,b:fl,a:Hl,b:Hl,a:A1,b:A1,a:D,a:Bog,a:rh",
"sex": 0
},
"goalMoves": 1,
"trials": 3,
"trial": 0
}
}
},
{
"event": {
"username": "testuser-c2221558",
"session": "c2221558-8173-45d5-872d-e401a17799a9",
"time": 1468337816673,
"sequence": 2,
"actor": "USER",
"action": "CHANGED",
"target": "ALLELE",
"context": {
"index": 0,
"chromosome": "2",
"side": "b",
"previousAllele": "hl",
"newAllele": "Hl",
"incrementMoves": true,
"newAlleles": "a:T,b:T,a:m,b:M,a:W,b:W,a:h,b:h,a:C,b:C,a:B,b:B,a:fl,b:fl,a:Hl,b:Hl,a:A1,b:A1,a:D,a:Bog,a:rh"
}
}
},
{
"event": {
"username": "testuser-c2221558",
"session": "c2221558-8173-45d5-872d-e401a17799a9",
"time": 1468337818134,
"sequence": 3,
"actor": "USER",
"action": "SUBMITTED",
"target": "DRAKE",
"context": {
"correctPhenotype": {
"armor": "Five armor",
"tail": "Long tail",
"forelimbs": "No forelimbs",
"hindlimbs": "Hindlimbs",
"horns": "Horns",
"nose spike": "No nose spike",
"wings": "Wings",
"color": "Charcoal",
"health": "Healthy",
"liveliness": "Alive"
},
"submittedPhenotype": {
"armor": "Five armor",
"tail": "Long tail",
"forelimbs": "No forelimbs",
"hindlimbs": "Hindlimbs",
"horns": "Horns",
"nose spike": "No nose spike",
"wings": "Wings",
"color": "Steel",
"health": "Healthy",
"liveliness": "Alive"
},
"correct": false,
"incrementMoves": true
}
}
},
{
"event": {
"username": "testuser-c2221558",
"session": "c2221558-8173-45d5-872d-e401a17799a9",
"time": 1468337833671,
"sequence": 4,
"actor": "USER",
"action": "CHANGED",
"target": "ALLELE",
"context": {
"index": 0,
"chromosome": "1",
"side": "b",
"previousAllele": "M",
"newAllele": "m",
"incrementMoves": true,
"newAlleles": "a:T,b:T,a:m,b:m,a:W,b:W,a:h,b:h,a:C,b:C,a:B,b:B,a:fl,b:fl,a:Hl,b:Hl,a:A1,b:A1,a:D,a:Bog,a:rh"
}
}
},
{
"event": {
"username": "testuser-c2221558",
"session": "c2221558-8173-45d5-872d-e401a17799a9",
"time": 1468337834971,
"sequence": 5,
"actor": "USER",
"action": "SUBMITTED",
"target": "DRAKE",
"context": {
"correctPhenotype": {
"armor": "Five armor",
"tail": "Long tail",
"forelimbs": "No forelimbs",
"hindlimbs": "Hindlimbs",
"horns": "Horns",
"nose spike": "No nose spike",
"wings": "Wings",
"color": "Charcoal",
"health": "Healthy",
"liveliness": "Alive"
},
"submittedPhenotype": {
"armor": "Five armor",
"tail": "Long tail",
"forelimbs": "No forelimbs",
"hindlimbs": "Hindlimbs",
"horns": "Horns",
"nose spike": "No nose spike",
"wings": "Wings",
"color": "Charcoal",
"health": "Healthy",
"liveliness": "Alive"
},
"correct": true,
"incrementMoves": false
}
}
},
{
"event": {
"username": "testuser-c2221558",
"session": "c2221558-8173-45d5-872d-e401a17799a9",
"time": 1468337836178,
"sequence": 6,
"actor": "USER",
"action": "ADVANCED",
"target": "TRIAL",
"context": {
"initialDrake": {
"alleleString": "a:T,b:T,a:M,b:M,a:W,b:w,a:h,b:h,a:C,b:C,a:B,b:B,a:fl,b:Fl,a:hl,b:hl,a:A1,b:A1,a:D,a:Bog,a:rh",
"sex": 0
},
"targetDrake": {
"alleleString": "a:T,b:T,a:m,b:m,a:w,b:w,a:h,b:h,a:C,b:C,a:B,b:B,a:Fl,b:Fl,a:Hl,b:Hl,a:A1,b:A1,a:D,a:Bog,a:rh",
"sex": 0
},
"goalMoves": 4,
"trials": 3,
"trial": 1
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment