Confirma la recepción de una alerta existente. Esta alerta se aplica a cualquier componente de un proyecto. Reconocer una alerta previene notificaciones sucesivas. Recibirás una alerta cuando un componente supervisado alcance o supere un valor que estableciste, hasta que reconozcas la alerta. Para utilizar este recurso, la Cuenta de servicio solicitante o la clave API deben tener el rol de Proyecto Alertas administrador, Proyecto Supervisión Admin, Organización Owner, o Proyecto Owner.
Este recurso sigue en proceso de revisión y puede cambiar.
Parámetros de path
-
string única de 24dígitos hexadecimales que identifica tu proyecto. Usa el endpoint /groups para recuperar todos los proyectos a los que el usuario autenticado tiene acceso.
NOTA: Grupos y proyectos son términos sinónimos. El id de tu grupo es el mismo que el id de tu proyecto. Para los grupos ya existentes, el id de su grupo/proyecto sigue siendo el mismo. El recurso y los endpoints correspondientes utilizan el término grupos.
El formato debe coincidir con el siguiente patrón:
^([a-f0-9]{24})$. -
Cadena de dígitos hexadecimales 24única que identifica la alerta.
El formato debe coincidir con el siguiente patrón:
^([a-f0-9]{24})$.
Parámetros de query
-
Bandera que indica si la aplicación envuelve la respuesta en un objeto JSON
envelope. Algunos clientes de la API no pueden acceder a los encabezados de respuesta HTTP ni al código de estado. Para remediar esto, establece envelope=true en la query. Los endpoints que devuelven una lista de resultados utilizan el objeto de resultados como un sobre. La aplicación agrega el parámetro de estado al cuerpo de la respuesta.El valor por defecto es
false. -
Bandera que indica si el cuerpo de la respuesta debe estar en el formato prettyprint.
El valor por defecto es
false.Impresión bonita
Cuerpo
Requerido
Reconoce o no reconoce una alerta.
-
Fecha y hora hasta la cual se ha reconocido esta alerta. Este parámetro expresa su valor en el formato de marca de tiempo ISO 8601 en UTC. El recurso devuelve este parámetro si un usuario de MongoDB reconoció previamente esta alerta.
Para reconocer permanentemente esta alerta, configure el valor del parámetro a 100 años en el futuro.
Para no reconocer una alerta que ya se había reconocido previamente, no establecer este valor de parámetro.
ISO 8601 -
Comentario que un usuario de MongoDB Cloud envió al reconocer la alerta.
La longitud máxima es
200.
curl \
--request PATCH 'https://cloud.mongodb.com/api/atlas/v1.0/groups/32b6e34b3d91647abb20e7b8/alerts/{alertId}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"acknowledgedUntil":"2026-05-04T09:42:00Z","acknowledgementComment":"Expiration on 3/19. Silencing for 7days."}'
{
"acknowledgedUntil": "2026-05-04T09:42:00Z",
"acknowledgementComment": "Expiration on 3/19. Silencing for 7days."
}
{
"acknowledgedUntil": "2026-05-04T09:42:00Z",
"acknowledgementComment": "Expiration on 3/19. Silencing for 7days.",
"acknowledgingUsername": "hello@example.com",
"alertConfigId": "32b6e34b3d91647abb20e7b8",
"created": "2026-05-04T09:42:00Z",
"eventTypeName": "DEPLOYMENT_FAILURE",
"groupId": "32b6e34b3d91647abb20e7b8",
"id": "32b6e34b3d91647abb20e7b8",
"lastNotified": "2026-05-04T09:42:00Z",
"links": [
{
"href": "https://cloud.mongodb.com/api/atlas",
"rel": "self"
}
],
"orgId": "32b6e34b3d91647abb20e7b8",
"resolved": "2026-05-04T09:42:00Z",
"status": "OPEN",
"updated": "2026-05-04T09:42:00Z"
}
{
"acknowledgedUntil": "2026-05-04T09:42:00Z",
"acknowledgementComment": "Expiration on 3/19. Silencing for 7days.",
"acknowledgingUsername": "hello@example.com",
"alertConfigId": "32b6e34b3d91647abb20e7b8",
"clusterName": "cluster1",
"created": "2026-05-04T09:42:00Z",
"eventTypeName": "CLUSTER_MONGOS_IS_MISSING",
"groupId": "32b6e34b3d91647abb20e7b8",
"id": "32b6e34b3d91647abb20e7b8",
"lastNotified": "2026-05-04T09:42:00Z",
"links": [
{
"href": "https://cloud.mongodb.com/api/atlas",
"rel": "self"
}
],
"orgId": "32b6e34b3d91647abb20e7b8",
"resolved": "2026-05-04T09:42:00Z",
"status": "OPEN",
"updated": "2026-05-04T09:42:00Z"
}
{
"acknowledgedUntil": "2026-05-04T09:42:00Z",
"acknowledgementComment": "Expiration on 3/19. Silencing for 7days.",
"acknowledgingUsername": "hello@example.com",
"alertConfigId": "32b6e34b3d91647abb20e7b8",
"clusterName": "cluster1",
"created": "2026-05-04T09:42:00Z",
"eventTypeName": "HOST_DOWN",
"groupId": "32b6e34b3d91647abb20e7b8",
"hostnameAndPort": "cloud-test.mongodb.com:27017",
"id": "32b6e34b3d91647abb20e7b8",
"lastNotified": "2026-05-04T09:42:00Z",
"links": [
{
"href": "https://cloud.mongodb.com/api/atlas",
"rel": "self"
}
],
"orgId": "32b6e34b3d91647abb20e7b8",
"replicaSetName": "event-replica-set",
"resolved": "2026-05-04T09:42:00Z",
"status": "OPEN",
"updated": "2026-05-04T09:42:00Z"
}
{
"acknowledgedUntil": "2026-05-04T09:42:00Z",
"acknowledgementComment": "Expiration on 3/19. Silencing for 7days.",
"acknowledgingUsername": "hello@example.com",
"alertConfigId": "32b6e34b3d91647abb20e7b8",
"clusterName": "cluster1",
"created": "2026-05-04T09:42:00Z",
"currentValue": {
"number": 42.0,
"units": "bits"
},
"eventTypeName": "OUTSIDE_METRIC_THRESHOLD",
"groupId": "32b6e34b3d91647abb20e7b8",
"hostnameAndPort": "cloud-test.mongodb.com:27017",
"id": "32b6e34b3d91647abb20e7b8",
"lastNotified": "2026-05-04T09:42:00Z",
"links": [
{
"href": "https://cloud.mongodb.com/api/atlas",
"rel": "self"
}
],
"metricName": "ASSERT_USER",
"orgId": "32b6e34b3d91647abb20e7b8",
"replicaSetName": "event-replica-set",
"resolved": "2026-05-04T09:42:00Z",
"status": "OPEN",
"updated": "2026-05-04T09:42:00Z"
}
{
"acknowledgedUntil": "2026-05-04T09:42:00Z",
"acknowledgementComment": "Expiration on 3/19. Silencing for 7days.",
"acknowledgingUsername": "hello@example.com",
"alertConfigId": "32b6e34b3d91647abb20e7b8",
"clusterName": "cluster1",
"created": "2026-05-04T09:42:00Z",
"eventTypeName": "NO_PRIMARY",
"groupId": "32b6e34b3d91647abb20e7b8",
"hostnameAndPort": "cloud-test.mongodb.com:27017",
"id": "32b6e34b3d91647abb20e7b8",
"lastNotified": "2026-05-04T09:42:00Z",
"links": [
{
"href": "https://cloud.mongodb.com/api/atlas",
"rel": "self"
}
],
"nonRunningHostIds": [
"32b6e34b3d91647abb20e7b8"
],
"orgId": "32b6e34b3d91647abb20e7b8",
"parentClusterId": "32b6e34b3d91647abb20e7b8",
"replicaSetName": "event-replica-set",
"resolved": "2026-05-04T09:42:00Z",
"status": "OPEN",
"updated": "2026-05-04T09:42:00Z"
}
{
"acknowledgedUntil": "2026-05-04T09:42:00Z",
"acknowledgementComment": "Expiration on 3/19. Silencing for 7days.",
"acknowledgingUsername": "hello@example.com",
"alertConfigId": "32b6e34b3d91647abb20e7b8",
"created": "2026-05-04T09:42:00Z",
"eventTypeName": "HOST_DOWN",
"groupId": "32b6e34b3d91647abb20e7b8",
"id": "32b6e34b3d91647abb20e7b8",
"instanceName": "foobar",
"lastNotified": "2026-05-04T09:42:00Z",
"links": [
{
"href": "https://cloud.mongodb.com/api/atlas",
"rel": "self"
}
],
"orgId": "32b6e34b3d91647abb20e7b8",
"processorErrorMsg": "MongoServerError: Failed to start stream processor: (Location77175) Could not connect to the Kafka topic with kafka error code: -195, message: Local: Broker transport failure.: (Location77175)",
"processorName": "foobar",
"processorState": "STARTED",
"resolved": "2026-05-04T09:42:00Z",
"status": "OPEN",
"updated": "2026-05-04T09:42:00Z"
}
{
"acknowledgedUntil": "2026-05-04T09:42:00Z",
"acknowledgementComment": "Expiration on 3/19. Silencing for 7days.",
"acknowledgingUsername": "hello@example.com",
"alertConfigId": "32b6e34b3d91647abb20e7b8",
"created": "2026-05-04T09:42:00Z",
"eventTypeName": "CREDIT_CARD_ABOUT_TO_EXPIRE",
"groupId": "32b6e34b3d91647abb20e7b8",
"id": "32b6e34b3d91647abb20e7b8",
"lastNotified": "2026-05-04T09:42:00Z",
"links": [
{
"href": "https://cloud.mongodb.com/api/atlas",
"rel": "self"
}
],
"orgId": "32b6e34b3d91647abb20e7b8",
"resolved": "2026-05-04T09:42:00Z",
"status": "OPEN",
"updated": "2026-05-04T09:42:00Z"
}
{
"error": 400,
"detail": "(This is just an example, the exception may not be related to this endpoint) No provider AWS exists.",
"reason": "Bad Request",
"errorCode": "VALIDATION_ERROR"
}
{
"error": 401,
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"reason": "Unauthorized",
"errorCode": "NOT_ORG_GROUP_CREATOR"
}
{
"error": 403,
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"reason": "Forbidden",
"errorCode": "CANNOT_CHANGE_GROUP_NAME"
}
{
"error": 404,
"detail": "(This is just an example, the exception may not be related to this endpoint) Cannot find resource AWS",
"reason": "Not Found",
"errorCode": "RESOURCE_NOT_FOUND"
}
{
"error": 500,
"detail": "(This is just an example, the exception may not be related to this endpoint)",
"reason": "Internal Server Error",
"errorCode": "UNEXPECTED_ERROR"
}