Docs Menu
Docs Home
/
MongoDB Ops Manager
/ / / /

Get One Organization Event

On this page

  • Required Roles
  • Request
  • Request Path Parameters
  • Request Query Parameters
  • Request Body Parameters
  • Response
  • Example Request
  • Example Response
  • Response Header
  • Response Body

Your API Key must have the Organization Member role to successfully call this resource.

Base URL: https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0

GET /orgs/{orgId}/events/{eventId}
Name
Type
Description
orgId
string
Unique identifier of the organization associated with the desired event.
eventId
string
Unique identifier of the desired event.

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 raw document in the output. The raw document contains additional meta information about the event.

IMPORTANT: The values in the raw document are subject to change. Do not rely on raw values for formal monitoring.

false

This endpoint doesn't use HTTP request body parameters.

Name
Type
Description
alertId
string
Unique identifier for the alert associated with this event.
alertConfigId
string
Unique identifier for the alert configuration associated with the alertId.
apiKeyId
string

Unique identifier for the API Key that triggered this event.

If this field is present in the response, Ops Manager does not return the userId field.

clusterId
string
Unique identifier of the cluster to which this event applies.
clusterName
string
Name of the cluster to which this event applies.
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
string
Timestamp in ISO 8601 date and time format in UTC when this event was triggered.
currentValue
object
Current value of the metric that triggered this event.
currentValue
.number
number
Value of the metric.
currentValue
.units
string

Relevant units for the value.

For example, a metric that measures memory consumption would have a byte measurement, while a metric that measures time would have a time unit.

Accepted values are:

  • RAW

  • BITS

  • BYTES

  • KILOBITS

  • KILOBYTES

  • MEGABITS

  • MEGABYTES

  • GIGABITS

  • GIGABYTES

  • TERABYTES

  • PETABYTES

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

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

Name of the circumstance that triggered this event.

To review the types of events that generate alerts, see Alert Types.

For a complete list of events included in the Ops Manager audit log, see Audit Events.

groupId
string
Unique identifier of the project in which this event occurred.
hostId
string
Unique identifier of the host on which this event occurred.
hostname
string
Hostname, FQDN, IPv4 address, or IPv6 address of the host on which this event occurred.
id
string
Unique identifier for this event.
isGlobalAdmin
boolean
Flag indicating whether the user who triggered this event has the Global Monitoring Administrator role.
links
object array

One or more links to sub-resources and/or related resources. All links arrays in responses include at least one link called self. The relationships between URLs are explained in the Web Linking Specification.

metricName
string

Name of the measurement whose value went outside the threshold.

For possible values, see below.

opType
string
Type of operation that generated the event. This field is present when the eventTypeName is either DATA_EXPLORER or DATA_EXPLORER_CRUD.
port
integer
Port of the host associated with this event.
publicKey
string

Public key associated with the API Key that triggered this event.

If this field is present in the response, Ops Manager does not return the username field.

raw
document

Additional meta information about the event. This field only appears when the includeRaw query parameter is true.

IMPORTANT: The values in the raw document are subject to change. Do not rely on raw values for formal monitoring.

remoteAddress
string
IP address associated with the Ops Manager user (userId) who triggered the event.
replicaSetName
string
Name of the replica set.
shardName
string
Name of the shard associated with the event.
targetPublicKey
string
Public key of the API Key targeted by the event.
targetUsername
string
Username for the Ops Manager user targeted by this event.
teamId
string
Unique identifier for the Ops Manager team associated with this event.
userId
string

Unique identifier for the Ops Manager user who triggered this event.

If this field is present in the response, Ops Manager does not return the apiKeyId field.

username
string

Username for the Ops Manager user who triggered this event.

If this field is present in the response, Ops Manager does not return publicKey field.

accessListEntry
string
Access list entry of the API Key targeted by the event.
curl --user "{publicKey}:{privateKey}" --digest \
--header "Accept: application/json" \
--include \
--request GET "https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0/orgs/{orgId}/events/{eventId}?pretty=true" \
HTTP/1.1 401 Unauthorized
Content-Type: application/json;charset=ISO-8859-1
Date: {dateInUnixFormat}
WWW-Authenticate: Digest realm="MMS Public API", domain="", nonce="{nonce}", algorithm=MD5, op="auth", stale=false
Content-Length: {requestLengthInBytes}
Connection: keep-alive
HTTP/1.1 200 OK
Vary: Accept-Encoding
Content-Type: application/json
Strict-Transport-Security: max-age=300
Date: {dateInUnixFormat}
Connection: keep-alive
Content-Length: {requestLengthInBytes}
X-MongoDB-Service-Version: gitHash={gitHash}; versionString={ApplicationVersion}
1{
2 "alertConfigId": "{alertConfigId}",
3 "alertId": "{alertId}",
4 "clusterId": "{clusterId}",
5 "clusterName": "Test Cluster",
6 "created": "2018-06-11T12:34:56Z",
7 "currentValue": {
8 "number": 50,
9 "units": "RAW"
10 },
11 "eventTypeName": "OUTSIDE_METRIC_THRESHOLD",
12 "groupId": "{groupId}",
13 "hostId": "{hostId}",
14 "hostname": "db.example.com",
15 "id": "{globalAlertId}",
16 "isGlobalAdmin": false,
17 "maintenanceWindowId": "{maintenanceWindowId}",
18 "metricName": "OPCOUNTER_CMD",
19 "orgId": "{orgId}",
20 "port": 27017,
21 "remoteAddress": "192.168.1.1",
22 "replicaSetName": "rs1",
23 "shardName": "sh1",
24 "userId": "{userId}",
25 "username": "john.doe@example.com",
26 "targetUsername": "jane.doe@example.com",
27 "teamId": "{teamId}"
28}

Back

Get All Organization Events