- API >
- Public API Resources >
- MongoDB Server Usage >
- Generate Daily Usage Snapshot
Generate Daily Usage Snapshot¶
On this page
If MongoDB Usage UI
is set to On, you can
trigger this endpoint which tells Ops Manager to:
- Generate a snapshot. This snapshot of all deployments belonging
to all projects and organizations includes the current information
for each
mongod
andmongos
process:- memory statistics
- date
- organization
- project
- IP
- IANA port
- Calculate assignments. This populates the
assignment
collection. The endpoint makes Ops Manager review the snapshot for that day and copy each process with an assigned server type. Ops Manager discovers the process’s server type from its host. The host’s server type could have been set in the admin page. If the host’s server type was not set, Ops Manager assigns the project’s default server type when the host was created to that host.
You might call this endpoint if you have no assignments in the
assignments
collection but want to view the MongoDB Usage Admin UI.
This may happen in the following cases:
- You enabled
MongoDB Usage Data Collection
but the automated job that collects the data has yet run for the first time. - You dropped or emptied the
assignments
collection. - You did not enable
MongoDB Usage Data Collection
because you wanted to collect usage data one time, not every day.
Base URL: https://{OPSMANAGER-HOST}:{PORT}/api/public/v1.0
Required Role¶
This resource requires the
API Key to have
the Global Owner
role.
Resource¶
Request Path Parameters¶
This endpoint does not use HTTP request path parameters.
Request Query Parameters¶
The following query parameters are optional:
Name | Type | Description | Default | ||||
---|---|---|---|---|---|---|---|
pageNum | integer | Page number (1-index based). | 1 |
||||
itemsPerPage | integer | Number of items to return per page, up to a maximum of 500. | 100 |
||||
pretty | boolean | Indicates whether the response body should be in a prettyprint format. | false |
||||
envelope | boolean | Indicates whether or not to wrap the response in an envelope. Some API clients cannot access the HTTP response headers or
status code. To remediate this, set For endpoints that return one result, response body includes:
For endpoints that return a list of results, the |
None |
Request Body Parameters¶
This endpoint does not use HTTP request body parameters.
Response¶
This endpoint does not have response elements.