mongocli ops-manager alerts unacknowledge
取消确认您项目中指定的警报。
要使用此命令,您必须使用具有项目所有者角色的用户帐户或API密钥进行身份验证。
语法
命令语法
mongocli ops-manager alerts unacknowledge <alertId> [options]
参数
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
alertId | 字符串 | true | 要取消确认的警报的唯一ID。 |
选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
--comment | 字符串 | false | 条目可选描述或注释。 |
-h, --help | false | unacknowledge的帮助信息 | |
-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. |
示例
# Unacknowledge the alert with the ID 5d1113b25a115342acc2d1aa in the project with the ID 5e2211c17a3e5a48f5497de3: mongocli [ops-manager|cloud-manager] alerts unacknowledge 5d1113b25a115342acc2d1aa --projectId 5e2211c17a3e5a48f5497de3 --output json