Docs Menu
Docs Home
/
MongoDB Cloud Manager
/ / / /

Return Ranked Namespaces from a Cluster

On this page

  • Resource
  • Request Path Parameters
  • Request Query Parameters
  • Request Body Parameters
  • Response
  • Example Request
  • Example Response
  • Response Header
  • Response Body

Return a subset of namespaces from the specified cluster sorted by the highest total execution time in descending order within the specified time window.

Base URL: https://cloud.mongodb.com/api/public/v1.0

GET /groups/{PROJECT-ID}/clusters/{hostClusterId}/{clusterView}/collStats/namespaces
Parameter
Type
Description
PROJECT-ID
string
(Required.) Unique 24-hexadecimal digit string that identifies the project that contains the pinned namespaces.
hostClusterId
string
(Required.) Unique identifier for the cluster that contains the pinned namespaces.
clusterView
string

(Required.) Name that identifies the cluster topology. Values include:

  • PRIMARY

  • SECONDARY

  • INDIVIDUAL_PROCESS

All parameters are optional.

Name
Type
Description
Default
pretty
boolean
false
envelope
boolean
Indicates whether or not to wrap the response in an envelope.
false
period
string

Duration in ISO 8601 notation that specifies how far back in the past to retrieve measurements. If you specify this value, you can't specify start and end.

For example, to request the last 36 hours, include this query parameter: period=P1DT12H.

start
string
Timestamp in ISO 8601 date and time format in UTC for the beginning of the period for which to retrieve measurements. If you specify start you must also specify end and you can't specify period.
end
string
Timestamp in ISO 8601 date and time format in UTC for the end of the period for which to retrieve measurements. If you specify end you must also specify start and you can't specify period.

This endpoint doesn't use HTTP request body parameters.

Name
Type
Description
groupId
string
Unique 24-hexadecimal digit string that identifies the project that contains the namespaces.
identifierId
string
Unique identifier of the cluster to which the measurements pertain.
rankedNamespaces
string
List that contains each namespace from the specified cluster sorted by the highest total execution time in descending order within the specified time window.
curl --user '{PUBLIC-KEY}:{PRIVATE-KEY}' --digest \
--header 'Accept: application/json' \
--include \
--request GET 'https://{CLOUD-MANAGER-HOST}:{PORT}/api/public/v1.0/groups/{PROJECT-ID}/clusters/{hostClusterId}/{clusterView}/collStats/namespaces?pretty=true&period={period}'
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}
{
"groupId": "{PROJECT-ID}",
"identifierId": "{hostClusterId}",
"rankedNamespaces": [
"smol.dbA",
"sample_mflix.movies",
"sample_supplies.sales",
"sample_mflix.theaters",
"sample_guides.planets",
"smol.dbD",
"sample_restaurants.restaurants",
"sample_mflix.embedded_movies",
"sample_training.companies",
"smol.floof",
"sample_mflix.sessions",
"smol.dbC",
"sample_mflix.comments",
"sample_training.trips",
"sample_analytics.accounts",
"sample_training.grades",
"sample_airbnb.listingsAndReviews",
"smol.dbB",
"sample_training.posts",
"sample_weatherdata.data"
]
}

Back

Return Cluster-Level Query Latency