注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
发一个刚刚结束的店面题目, 其实地理都有但是贴的不完全, 题目不难但是都是花时间在字符串处理了 真真写起来估计要花不少时间 我是没写完。应该挂了
Your goal is to parse a log file and do some analysis on it. The log file contains all requests to a server within a specific timeframe.
You are given the following method/url definitions:
GET /api/users/{user_id}/count_pending_messages
GET /api/users/{user_id}/get_messages
GET /api/users/{user_id}/get_friends_progress
GET /api/users/{user_id}/get_friends_score
POST /api/users/{user_id}
GET /api/users/{user_id}
Where user_id is the id of the user calling the backend.
The script/program shou=33
Given the above three log lines, we would expect output like:
{
"request_identifier": "GET /api/users/{user_id}/count_pending_messages",
"called": 3,
"response_time_mean": 17.0,
"response_time_median": 17.0,
"dyno_mode": "web.10"
}
|