How to get Custom Metrics using WPT API
|
02-17-2015, 05:32 PM
Post: #1
|
|||
|
|||
How to get Custom Metrics using WPT API
I want to programatically get the value for RUM First Paint or other customer metrics you display in detail via an API.
For example if you look at http://www.webpagetest.org/result/150217...1/details/ and say I want the values for primaryStart and primaryEnd, whats the best way? |
|||
02-17-2015, 05:54 PM
Post: #2
|
|||
|
|||
RE: How to get Custom Metrics using WPT API
Custom metrics are included in the API response. For example: http://www.webpagetest.org/result/150217_5E_6KZ/?f=json
You could get primaryStart one of two ways: data.runs[1].firstView['userTime.primaryStart'] or data.runs[1].firstView.userTimes.primaryStart |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)