ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Storage.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Setup\Metrics;
22 
23 interface Storage
24 {
28  public function store(string $key, Metric $metric): void;
29 
30  // Convenience methods to store the common types of metrics.
31 
32  public function storeConfigBool(string $key, bool $value, ?string $description = null): void;
33  public function storeConfigCounter(string $key, int $value, ?string $description = null): void;
34  public function storeConfigGauge(string $key, $value, ?string $description = null): void;
35  public function storeConfigTimestamp(string $key, \DateTimeImmutable $value, ?string $description = null): void;
36  public function storeConfigText(string $key, string $value, ?string $description = null): void;
37 
38  public function storeStableBool(string $key, bool $value, ?string $description = null): void;
39  public function storeStableCounter(string $key, int $value, ?string $description = null): void;
40  public function storeStableGauge(string $key, $value, ?string $description = null): void;
41  public function storeStableTimestamp(string $key, \DateTimeImmutable $value, ?string $description = null): void;
42  public function storeStableText(string $key, string $value, ?string $description = null): void;
43 
44  public function storeVolatileBool(string $key, bool $value, ?string $description = null): void;
45  public function storeVolatileCounter(string $key, int $value, ?string $description = null): void;
46  public function storeVolatileGauge(string $key, $value, ?string $description = null): void;
47  public function storeVolatileTimestamp(string $key, \DateTimeImmutable $value, ?string $description = null): void;
48  public function storeVolatileText(string $key, string $value, ?string $description = null): void;
49 }
storeConfigBool(string $key, bool $value, ?string $description=null)
storeVolatileCounter(string $key, int $value, ?string $description=null)
storeVolatileTimestamp(string $key, \DateTimeImmutable $value, ?string $description=null)
storeStableBool(string $key, bool $value, ?string $description=null)
store(string $key, Metric $metric)
Store some metric in the storage.
storeVolatileText(string $key, string $value, ?string $description=null)
storeConfigGauge(string $key, $value, ?string $description=null)
storeConfigTimestamp(string $key, \DateTimeImmutable $value, ?string $description=null)
storeStableGauge(string $key, $value, ?string $description=null)
storeConfigText(string $key, string $value, ?string $description=null)
A metric is something we can measure about the system.
Definition: Metric.php:33
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
storeVolatileBool(string $key, bool $value, ?string $description=null)
storeStableTimestamp(string $key, \DateTimeImmutable $value, ?string $description=null)
storeConfigCounter(string $key, int $value, ?string $description=null)
storeStableCounter(string $key, int $value, ?string $description=null)
storeVolatileGauge(string $key, $value, ?string $description=null)
storeStableText(string $key, string $value, ?string $description=null)