{"action":"created","issue":{"url":"https://api.github.com/repos/justcoding121/Titanium-Web-Proxy/issues/489","repository_url":"https://api.github.com/repos/justcoding121/Titanium-Web-Proxy","labels_url":"https://api.github.com/repos/justcoding121/Titanium-Web-Proxy/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/justcoding121/Titanium-Web-Proxy/issues/489/comments","events_url":"https://api.github.com/repos/justcoding121/Titanium-Web-Proxy/issues/489/events","html_url":"https://github.com/justcoding121/Titanium-Web-Proxy/issues/489","id":357305576,"node_id":"MDU6SXNzdWUzNTczMDU1NzY=","number":489,"title":"Timers for Response of a Session ","user":{"login":"darrincherry","id":5721181,"node_id":"MDQ6VXNlcjU3MjExODE=","avatar_url":"https://avatars1.githubusercontent.com/u/5721181?v=4","gravatar_id":"","url":"https://api.github.com/users/darrincherry","html_url":"https://github.com/darrincherry","followers_url":"https://api.github.com/users/darrincherry/followers","following_url":"https://api.github.com/users/darrincherry/following{/other_user}","gists_url":"https://api.github.com/users/darrincherry/gists{/gist_id}","starred_url":"https://api.github.com/users/darrincherry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrincherry/subscriptions","organizations_url":"https://api.github.com/users/darrincherry/orgs","repos_url":"https://api.github.com/users/darrincherry/repos","events_url":"https://api.github.com/users/darrincherry/events{/privacy}","received_events_url":"https://api.github.com/users/darrincherry/received_events","type":"User","site_admin":false},"labels":[{"id":163191850,"node_id":"MDU6TGFiZWwxNjMxOTE4NTA=","url":"https://api.github.com/repos/justcoding121/Titanium-Web-Proxy/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-05T16:20:36Z","updated_at":"2018-09-18T16:32:32Z","closed_at":null,"author_association":"NONE","body":"Can Titanium add Timers data into the SessionEventArgs?\r\n\r\nExample of how to pull that information out for a test case.\r\n`Proxy.AfterSessionComplete += delegate (SessionEventArgs targetSession)\r\n                {\r\n\r\n                    var totalRequestTime = targetSession.Timers.ClientDoneResponse -\r\n                                           targetSession.Timers.ProxyBeginRequest;\r\n\r\n                    var clientRenderTime = targetSession.Timers.ClientDoneResponse -\r\n                                           targetSession.Timers.ServerDoneResponse;\r\n\r\n                    var serverProcess = targetSession.Timers.ServerBeginResponse -\r\n                                        targetSession.Timers.ServerGotRequest;\r\n\r\n                    var passThruNetwork = targetSession.Timers.ServerGotRequest -\r\n                                          targetSession.Timers.ClientDoneRequest -\r\n                                          TimeSpan.FromMilliseconds(\r\n                                              targetSession.Timers.DNSTime + targetSession.Timers.TCPConnectTime);\r\n\r\n\r\n                    Log.Info(\r\n                        \"Proxy: Requested resource from URL {0} Response Code: {1} Total Time: {2} Server Milliseconds: {3} Network Milliseconds: {4}\",\r\n                        targetSession.fullUrl,\r\n                        targetSession.responseCode,\r\n                        totalRequestTime.TotalMilliseconds,\r\n                        Math.Abs(serverProcess.TotalMilliseconds),\r\n                        Math.Abs(passThruNetwork.TotalMilliseconds));\r\n                };`\r\n"},"comment":{"url":"https://api.github.com/repos/justcoding121/Titanium-Web-Proxy/issues/comments/422461742","html_url":"https://github.com/justcoding121/Titanium-Web-Proxy/issues/489#issuecomment-422461742","issue_url":"https://api.github.com/repos/justcoding121/Titanium-Web-Proxy/issues/489","id":422461742,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjQ2MTc0Mg==","user":{"login":"darrincherry","id":5721181,"node_id":"MDQ6VXNlcjU3MjExODE=","avatar_url":"https://avatars1.githubusercontent.com/u/5721181?v=4","gravatar_id":"","url":"https://api.github.com/users/darrincherry","html_url":"https://github.com/darrincherry","followers_url":"https://api.github.com/users/darrincherry/followers","following_url":"https://api.github.com/users/darrincherry/following{/other_user}","gists_url":"https://api.github.com/users/darrincherry/gists{/gist_id}","starred_url":"https://api.github.com/users/darrincherry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrincherry/subscriptions","organizations_url":"https://api.github.com/users/darrincherry/orgs","repos_url":"https://api.github.com/users/darrincherry/repos","events_url":"https://api.github.com/users/darrincherry/events{/privacy}","received_events_url":"https://api.github.com/users/darrincherry/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T16:32:32Z","updated_at":"2018-09-18T16:32:32Z","author_association":"NONE","body":"Do you happen to have any sample code not on Git, that can show how to get to Timeline?\r\nIt says on the docs here it is in the SessionEventArgBase, but doesn't show up the SessionEventArgs or WebSession ?     I think there might just be a bug perhaps in getting access to that data. "}}
{"actor":{"display_login":"darrincherry"}}