- API >
- API Resources >
- Events
Get One Organization Event¶
The Atlas API authenticates using HTTP Digest Authentication. Provide a programmatic API public key and corresponding private key as the username and password when constructing the HTTP request.
To learn how to configure API access for an Atlas project, see Configure Atlas API Access.
https://cloud.mongodb.com/api/atlas/v1.0
Syntax¶
GET /orgs/{ORG-ID}/events/{EVENT-ID}
Request Path Parameters¶
Path Element | Required/Optional | Description |
---|---|---|
ORG-ID | Required | The unique identifier for the organization whose events you want to retrieve. Use the /orgs endpoint to retrieve all organizations to which the authenticated user has access. |
EVENT-ID | Required | The unique identifier for the event which you want to retrieve. |
Request Query Parameters¶
The following query parameters are optional:
Query Parameter | Type | Description | Default |
---|---|---|---|
pretty | boolean | Displays response in a prettyprint format. | false |
envelope | boolean | Specifies whether or not to wrap the response in an envelope. | false |
includeRaw | boolean | Specifies whether to include the Important The values in the | false |
Request Body Parameters¶
This endpoint does not use HTTP request body parameters.
Response¶
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
alertId | string | Unique identifier for the alert associated to the event. | ||||||||||||||||||||
alertConfigId | string | Unique identifier for the alert configuration associated to the
alertId . | ||||||||||||||||||||
apiKeyId | string | Unique identifier for the API Key that triggered the event. If this field is
present in the response, Atlas does not return the
userId field. | ||||||||||||||||||||
collection | string | Name of the collection on which the event occurred. This field
can be present when the eventTypeName is either
DATA_EXPLORER or DATA_EXPLORER_CRUD . | ||||||||||||||||||||
created | date | ISO 8601-formatted UTC date when the event occurred. | ||||||||||||||||||||
currentValue | document | Describes the value of the metricName at the time of the
event. | ||||||||||||||||||||
currentValue.number | int | The value of the metricName at the time of the event. | ||||||||||||||||||||
currentValue.units | string | The unit of measurement of the Possible values are:
| ||||||||||||||||||||
database | string | Name of the database on which the event occurred. This field
can be present when the eventTypeName is either
DATA_EXPLORER or DATA_EXPLORER_CRUD . | ||||||||||||||||||||
eventTypeName | string | The type of event. Possible values are:
| ||||||||||||||||||||
groupId | string | The unique identifier for the project in which the event occurred. | ||||||||||||||||||||
hostname | string | The hostname of the Atlas host machine associated to the event. | ||||||||||||||||||||
id | string | The unique identifier for the event. | ||||||||||||||||||||
invoiceId | string | The unique identifier of the invoice associated to the event. | ||||||||||||||||||||
isGlobalAdmin | boolean | Indicates whether the user who triggered the event is a MongoDB employee. | ||||||||||||||||||||
links | array | One or more links to sub-resources and/or related resources. The relation-types between URL |