github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/processors/number.md (about) 1 --- 2 title: number 3 type: processor 4 status: deprecated 5 --- 6 7 <!-- 8 THIS FILE IS AUTOGENERATED! 9 10 To make changes please edit the contents of: 11 lib/processor/number.go 12 --> 13 14 import Tabs from '@theme/Tabs'; 15 import TabItem from '@theme/TabItem'; 16 17 :::warning DEPRECATED 18 This component is deprecated and will be removed in the next major version release. Please consider moving onto [alternative components](#alternatives). 19 ::: 20 21 22 <Tabs defaultValue="common" values={[ 23 { label: 'Common', value: 'common', }, 24 { label: 'Advanced', value: 'advanced', }, 25 ]}> 26 27 <TabItem value="common"> 28 29 ```yaml 30 # Common config fields, showing default values 31 label: "" 32 number: 33 operator: add 34 value: 0 35 ``` 36 37 </TabItem> 38 <TabItem value="advanced"> 39 40 ```yaml 41 # All config fields, showing default values 42 label: "" 43 number: 44 operator: add 45 value: 0 46 parts: [] 47 ``` 48 49 </TabItem> 50 </Tabs> 51 52 ## Fields 53 54 ### `operator` 55 56 The [operator](#operators) to apply. 57 58 59 Type: `string` 60 Default: `"add"` 61 62 ### `value` 63 64 A value used by the operator. 65 This field supports [interpolation functions](/docs/configuration/interpolation#bloblang-queries). 66 67 68 Type: `int` 69 Default: `0` 70 71 ### `parts` 72 73 An optional array of message indexes of a batch that the processor should apply to. 74 If left empty all messages are processed. This field is only applicable when 75 batching messages [at the input level](/docs/configuration/batching). 76 77 Indexes can be negative, and if so the part will be selected from the end 78 counting backwards starting from -1. 79 80 81 Type: `array` 82 Default: `[]` 83 84 ## Alternatives 85 86 All functionality of this processor has been superseded by the 87 [bloblang](/docs/components/processors/bloblang) processor. 88