Distributed Poller improved validation (#12269)

This commit is contained in:
Tony Murray
2020-11-23 00:33:56 -06:00
committed by GitHub
parent 7550ef1d8c
commit 7ed34c889e
6 changed files with 164 additions and 20 deletions

View File

@@ -218,6 +218,17 @@ class Validator
$this->result(new ValidationResult($message, ValidationResult::FAILURE, $fix), $group);
}
/**
* Submit an informational validation result.
*
* @param string $message
* @param string $group manually specify the group, otherwise this will be inferred from the callers class name
*/
public function info($message, $group = null)
{
$this->result(new ValidationResult($message, ValidationResult::INFO), $group);
}
/**
* Get version_info() array. This will cache the result and add remote data if requested and not already existing.
*