github.com/GuanceCloud/cliutils@v1.1.21/pipeline/ptinput/funcs/md/set_measurement.md (about) 1 ### `set_measurement()` {#fn-set-measurement} 2 3 函数原型:`fn set_measurement(name: str, delete_key: bool = false)` 4 5 函数说明:改变行协议的 name 6 函数参数: 7 8 - `name`: 值作为 measurement name,可传入字符串常量或变量 9 - `delete_key`: 如果在 point 中存在与变量同名的 tag 或 field 则删除它 10 11 行协议 name 与各个类型数据存储时的字段映射关系或其他用途: 12 13 | 类别 | 字段名 | 其他用途 | 14 | - | - | - | 15 | custom_object | class | - | 16 | keyevent | - | - | 17 | logging | source | - | 18 | metric | - | 指标集名 | 19 | network | source | - | 20 | object | class | - | 21 | profiling | source | - | 22 | rum | source | - | 23 | security | rule | - | 24 | tracing | source | - |