markdown m800技术调查和知识转移

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown m800技术调查和知识转移相关的知识,希望对你有一定的参考价值。

## Day1 

### Topics

1. testbed -> share an end to end inquiry flow in Liveconnect web client and agent dashboard
2. testbed -> share some data structure in DB
3. testbed/prod -> share how to check logs in testbed/prod
4. how to use gerrit

### Assignments
1. setup agent password
2. login agent
3. use web to create inquiry from visitor to agent
4. check log on kibana
5. git clone MIMS, MUMS, MNS, liveconnect-inquiry-management, liveconnect-queue, liveconnect-user-location, liveconnect-hunting-server

### Web
agent dashboard: https://mconnect-tb.m800.com/login  
web client: https://mcwebclient-tb.m800.com/about-us.html

**tips**  
application: debug改成* 看所有log  
agent和client開在同一個browser似乎會有些問題, 其中一個開無痕就正常

### Agent Dashboard
testbed admin : qaadmin2@m800.com / Q@@dmin2-m800.com

admin page: 控制tag能否im/voice
tags: based on client's language(client browser will send language info), search match tags


## DBs

### mongodb

store live connect data, including visitor, inquiry and agent data.

#### Dev
| Entrypoint | Auth db| username | password |
| --- | -- | -- | -- |
| 192.168.118.173:27017 | admin | maaii | @maaii |

#### Testbed
| Entrypoint | Auth db| username | password |
| --- | -- | -- | -- |
| 192.168.119.229:27017 | maaii-widget | widget-readonly | widget-readonly |
| 192.168.119.229:27017 | maaii | readonly | m800read |

##### DB: maaii-widget

Store liveconnect related data, such as agent(User), client(Visitor), inquirys.

1. accsess number: for offline call
1. inquiry: identifier
1. widget: 顧客的scope切分,靠carrier match, agent(user), visitor(client)

##### maaii

MIMS/MUMS/... use this db to store data.

1. User
    - home-region:user/agent第一次create的region
    - name: user 名字
2. UserAtCarrier: 連接user和carrier的訊息
3. Carrier: 
4. Application: 每賣一家公司就會創一個object, 包含了key/license
5. Device: 該user有哪些device
6. Notification: 做push

### cassandra

store IM history messages

## Inquiry Flow

Details:
https://issuetracking.maaii.com:9443/display/RnD/%5BDesign%5D+%5BliveConnect%5D+-+Hunting+logic+flow

### Create Inquiry

XMPP foramt

```
<body rid="773899690" xmlns="http://jabber.org/protocol/httpbind" sid="bb8859a4-083a-4281-bd2f-4591b8278857">
  <iq id="5ad6e9f300000200@offshore.maaiii-api.org:1524034077127:0.12209130005120006:m800web-iq" type="set" from="5ad6e9f300000200@offshore.maaiii-api.org" to="widget.offshore.maaiii-api.org" xmlns="jabber:client">
    <request xmlns="urn:m800:xmpp:generic" category="create-inquiry" target="22f4b912-d083-45f6-8518-30b5632d994a" lang="en" channel="onnet">
      <![CDATA[{"metadata":[{"k":"tagId","v":"22f4b912-d083-45f6-8518-30b5632d994a"},{"k":"lang","v":"en"},{"k":"customerId","v":"A123456"},{"k":"isPremium","v":false},{"k":"balance","v":1000},{"k":"crmTagSecret","v":"afs1241safa","h":true}]}]]>
    </request>
  </iq>
</body>
```

inqueryId: `5ad6e9f300000200`  
category: `create-inquiry`

## Kibana 

No unique request id, need to search by iqueryId in a short time range
https://192.168.0.12/app/kibana

以上是关于markdown m800技术调查和知识转移的主要内容,如果未能解决你的问题,请参考以下文章

markdown linux中的内存使用和交换调查

markdown AWS课金调查

markdown 调查した资料

markdown FCC:调查表

markdown TRM后端转移到Mac

markdown TRM前端转移到Mac