We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ebb38a commit d610bf0Copy full SHA for d610bf0
pkg/ottl/ottlfuncs/README.md
@@ -424,6 +424,7 @@ Available Converters:
424
- [UnixSeconds](#unixseconds)
425
- [UUID](#UUID)
426
- [Year](#year)
427
+- [Scale](#scale)
428
429
### Base64Decode
430
@@ -1343,6 +1344,21 @@ Examples:
1343
1344
1345
- `Year(Now())`
1346
1347
+### Scale
1348
+
1349
+`Scale(value, factor)`
1350
1351
+The `Scale` function returns the original `value`, multiplied by the `factor`.
1352
+The supported data types are:
1353
1354
+- `int`
1355
+- `double`
1356
+- `metric` - Supported metric types are `Gauge`, `Sum`, and `Histogram`
1357
1358
+Examples:
1359
1360
+- `Scale(10.0, 0.1)`
1361
1362
## Function syntax
1363
1364
Functions should be named and formatted according to the following standards.
0 commit comments