Skip to main content

network_interface_controller_mrtgs

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

Overview​

Namenetwork_interface_controller_mrtgs
TypeResource
Idovh.dedicated_server.network_interface_controller_mrtgs

Fields​

The following fields are returned by SELECT queries:

A timestamp associated to a value

NameDatatypeDescription
timestampinteger
valueobjectA numeric value tagged with its unit

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectmac, period, service_name, typeGet interface traffic statistics. Returns timestamped values for one network interface controller, for the requested type and period. Types cover traffic, packets and errors, for download and upload. (Beta version)

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
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
macstring (mac-address)NetworkInterfaceController mac
periodstringmrtg period
service_namestringThe internal name of your dedicated server (wire: serviceName)
typestringmrtg type

SELECT examples​

Get interface traffic statistics. Returns timestamped values for one network interface controller, for the requested type and period. Types cover traffic, packets and errors, for download and upload. (Beta version)

SELECT
timestamp,
value
FROM ovh.dedicated_server.network_interface_controller_mrtgs
WHERE mac = '{{ mac }}' -- required
AND period = '{{ period }}' -- required
AND service_name = '{{ service_name }}' -- required
AND type = '{{ type }}' -- required
;