Skip to main content

email_volumes

Creates, updates, deletes, gets or lists an email_volumes resource.

Overview​

Nameemail_volumes
TypeResource
Idovh.hosting_web.email_volumes

Fields​

The following fields are returned by SELECT queries:

The volume history type

NameDatatypeDescription
datestring (date-time)The datetime of this volume history point
volumeintegerThe volume history size

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectservice_nameGet email volume history. Returns the number of emails sent by the hosting scripts over time, as a list of dated volume points.

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"}})
service_namestringThe internal name of your hosting (wire: serviceName)

SELECT examples​

Get email volume history. Returns the number of emails sent by the hosting scripts over time, as a list of dated volume points.

SELECT
date,
volume
FROM ovh.hosting_web.email_volumes
WHERE service_name = '{{ service_name }}' -- required
;