ILIAS  release_8 Revision v8.24
Storage.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21namespace ILIAS\Setup\Metrics;
22
23interface 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}
A metric is something we can measure about the system.
Definition: Metric.php:34
storeStableCounter(string $key, int $value, string $description=null)
storeStableBool(string $key, bool $value, string $description=null)
storeConfigBool(string $key, bool $value, string $description=null)
storeStableTimestamp(string $key, \DateTimeImmutable $value, string $description=null)
storeStableGauge(string $key, $value, string $description=null)
storeConfigCounter(string $key, int $value, string $description=null)
storeVolatileText(string $key, string $value, string $description=null)
store(string $key, Metric $metric)
Store some metric in the storage.
storeVolatileTimestamp(string $key, \DateTimeImmutable $value, string $description=null)
storeConfigGauge(string $key, $value, string $description=null)
storeConfigTimestamp(string $key, \DateTimeImmutable $value, string $description=null)
storeVolatileCounter(string $key, int $value, string $description=null)
storeVolatileBool(string $key, bool $value, string $description=null)
storeStableText(string $key, string $value, string $description=null)
storeConfigText(string $key, string $value, string $description=null)
storeVolatileGauge(string $key, $value, string $description=null)
string $key
Consumer key/client ID value.
Definition: System.php:193
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...