19 declare(strict_types=1);
33 new \ilDatabaseInitializedObjective()
39 $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
41 "database_available" =>
new Metric(
42 Metric::STABILITY_VOLATILE,
45 "This metric is a canary to check for the general existence of this collection." 53 $storage->store(
"database_inconsistencies",
new Metric(
54 Metric::STABILITY_MIXED,
55 Metric::TYPE_COLLECTION,
57 "These metrics collect information about inconsistencies in the database of the T&A." 63 $result = $db->
query(
" 64 SELECT COUNT(*) as cnt 66 LEFT JOIN object_data ON tst_active.test_fi = object_data.obj_id 67 WHERE object_data.obj_id IS NULL 70 $metrics[
"mantis_37759"] =
new Metric(
71 Metric::STABILITY_VOLATILE,
74 "Measures active tests runs where the corresponding Test object does not exist anymore."
getTentativePreconditions(Setup\Environment $environment)
fetchAssoc(ilDBStatement $statement)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A metric is something we can measure about the system.
collectFrom(Setup\Environment $environment, Setup\Metrics\Storage $storage)
query(string $query)
Run a (read-only) Query on the database.
collectMantis37759(array &$metrics, \ilDBInterface $db)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.