From 5f92ed9c0593c7083bed5bad27de2f3fdd68aeff Mon Sep 17 00:00:00 2001 From: John McCabe Date: Wed, 21 Oct 2015 10:39:58 +0100 Subject: [PATCH] shortened sensor period in netcat with client yaml example --- docs/guide/yaml/custom-entities.md | 1 + docs/guide/yaml/example_yaml/vanilla-bash-netcat-w-client.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/guide/yaml/custom-entities.md b/docs/guide/yaml/custom-entities.md index a2887a9c49..6f21c148ad 100644 --- a/docs/guide/yaml/custom-entities.md +++ b/docs/guide/yaml/custom-entities.md @@ -97,6 +97,7 @@ so that the `$message` we passed above gets logged and reported back: - type: org.apache.brooklyn.core.sensor.ssh.SshCommandSensor brooklyn.config: name: output.last + period: 1s command: tail -1 server-input This is still a simple example, but worth going through carefully. diff --git a/docs/guide/yaml/example_yaml/vanilla-bash-netcat-w-client.yaml b/docs/guide/yaml/example_yaml/vanilla-bash-netcat-w-client.yaml index d3eccbbc4c..8290b7920b 100644 --- a/docs/guide/yaml/example_yaml/vanilla-bash-netcat-w-client.yaml +++ b/docs/guide/yaml/example_yaml/vanilla-bash-netcat-w-client.yaml @@ -32,11 +32,13 @@ services: - type: org.apache.brooklyn.core.sensor.ssh.SshCommandSensor brooklyn.config: name: output.last + period: 1s command: tail -1 server-input - type: org.apache.brooklyn.core.sensor.ssh.SshCommandSensor brooklyn.config: name: output.all + period: 1s command: cat server-input # a client to hit netcat