There is a single API call for retrieving RUM data samples.
The API key is a unique key that identifies each customer. You can obtain it by clicking the Settings tab while logged on to Uptime Cloud Monitor UI. It is presented at the bottom of the screen under “User API Access”.
Parameters are specified in JSON format as follows:
start_time and end_time should be specified as an integer UNIX timestamp (seconds since epoch). When omitted, the last 15 minutes will be queried. When multiple queries are specified, all will share the same timeframe.
idvs allows specifying an array of instrumentation keys. At least one instrumentation key must be specified. To obtain Web App’s instrumentation key:
|Attention: You must concatenate “||” character at the end of every instrumentation key.|
The key is the type of results that will be returned. Multiple keys can be specified. At least one is mandatory. Result type (key) should one of:
Note: Twelve counters are returned per interval. When charting an overtime graph, averages are sufficient.
To calculate average response time of the entire timeframe, sum the total response time of all intervals and then divide by the sum of requests counts of all intervals.
To calculate average response time, divide its total by its count.
Note: Each interval reports its own top requests. Each request might be reported in multiple intervals on the same timeframe. To calculate average Apdex score on the entire timeframe for a specific request, sum all its totals and then divide by sum of all its counts.