Skip to content

Commit 9fb4601

Browse files
authored
issue_1551 added mivideo/kaltura video resources access query into en… (#1552)
1 parent 28ca15f commit 9fb4601

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

config/env_sample.hjson

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,31 @@
289289
"postfix": ""
290290
}
291291
},
292+
# replace "mivideo" with Kaltura brand name inside your institution
293+
"mivideo": {
294+
"query":
295+
'''
296+
SELECT 'mivideo' AS resource_type,
297+
replace(object.id, 'https://aakaf.mivideo.it.umich.edu/caliper/info/media/' , '') AS resource_id,
298+
cast(-1 as INT64) AS user_id,
299+
replace(
300+
replace(actor.id, 'https://aakaf.mivideo.it.umich.edu/caliper/info/user/' , ''), '+', '@'
301+
) AS user_login_name,
302+
@canvas_data_id_increment + CAST(JSON_EXTRACT_SCALAR(object.extensions, '$.kaf:course_id') AS INT64) AS course_id,
303+
object.name AS name,
304+
datetime(EVENT_TIME) AS access_time
305+
FROM event_store.expanded
306+
WHERE
307+
ed_app.id = 'https://aakaf.mivideo.it.umich.edu/caliper/info/app/KafEdApp'
308+
AND TYPE = 'MediaEvent'
309+
AND action = 'Started'
310+
AND JSON_EXTRACT_SCALAR(object.extensions, '$.kaf:course_id') IN UNNEST(@course_ids_short)
311+
''',
312+
"app_display_name": "MiVideo",
313+
"/* mention if the caliper event data is providing long or short canvas id and change the query to store long id as in this case": "*/",
314+
"canvas_course_id_format": "SHORT",
315+
"urls": {"prefix": "https://aakaf.mivideo.it.umich.edu/caliper/info/media/" , "postfix": ""}
316+
}
292317
},
293318
# Disable/Enable courses_enabled api
294319
"COURSES_ENABLED": false,

0 commit comments

Comments
 (0)