41.35. metric resource-type create
创建资源类型
使用方法:
值 | 概述 |
---|---|
--print-empty | 如果没有要显示数据,则打印空表。 |
--max-width <integer> | 最大显示宽度 <1 来禁用。您还可以使用 CLIFF_MAX_TERM_WIDTH 环境变量,但参数具有优先权。 |
--fit-width | 适合显示宽度的表。如果 --max-width 大于 0,则意味着。将环境变量 CLIFF_FIT_WIDTH=1 设置为 always 启用 |
值 | 概述 |
---|---|
name | 资源类型的名称 |
值 | 概述 |
---|---|
output formatter options-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | 输出格式,默认为 table |
-c COLUMN, --column COLUMN | 指定要包含的列,可以重复 |
值 | 概述 |
---|---|
--noindent | 是否禁用缩进 json |
值 | 概述 |
---|---|
-h, --help | 显示帮助信息并退出 |
-a ATTRIBUTE, --attribute ATTRIBUTE | attribute definition, attribute_name:attribute_type:at tribute_is_required:attribute_type_option_name=attribu te_type_option_value:… 例如:display_name:string:true:max_length=255 |
值 | 概述 |
---|---|
格式化 UNIX shell 可以解析(variable="value")--prefix PREFIX | 为所有变量名称添加前缀 |