公共预览版:请提供反馈:返回数据库部署的建议索引和慢速查询数据。
公共预览版: Atlas API子命令从MongoDB Atlas Admin API自动生成,全面覆盖 Admin API ,目前处于公共预览版(请通过以下网址提供反馈:https://反馈.mongodb.com/forums/930808-Atlas-cli)。Admin API功能有自己的发布生命周期,您可以通过提供的API端点文档链接进行检查。
还可启用或禁用 MongoDB 云托管的慢速操作阈值。要查看示例查询中的字段值,必须具有项目数据访问只读角色或更高角色。否则,MongoDB Cloud 将返回已编辑的数据而不是字段值。
选项
名称 | 类型 | 必需 | 说明 |
---|---|---|---|
-h,--help | false | performanceAdvisor 帮助 |
继承选项
名称 | 类型 | 必需 | 说明 |
---|---|---|---|
-P, --profile | 字符串 | false | 要从您的配置文件中使用的配置文件的名称。要学习;了解Atlas CLI配置文件,请参阅 https://dochub.mongodb.org/core/atlas-cli-save-connection-settings。 |
相关命令
Atlas API performanceAdvisor disableSlowOperationThresholding - 公共预览版:请提供反馈:禁用MongoDB Cloud 为指定项目计算的慢操作阈值。
Atlas API performanceAdvisor enableSlowOperationThresholding - 公共预览版:请提供反馈:支持MongoDB Cloud 对指定项目使用其慢操作阈值。
Atlas API performanceAdvisor getManagedSlowMs - 公共预览版:请提供反馈:获取是否启用了托管慢速 MS功能。
Atlas API performanceAdvisor listClusterRecommendedIndexes - 公共预览版:请提供反馈:返回Performance Advisor建议的索引。
Atlas API performanceAdvisor listDropIndexes - 公共预览版:请提供反馈:返回Performance Advisor建议删除的索引。
Atlas API performanceAdvisor listSchemaAdvice - 公共预览版:请提供反馈:返回Performance Advisor检测到的模式建议。
Atlas API performanceAdvisor listSlowQueries - 公共预览版:请提供反馈:返回Performance Advisor和查询分析器识别出的慢速查询的日志行。
Atlas API performanceAdvisor listSlowQueryNamespaces - 公共预览版:请提供反馈:为指定托管上查询缓慢的集合返回最多 20 个命名空间。
Atlas API performanceAdvisor listRecommendedIndexes - 公共预览版:请提供反馈:返回Performance Advisor建议的索引。