梁海波

Updated app日志查询 (markdown)

@@ -8,11 +8,11 @@ @@ -8,11 +8,11 @@
8 8
9 ` 查询结果是分页查询,默认是查询20条每页,最大支持2000条每页,查询超时时间是5秒,5秒钟mongo没有返回结果则超时 ` 9 ` 查询结果是分页查询,默认是查询20条每页,最大支持2000条每页,查询超时时间是5秒,5秒钟mongo没有返回结果则超时 `
10 10
11 - 请求地址 11 + - 请求地址 (GET)
12 12
13 `http://120.27.244.103:9301/api/log/query/condition` 13 `http://120.27.244.103:9301/api/log/query/condition`
14 14
15 - 请求参数 15 + - 请求参数
16 16
17 | 参数 | 类型 | 是否必须 | 备注 | 17 | 参数 | 类型 | 是否必须 | 备注 |
18 | ------- | ---- | ------- | ------ | 18 | ------- | ---- | ------- | ------ |
@@ -24,3 +24,78 @@ @@ -24,3 +24,78 @@
24 | page | int整型 | × | 页码,从0开始 | 24 | page | int整型 | × | 页码,从0开始 |
25 25
26 26
  27 +
  28 + - 返回结果
  29 +
  30 + ```json
  31 +
  32 + {
  33 + content: [
  34 + {
  35 + id: "ADE2448AAAB638AC-1-156694619D0-200003595",
  36 + appKey: "com.boxfishedu.teacher",
  37 + userId: "1586759",
  38 + deviceId: "14027cf72204aaa2f924c00f19456b4cbc5f3011",
  39 + eventId: "1fac9fa9-252e-4922-bd29-75db79ca8fcb",
  40 + type: "track",
  41 + properties: {
  42 + room_id: "312913222",
  43 + sys_app_release: "7.0.0",
  44 + sys_screen_height: 768,
  45 + video_on: true,
  46 + sys_ip: "114.247.25.26",
  47 + sys_os: "iPhone OS",
  48 + server_receive_time: 1470645019768,
  49 + sys_carrier: "UNKNOWN",
  50 + attended_room_students: [
  51 + "david"
  52 + ],
  53 + event_counter: 54,
  54 + service_response_time: 5374,
  55 + course_type: "",
  56 + sys_lib_version: "1.0.0",
  57 + service_id: "1586759",
  58 + sys_manufacturer: "Apple",
  59 + sys_ios_ifa: "BA19ABAD-DEB3-4604-A5EF-AFD19BB9C4C0",
  60 + sys_network: "WIFI",
  61 + video_loss_rate: "[LossRate=0.03%, JitRate=61, BR_RECV=50, Pkt=178, Delay=0, Qua(21,10), FreeCnt=2, QuaValid=0] ",
  62 + last_modified: 1465808647074,
  63 + sys_model: "iPad",
  64 + course_id: "L3NoYXJlL3N2bi9Ib3cgdG8gYmVjb21lIHRoZSBjb29sZXN0IGd1eSBhdCBzY2hvb2w_LzAwMS5Ib3cgdG8gYmVjb21lIHRoZSBjb29sZXN0IGd1eSBhdCBzY2hvb2w_Lnhsc3g",
  65 + sys_app_version: "824",
  66 + course_name: "How to become the coolest guy at school?",
  67 + session_id: "6b43e0db-6344-41c8-95ae-d8375decb98f",
  68 + sys_screen_width: 1024,
  69 + user_login_type: "teacher",
  70 + internet_ping: "1129.917860031128",
  71 + difficulty: "",
  72 + room_students: [
  73 + "david"
  74 + ],
  75 + sys_os_version: "9.2",
  76 + sys_lib: "iOS",
  77 + room_teacher: "1586759"
  78 + },
  79 + event: "online_course_heartbeat",
  80 + appTime: 1470645014751,
  81 + sysTime: 1470645017040
  82 + }
  83 + ],
  84 + last: false,
  85 + totalPages: 9,
  86 + totalElements: 9,
  87 + numberOfElements: 1,
  88 + sort: [
  89 + {
  90 + direction: "DESC",
  91 + property: "msg_receive_time",
  92 + ignoreCase: false,
  93 + nullHandling: "NATIVE",
  94 + ascending: false
  95 + }
  96 + ],
  97 + first: true,
  98 + size: 1,
  99 + number: 0
  100 + }
  101 + ```