statistics
Creates, updates, deletes, gets or lists a statistics
resource.
Overview
Name | statistics |
Type | Resource |
Id | linode.linode.statistics |
Fields
The following fields are returned by SELECT
queries:
- get_linode_stats_by_year_month
- get_linode_stats
The Linode's statistics for the requested period.
Name | Datatype | Description |
---|---|---|
cpu | array | Percentage of CPU used. |
io | object | Input/Output statistics. |
netv4 | object | IPv4 statistics. |
netv6 | object | IPv6 statistics. |
title | string | The title for this data set. (example: linode.com - my-linode (linode123456) - day (5 min avg)) |
The Linode's stats for the past 24 hours.
Name | Datatype | Description |
---|---|---|
cpu | array | Percentage of CPU used. |
io | object | Input/Output statistics. |
netv4 | object | IPv4 statistics. |
netv6 | object | IPv6 statistics. |
title | string | The title for this data set. (example: linode.com - my-linode (linode123456) - day (5 min avg)) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_linode_stats_by_year_month | select | Returns statistics for a specific month. The year/month values must be either a date in the past, or the current month. If the current month, statistics will be retrieved for the past 30 days. OAuth scopes.<br /> linodes:read_only<br /> Learn more... | ||
get_linode_stats | select | Returns CPU, IO, IPv4, and IPv6 statistics for your Linode for the past 24 hours. OAuth scopes.<br /> linodes:read_only<br /> Learn more... |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|
SELECT
examples
- get_linode_stats_by_year_month
- get_linode_stats
Returns statistics for a specific month. The year/month values must be either a date in the past, or the current month. If the current month, statistics will be retrieved for the past 30 days. OAuth scopes.
<br /> linodes:read_only<br />
Learn more...
SELECT
cpu,
io,
netv4,
netv6,
title
FROM linode.linode.statistics;
Returns CPU, IO, IPv4, and IPv6 statistics for your Linode for the past 24 hours. OAuth scopes.
<br /> linodes:read_only<br />
Learn more...
SELECT
cpu,
io,
netv4,
netv6,
title
FROM linode.linode.statistics;