Skip to main content

region_loadbalancing_loadbalancer_stats

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

Overview​

Nameregion_loadbalancing_loadbalancer_stats
TypeResource
Idovh.cloud_network.region_loadbalancing_loadbalancer_stats

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
active_connectionsintegerNumber of currently active connections (wire: activeConnections)
bytes_inintegerTotal bytes received (wire: bytesIn)
bytes_outintegerTotal bytes sent (wire: bytesOut)
request_errorsintegerTotal requests that were unable to be fulfilled (wire: requestErrors)
total_connectionsintegerTotal connections handled (wire: totalConnections)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectload_balancer_id, region_name, service_nameGet loadbalancer statistics

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"}})
load_balancer_idstring (uuid)Load balancer ID (wire: loadBalancerId)
region_namestringRegion name (wire: regionName)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.

SELECT examples​

Get loadbalancer statistics

SELECT
active_connections,
bytes_in,
bytes_out,
request_errors,
total_connections
FROM ovh.cloud_network.region_loadbalancing_loadbalancer_stats
WHERE load_balancer_id = '{{ load_balancer_id }}' -- required
AND region_name = '{{ region_name }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;