Eric Lippmann
272e791390
License source files as GPL-3.0-or-later
...
Add SPDX license headers and mark source files as GPL-3.0-or-later to
preserve the option to relicense under later GPL versions.
2026-03-11 14:03:05 +01:00
Sukhwinder Dhillon
89c0bb0686
Models: Add property type hints so that phpstan can scan correctly
2024-03-13 16:34:21 +01:00
Johannes Meyer
87db46023c
Properly visualize unreachable hosts
...
* Lists show it in their visual and title area
* The tatical view includes a slice for them
* State badges (list footers, hostgroups) also show a badge
2023-07-21 10:24:10 +02:00
Johannes Meyer
b2bbe2c0d0
Drop dead code trying to visualize unreachable hosts
2023-07-21 10:24:10 +02:00
Johannes Meyer
068377e4c6
Don't require relation state in state summary queries
...
Lets the models add the relation on their own, using
`utilize()` as the relation is only needed inside
expressions.
2022-06-02 14:24:51 +02:00
Eric Lippmann
a9ae51bd9b
State summaries: Only select summary columns by default
...
Previously, all columns, including the parent model columns,
were SELECTed, which would require adding all non-aggregated
columns to the GROUP BY clause when using PostgreSQL.
Now only the aggregated columns are SELECTed by default.
2022-05-24 16:04:23 +02:00
Eric Lippmann
802d222955
State summaries: Don't sort by default
...
Sorting the summaries (by host or service name) makes no sense and
even fails for PostgreSQL as it would require adding the column to
the GROUP BY clause.
2022-05-24 16:04:23 +02:00
Johannes Meyer
5e441c93a0
Add license note to every file
2020-03-13 10:36:24 +01:00
Johannes Meyer
1bfbb12e1b
Hoststatesummary: Don't count acknowledgments if their can't be any
2020-03-03 14:28:24 +01:00
Johannes Meyer
6fbad0b502
Hoststatesummary: Count hosts, not their states
2020-03-03 14:28:24 +01:00
Johannes Meyer
9824873cd9
HoststateSummary: Don't exceed the 120 character line limit
2020-01-17 16:40:26 +01:00
Eric Lippmann
08c5cfde16
HoststateSummary: Add feature status columns
2020-01-08 13:57:59 +01:00
Eric Lippmann
0c3fc9f380
HoststateSummary: Add cnt for ack/unacked
2020-01-08 09:59:18 +01:00
Eric Lippmann
badac1823f
HoststateSummary: Remove superfluous comma
2020-01-08 09:54:37 +01:00
Eric Lippmann
c94b5f3685
HoststateSummary: Add active and passive check cnt
2020-01-08 09:34:20 +01:00
Johannes Meyer
8f621d095d
Introduce class HoststateSummary
2019-11-05 12:37:34 +01:00