文档菜单
文档首页
/ /
MongoDB CLI
/ / / /

mongocli cloud-manager alerts settings disable

本页内容

  • 语法
  • 参数
  • 选项
  • 继承选项
  • 示例

禁用指定项目的单个警报配置。

命令语法
mongocli cloud-manager alerts settings disable <alertConfigId> [options]
名称
类型
必需
描述
alertConfigId
字符串
true
您想禁用的警报配置的ID。
名称
类型
必需
描述
-h, --help
false
disable命令的帮助信息
-o, --output
字符串
false
输出格式。有效值包括json, json-path, go-template, 或 go-template-file。要查看完整输出,请使用-o json选项。
--projectId
字符串
false
表示要使用的项目的十六进制字符串。此选项会覆盖配置文件或环境变量中的设置。
名称
类型
必需
描述
-P, --profile
字符串
false
从配置文件中使用的配置文件名。有关MongoCLI配置文件中的配置文件信息,请参阅https://dochub.mongodb.org/core/atlas-cli-configuration-file.
# Disable the alert configuration with the ID 5d1113b25a115342acc2d1aa in the project with the ID 5e2211c17a3e5a48f5497de3:
mongocli [ops-manager|cloud-manager] alerts settings disable 5d1113b25a115342acc2d1aa --projectId 5e2211c17a3e5a48f5497de3

返回

删除