Agent-TCLI
view release on metacpan or search on metacpan
lib/Agent/TCLI/Package/Tail.pm view on Meta::CPAN
help: The time, in seconds, to keep lines in the cache.
manual: >
The line_hold_time parameter sets how many seconds to keep lines in
the line_cache. This is not an exact amount but rather the minimum,
The purge_line_cache process does not run every second, but lines that
exceeed the hold_time will be purged when it does run.
type: Param
---
Agent::TCLI::Parameter:
name: test_max_lines
alaises: max_lines
help: The maximum number of lines to check before failing.
manual: >
The max_lines parameter sets how many lines to check before giving up
and failing. For tests, the default is ten, which is the default size
of the line cache. This means that by default, a test will only check the
most recent lines of what is being tailed.
For watches, the default is zero, which means it does not ever give up.
type: Param
---
Agent::TCLI::Parameter:
name: test_match_times
aliases: match_times
help: The numer of times the a match must be found.
manual: >
The match_times parameter sets how many times a line must match
in order to pass. For tests, the default is one. For watches, the default is
zero, which means it ignores match_times and stays active.
type: Param
---
Agent::TCLI::Parameter:
name: test_ttl
aliases: ttl
help: The time-to-live in seconds.
manual: >
The ttl parameter sets how many seconds to wait before giving up
and failing. For tests, the default is 30. For watches, the default is
zero, which means it does not ever expire.
type: Param
---
Agent::TCLI::Parameter:
name: ordered
help: Set the order for processing tests.
manual: >
Ordered is a boolean switch indicating how to process the tests. If set
a test will not be checked against a line until the previous test has
passed. If ordered is off then multiple tests are running, and tests
are always processed in the order that they were created. The default
ordered setting is off for both tests and watches.
type: Switch
---
Agent::TCLI::Parameter:
name: feedback
help: Sets the feedback level for what is seen.
manual: >
Feedback sets the level of additional information about the line that is
returned. Currently it is either zero, which is nothing,
or one, which returns the whole line. Feedback occurs when a line is
matched or if a test is set for verbose. Feedback is set per test, so
if multiple tests are active and verbose is one, there is the possibility
of seeing the same line more than once. This is useful for debugging
a particular test/watch.
type: Switch
---
Agent::TCLI::Parameter:
name: test_verbose
aliases: verbose|v
help: Sets the verbosity level for a test.
manual: >
Verbose sets the level of additional information about the test that is
returned. Currently it is either zero, which is nothing,
or one, which enables feedback (if set) on every line that is seen.
type: Switch
---
Agent::TCLI::Parameter:
name: cache
help: Determines whether the line cache is used.
manual: >
The line cache will hold the most recent lines seen. This option determines
whether to use the line cache or only examine new lines when a test is set.
The default for tests is on, and for watches is off. To turn off use
no-cache as a test/watch option.
type: Switch
---
Agent::TCLI::Parameter:
name: line_cache
help: The lines in the cache currently.
manual: >
The line cache will hold the most recent lines seen. This will show the
contents of the line cache.
type: Switch
---
Agent::TCLI::Parameter:
name: test_queue
help: The tests and watches that have been requested.
manual: >
The test_queue holds all the tests that have been requested.
This could be a very long list.
type: Switch
---
Agent::TCLI::Parameter:
name: active
help: The tests and watches that are currently active.
type: Switch
---
Agent::TCLI::Command:
name: tail
call_style: session
command: tcli_tail
contexts:
ROOT: tail
handler: establish_context
help: tail a file
topic: testing
usage: tail file add file /var/log/messages
---
Agent::TCLI::Command:
name: file
call_style: session
command: tcli_tail
contexts:
( run in 0.724 second using v1.01-cache-2.11-cpan-39bf76dae61 )