Methods
(static) get(range, what)
Get historical baseline measurements data.
Returns approximately the last 'range' of values (if available).
To fetch a single metric, you can use the helper methods.
Parameters:
Name | Type | Description |
---|---|---|
range |
string | One of 'latest', day' (default), 'week', 'month', 'year'. |
what |
Array | List of metrics. Valid metrics are 'cpu', 'load', 'tasks', 'mem', 'traffic', 'wifi' and 'rtt'. Undefined defaults to all metrics. |
(static) getCPU(range)
Get historical CPU usage data from the baseline measurements.
Returns approximately the last 'range' of values (if available).
Parameters:
Name | Type | Description |
---|---|---|
range |
string | One of 'latest', 'day' (default), 'week', 'month', 'year'. |
(static) getEnv(range)
Get historical network locations from the baseline
measurements.
Returns approximately the last 'range' of values (if available).
Parameters:
Name | Type | Description |
---|---|---|
range |
string | One of 'latest', 'day' (default), 'week', 'month', 'year'. |
(static) getLoad(range)
Get historical CPU load data from the baseline measurements.
Returns approximately the last 'range' of values (if available).
Parameters:
Name | Type | Description |
---|---|---|
range |
string | One of 'latest', 'day' (default), 'week', 'month', 'year'. |
(static) getMem(range)
Get historical memory usage data from the baseline measurements.
Returns approximately the last 'range' of values (if available).
Parameters:
Name | Type | Description |
---|---|---|
range |
string | One of 'latest', 'day' (default), 'week', 'month', 'year'. |
(static) getRTT(range)
Get historical network delay performance data from
the baseline measurements.
Returns approximately the last 'range' of values (if available).
Parameters:
Name | Type | Description |
---|---|---|
range |
string | One of 'latest', 'day' (default), 'week', 'month', 'year'. |
(static) getTasks(range)
Get historical CPU tasks data from the baseline measurements.
Returns approximately the last 'range' of values (if available).
Parameters:
Name | Type | Description |
---|---|---|
range |
string | One of 'latest', 'day' (default), 'week', 'month', 'year'. |
(static) getTraffic(range)
Get historical network usage data from the baseline
measurements.
Returns approximately the last 'range' of values (if available).
Parameters:
Name | Type | Description |
---|---|---|
range |
string | One of 'latest', 'day' (default), 'week', 'month', 'year'. |
(static) getWifi(range)
Get historical wifi performance data from the baseline
measurements.
Returns approximately the last 'range' of values (if available).
Parameters:
Name | Type | Description |
---|---|---|
range |
string | One of 'latest', 'day' (default), 'week', 'month', 'year'. |