Alerts
All operations require authentication.
List stream alertsProduction
Returns the stream alerts of the Logs Data Platform service.
Path parameters
Service name
Stream ID
Response
Example uses serviceName = string, streamId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ dbaas/ logs/ {serviceName}/ output/ graylog/ stream/ {streamId}/ alert \
-H "authorization: Bearer $OVH_TOKEN"[ "00000000-0000-0000-0000-000000000000"]
Get a stream alertProduction
Returns the stream alert.
Path parameters
Alert ID
Service name
Stream ID
Response
Stream alert condition ID
Backlog size
Alert condition type
FIELD_CONTENT_VALUEFIELD_VALUEMESSAGE_COUNTConstraint type
MAXMEANMINSTDLABEUSUMField name
Grace period in minutes
Query filter
Repeat notifications
Threshold
Threshold condition
EQGTGTELTLTETime lapse in minutes
Condition label
Field value
Example uses alertId = 00000000-0000-0000-0000-000000000000, serviceName = string, streamId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ dbaas/ logs/ {serviceName}/ output/ graylog/ stream/ {streamId}/ alert/ {alertId} \
-H "authorization: Bearer $OVH_TOKEN"{ "alertId": "00000000-0000-0000-0000-000000000000", "backlog": 0, "conditionType": "FIELD_CONTENT_VALUE", "constraintType": "MAX", "field": "string", "grace": 0, "queryFilter": "string", "repeatNotificationsEnabled": true, "threshold": 0, "thresholdType": "EQ", "time": 0, "title": "string", "value": "string"}
Create a stream alertProduction
Creates a stream alert on the Logs Data Platform service.
Path parameters
Service name
Stream ID
Request body (required)
Backlog
Condition type
FIELD_CONTENT_VALUEFIELD_VALUEMESSAGE_COUNTConstraint type
MAXMEANMINSTDLABEUSUMField
Grace period
Query filter
Repeat notifications enabled
Threshold
Threshold type
EQGTGTELTLTETime
Title
Value
Response
Alias used
Operation creation
Dashboard used
Encryption key used
Index used
Input used
Operation ID
OpenSearch Dashboards used
Role used
Service name
Operation status
FAILUREPENDINGRECEIVEDRETRYREVOKEDRUNNINGSTARTEDSUCCESSStream used
Subscription used
Metrics tenant used
Token used
Operation last update
Example uses serviceName = string, streamId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ dbaas/ logs/ {serviceName}/ output/ graylog/ stream/ {streamId}/ alert \
-H "authorization: Bearer $OVH_TOKEN"{ "aliasId": "00000000-0000-0000-0000-000000000000", "createdAt": "2024-01-01T12:00:00Z", "dashboardId": "00000000-0000-0000-0000-000000000000", "encryptionKeyId": "00000000-0000-0000-0000-000000000000", "indexId": "00000000-0000-0000-0000-000000000000", "inputId": "00000000-0000-0000-0000-000000000000", "operationId": "00000000-0000-0000-0000-000000000000", "osdId": "00000000-0000-0000-0000-000000000000", "roleId": "00000000-0000-0000-0000-000000000000", "serviceName": "string", "state": "FAILURE", "streamId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "tenantId": "00000000-0000-0000-0000-000000000000", "tokenId": "00000000-0000-0000-0000-000000000000", "updatedAt": "2024-01-01T12:00:00Z"}
Delete a stream alertProduction
Deletes the stream alert.
Path parameters
Alert ID
Service name
Stream ID
Response
Alias used
Operation creation
Dashboard used
Encryption key used
Index used
Input used
Operation ID
OpenSearch Dashboards used
Role used
Service name
Operation status
FAILUREPENDINGRECEIVEDRETRYREVOKEDRUNNINGSTARTEDSUCCESSStream used
Subscription used
Metrics tenant used
Token used
Operation last update
Example uses alertId = 00000000-0000-0000-0000-000000000000, serviceName = string, streamId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ dbaas/ logs/ {serviceName}/ output/ graylog/ stream/ {streamId}/ alert/ {alertId} \
-H "authorization: Bearer $OVH_TOKEN"{ "aliasId": "00000000-0000-0000-0000-000000000000", "createdAt": "2024-01-01T12:00:00Z", "dashboardId": "00000000-0000-0000-0000-000000000000", "encryptionKeyId": "00000000-0000-0000-0000-000000000000", "indexId": "00000000-0000-0000-0000-000000000000", "inputId": "00000000-0000-0000-0000-000000000000", "operationId": "00000000-0000-0000-0000-000000000000", "osdId": "00000000-0000-0000-0000-000000000000", "roleId": "00000000-0000-0000-0000-000000000000", "serviceName": "string", "state": "FAILURE", "streamId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "tenantId": "00000000-0000-0000-0000-000000000000", "tokenId": "00000000-0000-0000-0000-000000000000", "updatedAt": "2024-01-01T12:00:00Z"}
Update a stream alertProduction
Updates the stream alert.
Path parameters
Alert ID
Service name
Stream ID
Request body (required)
Backlog
Condition type
FIELD_CONTENT_VALUEFIELD_VALUEMESSAGE_COUNTConstraint type
MAXMEANMINSTDLABEUSUMField
Grace period
Query filter
Repeat notifications enabled
Threshold
Threshold type
EQGTGTELTLTETime
Title
Value
Response
Alias used
Operation creation
Dashboard used
Encryption key used
Index used
Input used
Operation ID
OpenSearch Dashboards used
Role used
Service name
Operation status
FAILUREPENDINGRECEIVEDRETRYREVOKEDRUNNINGSTARTEDSUCCESSStream used
Subscription used
Metrics tenant used
Token used
Operation last update
Example uses alertId = 00000000-0000-0000-0000-000000000000, serviceName = string, streamId = 00000000-0000-0000-0000-000000000000
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ dbaas/ logs/ {serviceName}/ output/ graylog/ stream/ {streamId}/ alert/ {alertId} \
-H "authorization: Bearer $OVH_TOKEN"{ "aliasId": "00000000-0000-0000-0000-000000000000", "createdAt": "2024-01-01T12:00:00Z", "dashboardId": "00000000-0000-0000-0000-000000000000", "encryptionKeyId": "00000000-0000-0000-0000-000000000000", "indexId": "00000000-0000-0000-0000-000000000000", "inputId": "00000000-0000-0000-0000-000000000000", "operationId": "00000000-0000-0000-0000-000000000000", "osdId": "00000000-0000-0000-0000-000000000000", "roleId": "00000000-0000-0000-0000-000000000000", "serviceName": "string", "state": "FAILURE", "streamId": "00000000-0000-0000-0000-000000000000", "subscriptionId": "00000000-0000-0000-0000-000000000000", "tenantId": "00000000-0000-0000-0000-000000000000", "tokenId": "00000000-0000-0000-0000-000000000000", "updatedAt": "2024-01-01T12:00:00Z"}