github.com/GuanceCloud/cliutils@v1.1.21/pipeline/ptinput/funcs/md/set_measurement.en.md (about) 1 ### `set_measurement()` {#fn-set-measurement} 2 3 Function prototype: `fn set_measurement(name: str, delete_key: bool = false)` 4 5 Function description: change the name of the line protocol 6 7 Function parameters: 8 9 - `name`: The value is used as the measurement name, which can be passed in as a string constant or variable 10 - `delete_key`: If there is a tag or field with the same name as the variable in point, delete it 11 12 The field mapping relationship between row protocol name and various types of data storage or other purposes: 13 14 | category | field name | other usage | 15 | - | - | - | 16 | custom_object | class | - | 17 | keyevent | - | - | 18 | logging | source | - | 19 | metric | - | metric set name | 20 | network | source | - | 21 | object | class | - | 22 | profiling | source | - | 23 | rum | source | - | 24 | security | rule | - | 25 | tracing | source | - |