mongocli cloud-manager alerts settings fields type
当您创建或更新警报配置时,此命令将返回匹配器字段名称选项可接受的全部可用字段类型。
要使用此命令,您必须使用具有项目只读角色的用户帐户或API密钥进行身份验证。
语法
命令语法
mongocli cloud-manager alerts settings fields type [options]
选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-h, --help | false | 类型帮助 | |
-o, --output | string | false | 输出格式。有效值是json、json-path、go-template或go-template-file。要查看完整输出,请使用-o json选项。 |
继承选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-P, --profile | string | false | 使用配置文件中的配置文件名称。有关MongoCLI配置文件的配置文件信息,请参阅https://dochub.mongodb.org/core/atlas-cli-configuration-file. |
示例
# Return a JSON-formatted list of accepted field types for the matchersFieldName option: mongocli [ops-manager|cloud-manager] alerts settings fields type --output json