21 lines
602 B
Text
21 lines
602 B
Text
# Process metrics using a Starlark script
|
|
[[processors.starlark]]
|
|
## The Starlark source can be set as a string in this configuration file, or
|
|
## by referencing a file containing the script. Only one source or script
|
|
## should be set at once.
|
|
|
|
## Source of the Starlark script.
|
|
source = '''
|
|
def apply(metric):
|
|
return metric
|
|
'''
|
|
|
|
## File containing a Starlark script.
|
|
# script = "/usr/local/bin/myscript.star"
|
|
|
|
## The constants of the Starlark script.
|
|
# [processors.starlark.constants]
|
|
# max_size = 10
|
|
# threshold = 0.75
|
|
# default_name = "Julia"
|
|
# debug_mode = true
|