AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。

クラスターからランク付けされた名前空間を返す

指定されたクラスターから名前空間のサブセットを、指定された時間枠内の合計実行時間の最も長い順で降順にソートして返します。

ベース URL: https://cloud.mongodb.com/api/public/v1.0

GET /groups/{PROJECT-ID}/clusters/{hostClusterId}/{clusterView}/collStats/namespaces
Parameter
タイプ
説明

プロジェクトID

string

(必須。) 固定された名前空間を含むプロジェクトを識別する一意の 24 桁の 16 進数string 。

hostClusterId

string

(必須。) 固定された名前空間を含むクラスターの一意の識別子。

clusterView

string

(必須。) クラスター トポロジーを識別する名前。 値には、次のものが含まれます。

  • PRIMARY

  • SECONDARY

  • INDIVIDUAL_PROCESS

すべてのパラメーターは任意です。

名前
タイプ
説明
default

pretty

ブール値

レスポンス本体を pretty-print 形式にするかどうかを示します。

false

envelope

ブール値

応答をエンベロープでラップするかどうかを示します。

false

period

string

過去の測定値を取得する方法を指定する ISO 表記の期間。8601この値を指定した場合、start と end は指定できません。

たとえば、過去の36時間をリクエストするには、次のクエリ パラメータを含めます: period=P1DT12H 。

始める

string

測定値を検索する期間の開始時刻( UTC の ISO 形式)。8601start を指定する場合は、end も指定する必要があります。また、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.

このエンドポイントは、HTTP リクエスト本体パラメータを使用しません。

名前
タイプ
説明

グループ ID

string

名前空間を含むプロジェクトを識別する一意の 24 桁の 16 進数string 。

identityId

string

測定値が含まれるクラスターの一意の識別子。

rankNamespaces

string

指定されたクラスターの各名前空間を含むリストが、指定された時間枠内の合計実行時間の最も長い順で降順にソートされます。

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 OKVary: Accept-EncodingContent-Type: application/jsonStrict-Transport-Security: max-age=300Date: {dateInUnixFormat}Connection: keep-aliveContent-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" ]}