Handle Telemetry data
- Author
- Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be
- Copyright
- 2017 GLPI and Contributors
-
2017-2024 The Galette Team
◆ __construct()
Constructor
- Parameters
-
Db | $zdb | Database instance |
Preferences | $prefs | Preferences instance |
Plugins | $plugins | Plugins instance |
◆ generateInstanceUuid()
Galette\Util\Telemetry::generateInstanceUuid |
( |
| ) |
|
|
final |
Generates an unique identifier for current instance and store it
- Returns
- string
◆ generateRegistrationUuid()
Galette\Util\Telemetry::generateRegistrationUuid |
( |
| ) |
|
|
final |
Generates an unique identifier for current instance and store it
- Returns
- string
◆ generateUuid()
Galette\Util\Telemetry::generateUuid |
( |
string |
$type | ) |
|
|
final |
Generates an unique identifier and store it
- Parameters
-
string | $type | UUID type (either instance or registration) |
- Returns
- string
◆ getCount()
Galette\Util\Telemetry::getCount |
( |
string |
$table | ) |
|
Count
- Parameters
-
string | $table | Table to query |
- Returns
- integer
◆ getRegistrationDate()
Galette\Util\Telemetry::getRegistrationDate |
( |
| ) |
|
Get date of registration
- Returns
- string
◆ getRegistrationUuid()
Galette\Util\Telemetry::getRegistrationUuid |
( |
| ) |
|
|
final |
Get registration UUID
- Returns
- string
◆ getSentDate()
Galette\Util\Telemetry::getSentDate |
( |
| ) |
|
Get date telemetry has been sent
- Returns
- string
◆ getTelemetryInfos()
Galette\Util\Telemetry::getTelemetryInfos |
( |
| ) |
|
Grab telemetry information
- Returns
- array<string, array<string, string|array<string, string|array<string, string>>>>
◆ grabDbInfos()
Galette\Util\Telemetry::grabDbInfos |
( |
| ) |
|
Grab DB part information
- Returns
- array<string, string>
◆ grabGaletteInfos()
Galette\Util\Telemetry::grabGaletteInfos |
( |
| ) |
|
Grab Galette part information
- Returns
- array<string, string|array<string, string>>
◆ grabOsInfos()
Galette\Util\Telemetry::grabOsInfos |
( |
| ) |
|
Grab OS part information
- Returns
- array<string, string>
◆ grabPhpInfos()
Galette\Util\Telemetry::grabPhpInfos |
( |
| ) |
|
Grab PHP part information
- Returns
- array<string, string|array<string, string>>
◆ grabWebserverInfos()
Galette\Util\Telemetry::grabWebserverInfos |
( |
| ) |
|
Grab web server part information
- Returns
- array<string, string>
◆ isRegistered()
Galette\Util\Telemetry::isRegistered |
( |
| ) |
|
Is instance registered?
- Returns
- boolean
◆ isSent()
Galette\Util\Telemetry::isSent |
( |
| ) |
|
Does telemetry infos has been sent already?
- Returns
- boolean
◆ send()
Galette\Util\Telemetry::send |
( |
| ) |
|
Send telemetry information
- Returns
- boolean
◆ setQuick()
Galette\Util\Telemetry::setQuick |
( |
| ) |
|
Set quick mode Will set a short timeout on curl calls
- Returns
- self
◆ shouldRenew()
Galette\Util\Telemetry::shouldRenew |
( |
| ) |
|
Should telemetry information sent again?
- Returns
- bool
- Exceptions
-
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/Util/Telemetry.php