Skip to main content

statistics

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

Overview

Namestatistics
TypeResource
Idlinode.managed.statistics

Fields

The following fields are returned by SELECT queries:

A list of Managed Stats from the last 24 hours.

NameDatatypeDescription
0string (example: Graphs are not yet available.)
1string (example: Graphs are not yet available.)
2string (example: Graphs are not yet available.)
cpuarrayCPU usage stats from the last 24 hours.
diskarrayDisk usage stats from the last 24 hours.
net_inarrayInbound network traffic stats from the last 24 hours.
net_outarrayOutbound network traffic stats from the last 24 hours.
swaparraySwap usage stats from the last 24 hours.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_managed_statsselectReturns a list of Managed Stats on your Account in the form of x and y data points. You can use these data points to plot your own graph visualizations. These stats reflect the last 24 hours of combined usage across all managed Linodes on your account giving you a high-level snapshot of data for the following:

- cpu
- disk
- swap
- network in
- network out

This operation can only be accessed by the unrestricted users of an account.

Learn more...

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

SELECT examples

Returns a list of Managed Stats on your Account in the form of x and y data points. You can use these data points to plot your own graph visualizations. These stats reflect the last 24 hours of combined usage across all managed Linodes on your account giving you a high-level snapshot of data for the following:

- cpu
- disk
- swap
- network in
- network out

This operation can only be accessed by the unrestricted users of an account.

Learn more...

Learn more...

SELECT
0,
1,
2,
cpu,
disk,
net_in,
net_out,
swap
FROM linode.managed.statistics;