network_transfer_statistics
Creates, updates, deletes, gets or lists a network_transfer_statistics resource.
Overview
| Name | network_transfer_statistics |
| Type | Resource |
| Id | linode.linode.network_transfer_statistics |
Fields
The following fields are returned by SELECT queries:
- get
A collection of the specified Linode's network transfer statistics for the requested month.
| Name | Datatype | Description |
|---|---|---|
bytes_in | integer | Read-only The amount of inbound public network traffic received by this Linode, in bytes, for a specific year/month. |
bytes_out | integer | Read-only The amount of outbound public network traffic sent by this Linode, in bytes, for a specific year/month. |
bytes_total | integer | Read-only The total amount of public network traffic sent and received by this Linode, in bytes, for a specific year/month. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | linodeId, year, month | Returns a Linode's network transfer pool statistics for a specific month. If the {year} and {month} are set to the current month, the API returns statistics for the past 30 days. 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 |
|---|---|---|
linodeId | string | ID of the Linode to look up. |
month | string | Numeric value representing the month to look up. |
year | string | Numeric value representing the year to look up. |
SELECT examples
- get
Returns a Linode's network transfer pool statistics for a specific month. If the {year} and {month} are set to the current month, the API returns statistics for the past 30 days. OAuth scopes.
<br /> linodes:read_only<br />
Learn more...
SELECT
bytes_in,
bytes_out,
bytes_total
FROM linode.linode.network_transfer_statistics
WHERE linodeId = '{{ linodeId }}' -- required
AND year = '{{ year }}' -- required
AND month = '{{ month }}' -- required
;