Skip to content

Instantly share code, notes, and snippets.

@arwhyte
Created December 14, 2016 18:59
Show Gist options
  • Save arwhyte/4c4fe8d539fc5946044c790e9c920514 to your computer and use it in GitHub Desktop.
Save arwhyte/4c4fe8d539fc5946044c790e9c920514 to your computer and use it in GitHub Desktop.
Example Caliper MessageEvent.
{
"@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",
"type": "MessageEvent",
"actor": {
"id": "https://example.edu/users/554433",
"type": "Person"
},
"action": "Posted",
"object": {
"id": "https://example.edu/sections/1/forums/2/topics/1/messages/2",
"type": "Message",
"body": "Show me an example of a Caliper MessageEvent.",
"isPartOf": {
"id": "https://example.edu/sections/1/forums/2/topics/1",
"type": "Thread",
"name": "Caliper user",
"isPartOf": {
"id": "https://example.edu/sections/1/forums/2",
"type": "Forum",
"name": "Caliper Forum"
}
},
"dateCreated": "2016-12-15T10:15:00.000Z"
},
"eventTime": "2016-12-15T10:15:00.000Z",
"edApp": {
"id": "https://forums.example.edu/",
"type": "SoftwareApplication",
"version": "v2"
},
"group": {
"id": "https://example.edu/sections/1",
"type": "CourseSection",
"courseNumber": "CPS 435-01",
"academicSession": "Fall 2016"
},
"membership": {
"id": "https://example.edu/sections/1/rosters/1",
"type": "Membership",
"member": {
"id": "https://example.edu/users/554433",
"type": "Person"
},
"organization": {
"id": "https://example.edu/sections/1",
"type": "CourseSection"
},
"roles": [ "Learner" ],
"status": "Active",
"dateCreated": "2016-08-01T06:00:00.000Z"
},
"session": {
"id": "https://example.edu/sessions/1f6442a482de72ea6ad134943812bff564a76259",
"type": "Session",
"startedAtTime": "2016-11-15T10:00:00.000Z"
},
"uuid": "0d015a85-abf5-49ee-abb1-46dbd57fe64e"
}
@arwhyte
Copy link
Author

arwhyte commented Dec 14, 2016

The following optional Event properties are not included in this example: target, generated, referrer, federatedSession and extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment