12 Commits

Author SHA1 Message Date
Eric Lippmann
00985429c5 Fix PSR-12 violations 2024-10-22 14:31:14 +02:00
Sukhwinder Dhillon
a850ff13d7 IcingadbBackend: Remove isAvailable method and property
As it is only used internally now, it is no more required
2024-01-16 10:27:10 +01:00
Sukhwinder Dhillon
2461724271 IcingadbBackend: Drop icingadb restriction check and only check for director restrictions
Monitoring does the same.
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
d30a56a385 Fix phpcs issues 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
f52d05de31 IcingadbBackend: Apply director restrictions properly 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
eeaf87741a IcingadbBackend: Always check if module is available 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
677f5dc72a Monitoring/IcingadbBackend: Handle if $hostName or $serviceName is null 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
956cce84cb Cleanup code
- Remove superfluous methods/usages
- Simplify the code
2024-01-16 09:51:44 +01:00
Sukhwinder Dhillon
8ea8a62ef4 BackendInterface: Add phpDocs 2024-01-15 16:25:05 +01:00
Sukhwinder Dhillon
604667ca65 Relocate Backend classes 2024-01-15 16:25:02 +01:00
Sukhwinder Dhillon
9baa3c4341 Remove redudant class MonitorBackendMonitoring and adjuct code accordigly
- Use class `Monitoring` instead
- Remove not in use methods from `MonitorBackend` interface and from classes that implements this interface
- Add param types and return type hint to methods
2024-01-15 16:24:27 +01:00
Thomas Gelf
40254714b8 Permissions: refactor, fix monitoring module checks
fixes #2712
2023-02-23 11:51:53 +01:00