Represents one text match found while searching a job's input, output or log lines for a search expression. Produced by AsyncJobManager.searchInJob and carries the matched text, the field it was found in, and the job it belongs to.


Properties

PropertyReturnsDescription
hitFieldStringThe field the matched text was found in: "input", "output", or "logs-line-N" for the Nth line of the job's logs.
hitTextStringThe text that matched the search expression, taken verbatim from the job's input, output or a single log line.
jobAsyncJobThe job that the matched text was found in. Never null.

Methods

getHitField()

Returns: String

The field the matched text was found in: "input", "output", or "logs-line-N" for the Nth line of the job's logs.

getHitText()

Returns: String

The text that matched the search expression, taken verbatim from the job's input, output or a single log line.

getJob()

Returns: AsyncJob

The job that the matched text was found in. Never null.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.