From 04e99a0851128bff2607a8feb403ef2123f9c63c Mon Sep 17 00:00:00 2001 From: Josh Liburdi Date: Fri, 27 Oct 2023 01:06:24 +0000 Subject: [PATCH] docs: fmt --- .../config/transform/aggregate/sample/config.jsonnet | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/config/transform/aggregate/sample/config.jsonnet b/examples/config/transform/aggregate/sample/config.jsonnet index 97a750d5..375b417d 100644 --- a/examples/config/transform/aggregate/sample/config.jsonnet +++ b/examples/config/transform/aggregate/sample/config.jsonnet @@ -7,23 +7,23 @@ local sub = import '../../../../../build/config/substation.libsonnet'; concurrency: 1, transforms: [ // Events are aggregated into an array. This example has a sample - // rate of up to 1/10. By default, the sample rate will be lower if + // rate of up to 1/10. By default, the sample rate will be lower if // fewer than 10 events are processed by Substation. sub.tf.aggregate.to.array( settings={ object: { set_key: 'sample' }, buffer: { count: 10 } } ), // A strict sample rate can be enforced by dropping any events that // contain the `sample` key, but do not have a length of 10. - sub.tf.meta.switch(settings={switch: [ + sub.tf.meta.switch(settings={ switch: [ { - condition: sub.cnd.any(sub.cnd.num.len.eq(settings={object: {key: 'sample'}, length: 10})), + condition: sub.cnd.any(sub.cnd.num.len.eq(settings={ object: { key: 'sample' }, length: 10 })), transform: sub.tf.object.copy(settings={ object: { key: 'sample.0' } }), }, { - condition: sub.cnd.any(sub.cnd.num.len.gt(settings={object: {key: 'sample'}, length: 0})), + condition: sub.cnd.any(sub.cnd.num.len.gt(settings={ object: { key: 'sample' }, length: 0 })), transform: sub.tf.util.drop(), }, - ]}), + ] }), sub.tf.send.stdout(), ], }