mongocli ops-manager alerts settings fields type
当你创建或更新一个警报配置时,返回匹配器字段名选项接受的全部可用字段类型。
使用此命令,你必须使用具有项目只读角色的用户帐户或API密钥进行认证。
语法
命令语法
mongocli ops-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