Agent-TCLI
view release on metacpan or search on metacpan
lib/Agent/TCLI/Package/Tail.pm view on Meta::CPAN
help: Seconds to wait between checks.
manual: >
Seconds to wait between checks.
type: Param
---
Agent::TCLI::Parameter:
name: seek
help: Seek forward byte count.
manual: >
The Seek parameter tells Tail how far from the start of the file to start
reading. Its value is specified in bytes, and values greater than the
file's current size will quietly cause Tail to start from the file's end.
A Seek parameter of 0 starts FollowTail at the beginning of the file.
A negative Seek parameter emulates SeekBack: it seeks backwards from
the end of the file.
Seek and SeekBack are mutually exclusive. If Seek and SeekBack are not
specified, Tail seeks 4096 bytes back from the end of the file
and discards everything until the end of the file. This helps ensure
that Tail returns only complete records.
type: Param
---
Agent::TCLI::Parameter:
name: seekback
help: Seek backwards byte count.
manual: >
The SeekBack parameter tells Tail how far back from the end of the file
to start reading. Its value is specified in bytes, and values greater
than the file's current size will quietly cause Tail to start from
the file's beginning.
A SeekBack parameter of 0 starts Tail at the end of the file.
It's recommended to omit Seek and SeekBack to start from the end of a file.
A negative SeekBack parameter emulates Seek: it seeks forwards from
the start of the file.
type: Param
---
Agent::TCLI::Parameter:
name: name
help: The name of the test.
manual: >
The name is purely cosmetic and will be returned with the test results
simliarly to the way Test::Simple operates. This might be useful
when reporting results to a group chat or log.
type: Param
---
Agent::TCLI::Parameter:
name: like
help: A regex to match.
manual: >
Like sets a regular expression for the test to match within a line.
The regex should be either a string
type: Param
---
Agent::TCLI::Parameter:
name: line_max_cache
alaises: max_cache
constraints:
- UINT
help: The maximum number of lines to keep in the line_cache.
manual: >
The line_max_cache parameter sets how many lines to keep in the line cache.
Since actions are asynchronous, it is a good idea to have at least some
line cache so that a tail test will work when the action to generate the
log ocurred before the test was in place.
type: Param
---
Agent::TCLI::Parameter:
name: line_hold_time
alaises: hold_time
constraints:
- UINT
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
---
( run in 0.725 second using v1.01-cache-2.11-cpan-2398b32b56e )