Skip to main content

network_transfer_statistics

Creates, updates, deletes, gets or lists a network_transfer_statistics resource.

Overview

Namenetwork_transfer_statistics
TypeResource
Idlinode.linode.network_transfer_statistics

Fields

The following fields are returned by SELECT queries:

A collection of the specified Linode's network transfer statistics for the requested month.

NameDatatypeDescription
bytes_inintegerRead-only The amount of inbound public network traffic received by this Linode, in bytes, for a specific year/month.
bytes_outintegerRead-only The amount of outbound public network traffic sent by this Linode, in bytes, for a specific year/month.
bytes_totalintegerRead-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:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlinodeId, year, monthReturns 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.

NameDatatypeDescription
linodeIdstringID of the Linode to look up.
monthstringNumeric value representing the month to look up.
yearstringNumeric value representing the year to look up.

SELECT examples

Returns a Linode's network transfer pool statistics for a specific month. If the &#123;year&#125; and &#123;month&#125; 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
;