mongocli ops-manager serverUsage 下载
下载服务器使用情况报告。
语法
命令语法
mongocli ops-manager serverUsage download [options]
选项
名称 | 类型 | 必需 | 说明 |
---|---|---|---|
--endDate | 字符串 | true | 主机分配列表结束的时间戳,采用 ISO 8601 日期格式。 |
--force | false | Flag that indicates whether to overwrite the destination file. | |
--format | 字符串 | false | 生成的报告的压缩格式。 有效值为 ZIP、TAR 或 .GZ。 该值默认为“tar.gz”。 |
-h,--help | false | 下载帮助 | |
--out | 字符串 | false | Output file name. This value defaults to the log name. |
--skipRedaction | false | Flag that indicates whether to skip the redaction of sensitive values. If you set this flag, Ops Manager logs the original values for hostnames, IP addresses, and namespaces in API responses for this job. | |
--startDate | 字符串 | true | 主机分配列表开始的时间戳,采用 ISO 8601 日期格式。 |
继承选项
名称 | 类型 | 必需 | 说明 |
---|---|---|---|
-P, --profile | 字符串 | false | 要从配置文件中使用的配置文件的名称。 要了解 MongoCLI 的配置文件,请参阅 https://dochub.mongodb.org/core/atlas-cli-configuration-file。 |
示例
mongocli ops-manager serverUsage download --endDate 2022-12-12 --startDate 2022-01-01