Current time: 09-22-2019, 08:55 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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?
Find all posts by this user
Quote this message in a reply
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
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)