Johannes Meyer
49ebbc4cdb
Apply state overrides on demand instead of directly
...
Internally non-process children are only instantiated once.
This means when applying state overrides directly they're
used everywhere and do not differ between the containing
process. State overrides are now applied explicitly and
on demand, decoupling them from children.
2020-07-01 08:54:34 +02:00
Johannes Meyer
0c7fca926f
config: Use an extra line to store state overrides
...
Storing overrides as part of a node's name leads to way too complicated
code. A separate field is not only better for compatibility but also
more straightforward to process.
2020-06-26 14:08:05 +02:00
Christian Menapace
98b6b2c6d0
Add Service Override
2020-06-26 11:32:09 +02:00
Ravi Kumar Kempapura Srinivasa
e19612bd4a
Extend abstract isEmpty() method to check for empty nodes in child nodes
...
We need to check recurively whether the BP Nodes contatin only child BpNodes which are empty and set the entire tree to state NODE_EMPTY state in this case.
2020-05-11 11:45:17 +02:00
Ravi Kumar Kempapura Srinivasa
e533ff95f5
Introduce NODE_EMPTY state for empty nodes
...
An empty node state called `NODE_EMPTY` has been introduced with a value of 128 in class `Node`, and this state has been mapped to value *0* in structure `$stateToSortStateMap`.
2020-05-11 11:44:30 +02:00
Eric Lippmann
a06fba34b3
Remove abstract function Node::__construct()
2020-02-27 10:08:16 +01:00
Johannes Meyer
4e6e1f0819
Node: Add __unbound__ parent node in getPaths() if there are no parents
...
fixes #245
2020-02-26 13:47:24 +01:00
Eric Lippmann
a2854e8cf4
Use display_name as alias for host and service nodes
2020-02-05 15:01:22 +01:00
Dominik Seidel
8ef1dfcbdc
CLI: Add options --downtime-is-ok and --ack-is-ok
2020-02-05 15:01:22 +01:00
Johannes Meyer
eaf5b85538
Change how imported nodes are recognized
...
Since configurations are cached this cannot be done by using
a flag. Instead the rendering and path aggregation are now able
to distinguish nodes themselves.
2019-02-25 13:58:18 +01:00
Johannes Meyer
c19854d05c
TileRenderer: Make the navigation through imported nodes fluent
2019-02-22 12:26:24 +01:00
Johannes Meyer
e0529ee844
Revert "Node: Aggregate parents if none are registered yet"
...
This reverts commit d1f32c59f1 .
2019-02-22 12:26:24 +01:00
Johannes Meyer
00b88055f7
BpConfig: Delay processing of imported configurations
...
Solves the issue that two processes cannot import each other
2019-02-22 12:26:24 +01:00
Johannes Meyer
2123b41f83
Properly integrate imported nodes
...
* Fixed navigation flow
* Full tree rendering
2019-02-22 12:26:24 +01:00
Johannes Meyer
d880291c02
TreeRenderer: Restructure node layout
2019-02-22 12:26:24 +01:00
Johannes Meyer
505471c519
Node: Introduce $icon property
2019-02-22 12:26:24 +01:00
Johannes Meyer
d1f32c59f1
Node: Aggregate parents if none are registered yet
...
fixes #134
2019-02-19 11:02:08 +01:00
Johannes Meyer
19ae300aca
lib: Remove all traces of Icinga\Module\Businessprocess\Html
...
refs #130
2019-01-17 13:21:46 +01:00
Eric Lippmann
059a59b119
Support exporting to CSV, JSON and PDF
2018-08-01 13:12:08 +02:00
Thomas Gelf
98bd02c164
Node: clear missing when setting state
2017-02-20 15:01:10 +01:00
Thomas Gelf
5cbd46b6e3
Node: return myself in every path
...
fixes #96
2017-01-27 15:01:48 +01:00
Thomas Gelf
0c395cc005
DeleteNode: use parent, not path
...
fixes #94
2017-01-27 14:57:57 +01:00
Thomas Gelf
d87edba377
Just a couple of newlines to satisfy latest PSR2
...
...checks in phpcs
2017-01-11 23:56:17 +01:00
Thomas Gelf
22583aa083
BpConfig: renamed from BusinessProcess
2017-01-11 14:09:30 +01:00
Thomas Gelf
5443d73f08
Node: use concret implementation in type hint
2017-01-11 13:38:47 +01:00
Thomas Gelf
b3df39d1b0
NodeController: add business impact action
...
Show all paths to a specific node to visualize it's business impact
fixes #8573
2017-01-10 16:49:53 +01:00
Thomas Gelf
32f50c85cf
Node: add helpers related to deletion
2017-01-03 11:35:09 +01:00
Thomas Gelf
0aeb3183f4
Node: remove toLegacyConfigString
2016-12-09 14:11:56 +01:00
Thomas Gelf
a7e9d815eb
Node: try to avoid side-effects when...
...
...dealing with state mappings
2016-12-07 22:10:35 +01:00
Thomas Gelf
c11a181701
Process: add and use new form
2016-11-29 15:32:56 +01:00
Thomas Gelf
ca16f22a62
BusinessProcess/Nodes: some cleanup
2016-11-29 11:20:54 +01:00
Thomas Gelf
60b66e89b0
TreeRenderer: new renderer, LOTS of cleanup
2016-11-29 00:34:28 +01:00
Thomas Gelf
a00fdab37f
Cleanup, Url handling improvements, some helpers
2016-11-26 21:18:18 +01:00
Thomas Gelf
b8df6a8823
BpNode: rename child_nodes to childNode...
...
...and move method related to children from base Node
2016-11-24 02:40:01 +01:00
Thomas Gelf
4506181f0c
BusinessProcess,Node: new helper methods
...
Mostly (but not only) useful for tests
2016-11-23 20:51:39 +01:00
Thomas Gelf
afcf42e871
phpcs: some more
2016-11-23 15:17:25 +01:00
Thomas Gelf
95d8696705
Node: alllow to get any state name, fix typo
2016-11-23 15:17:25 +01:00
Thomas Gelf
0b6cf208f0
Node: fix hasMissingChildren()
2016-11-23 15:17:25 +01:00
Thomas Gelf
93fff13209
(Bp)Node: add get/hasMissingChildren method
2016-11-23 15:17:25 +01:00
Thomas Gelf
63ad013c5a
Node: rename hasProblems to isProblem
2015-11-19 14:49:45 +01:00
Thomas Gelf
0f3882e8b2
Node::hasProblems(): new method
2015-11-19 14:49:35 +01:00
Thomas Gelf
ae4cf396dc
node/simulate: link to overlay
2015-10-07 17:10:26 +02:00
Thomas Gelf
944ec1c880
Node: remove duplicate method
2015-10-06 09:03:10 +02:00
Thomas Gelf
675b74ada9
Node: provide generic helpers
2015-10-06 08:59:22 +02:00
Thomas Gelf
e80f7765c8
Node: use new helpers, allow to override maps
2015-10-05 15:58:53 +02:00
Thomas Gelf
93cede7a32
Node: use available icinga state constants
2015-10-05 13:35:09 +02:00
Thomas Gelf
472e31e55e
Node: move logic to new getStateClassNames() method
2015-10-05 12:38:12 +02:00
Thomas Gelf
64bab3f8da
Node: remove implementation-specific logic
2015-10-05 12:34:47 +02:00
Thomas Gelf
a97073334c
BpNode: move state-related logic to base Node
2015-10-05 08:42:59 +02:00
Thomas Gelf
bf69d5298a
Node: show timeSince for all node types
2015-10-02 08:32:16 +02:00