Created
January 31, 2018 19:19
-
-
Save jwalton922/09a0587865f12d8c3904c657739afd1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QUERY | |
{ | |
engagementQueryV3( | |
courseSectionId: ["cs1"], | |
reportingContextId:["book1"], | |
learningResourceId: ["book1"], | |
filter: { | |
timeWindow: { | |
gt: "2018-01-30" | |
lte: "2018-01-21" | |
} | |
}, | |
timeBin: HOUR | |
) { | |
timeBin | |
data { | |
timeSpentTotal | |
learningResource {learningResourceId} | |
student {studentID} | |
} | |
} | |
} | |
RESPONSE | |
{ | |
"engagementQueryV3": [ | |
{ | |
"timeBin": "2018-01-31T08:00:00", | |
"data" : [ | |
{ | |
"timeSpentTotal" : 300 | |
"learningResource" : {"learningResourceId": "book1"}, | |
"student" : {"studentId": "student1"} | |
}, | |
{ | |
"timeSpentTotal" : 450 | |
"learningResource" : {"learningResourceId": "book1"}, | |
"student" : {"studentId": "student2"} | |
} | |
] | |
}, | |
"timeBin": "2018-01-31T09:00:00", | |
"data" : [ | |
{ | |
"timeSpentTotal" : 450 | |
"learningResource" : {"learningResourceId": "book1"}, | |
"student" : {"studentId": "student2"} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment