Skip to main content

monitorings

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

Overview​

Namemonitorings
TypeResource
Idovh.ovh_cloud_connect.monitorings

Fields​

The following fields are returned by SELECT queries:

OVHcloud Connect Monitoring

NameDatatypeDescription
namestringName of the monitoring alert
activatedbooleanWhether alert is activated
descriptionstringDescription of the monitoring alert
typestringType of the monitoring alert

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectservice_nameReturns each alert type available on the service and whether it is active.
createinsertservice_nameActivates exactly the alert types listed; any type left out is turned off.
deletedeleteservice_nameTurns off every alert of the service.

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_namestring (uuid)Service name (wire: serviceName)

SELECT examples​

Returns each alert type available on the service and whether it is active.

SELECT
name,
activated,
description,
type
FROM ovh.ovh_cloud_connect.monitorings
WHERE service_name = '{{ service_name }}' -- required
;

INSERT examples​

Activates exactly the alert types listed; any type left out is turned off.

INSERT INTO ovh.ovh_cloud_connect.monitorings (
subscriptions,
service_name
)
SELECT
'{{ subscriptions }}',
'{{ service_name }}'
;

DELETE examples​

Turns off every alert of the service.

DELETE FROM ovh.ovh_cloud_connect.monitorings
WHERE service_name = '{{ service_name }}' --required
;