To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
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
| Property | Returns | Description |
|---|---|---|
| hitField | String | The field the matched text was found in: "input", "output", or "logs-line-N" for the Nth line of the job's logs. |
| hitText | String | The text that matched the search expression, taken verbatim from the job's input, output or a single log line. |
| job | AsyncJob | The 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.