◆ __construct()
◆ collectFrom()
ilDatabaseUpdateStepsMetricsCollectedObjective::collectFrom |
( |
Setup\Environment |
$environment, |
|
|
Storage |
$storage |
|
) |
| |
|
protected |
Definition at line 37 of file class.ilDatabaseUpdateStepsMetricsCollectedObjective.php.
References $version, and ILIAS\Setup\Metrics\Storage\store().
39 $execution_log = $environment->getResource(ilDatabaseUpdateStepExecutionLog::class);
40 $step_reader = $environment->getResource(ilDBStepReader::class);
43 Metric::STABILITY_STABLE,
45 (
string) ($execution_log->getLastFinishedStep($this->step_class))
48 $available_version =
new Metric(
49 Metric::STABILITY_STABLE,
51 (
string) $step_reader->getLatestStepNumber($this->step_class, self::STEP_METHOD_PREFIX)
54 $update_required =
new Metric(
55 Metric::STABILITY_STABLE,
57 $execution_log->getLastFinishedStep($this->step_class) !== $step_reader->getLatestStepNumber(
59 self::STEP_METHOD_PREFIX
64 Metric::STABILITY_STABLE,
65 Metric::TYPE_COLLECTION,
68 "available_version" => $available_version,
69 "update_required" => $update_required
73 $storage->
store($this->step_class, $collection);
store(string $key, Metric $metric)
Store some metric in the storage.
A metric is something we can measure about the system.
◆ getHash()
ilDatabaseUpdateStepsMetricsCollectedObjective::getHash |
( |
| ) |
|
◆ getLabel()
ilDatabaseUpdateStepsMetricsCollectedObjective::getLabel |
( |
| ) |
|
◆ getTentativePreconditions()
ilDatabaseUpdateStepsMetricsCollectedObjective::getTentativePreconditions |
( |
Setup\Environment |
$environment | ) |
|
|
protected |
◆ $step_class
string ilDatabaseUpdateStepsMetricsCollectedObjective::$step_class |
|
protected |
◆ STEP_METHOD_PREFIX
const ilDatabaseUpdateStepsMetricsCollectedObjective::STEP_METHOD_PREFIX = "step_" |
The documentation for this class was generated from the following file: