Skip to content

Commit

Permalink
shortened sensor period in netcat with client yaml example
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmccabe committed Oct 21, 2015
1 parent 9790e8b commit 5f92ed9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/guide/yaml/custom-entities.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f92ed9

Please sign in to comment.