Commit Graph

178 Commits

Author SHA1 Message Date
Thomas Gelf ecf84077e5 Ido\CommentQuery: add host/service shortcut column 2014-06-20 12:23:23 +02:00
Thomas Gelf 8185f8b8a9 Ido\EventHistoryQuery: fix it to fit new filters
Works for single objects, still some work required for "generic"
history.
2014-06-17 14:02:54 +00:00
Thomas Gelf dd595a2ad3 Ido/EventHistoryQuery: obsolete raw_timestamp
This was never thought to be used in frontends. Frontend code ALWAYS
needs to work with unix timestamps, raw timestamps are used internally
(e.g. between View and Query) to achieve better search and sort
performance.
2014-06-17 12:47:02 +00:00
Thomas Gelf dab90d6c4a GroupsummaryQuery: distinct columns/desiredColumns
I guess this needs some more investigation, desiredColumns are the
ones the user asked for ([alias => ]column), with column being once
again an alias in the "real" query. Alias resolution used to work
better long time ago, we should reflect on this.
2014-06-17 12:42:50 +00:00
Thomas Gelf 027ef6ede3 Ido\Query\*historyQuery: subqueries join objects
Each of our history subqueries should be able to join main object
tables on their own for performance reasons.
2014-06-17 12:36:32 +00:00
Thomas Gelf 7cd696b31b Data/queries: adjust to fit new filters
Slight changes to get our queries working with new filter implementation.
2014-06-17 12:34:02 +00:00
Thomas Gelf 4c76f5ab02 Ido/Query: small fixes
Replaced baseQuery in ContactGroupQuery, added short host/service
columns to CustomvarQuery.
2014-06-13 10:44:03 +00:00
Thomas Gelf e1421c0d7e Ido\StatusQuery: make sure performance killers...
...can no longer be reached. Column-ignorant uses still stumbled over
this. Left the code there as we should take a decision on how to approach
this.
2014-06-06 07:10:52 +00:00
Thomas Gelf 1c3ab74e80 IdoQuery: fit new DbQuery implementation
Just a bunch of small changes, more to come. Fixes customvar handling
and is now able to handle the new Filter implementation.

refs #6418
2014-06-06 06:57:28 +00:00
Thomas Gelf f1e73c5fc5 Data\Db\DbQuery: forgot to rename once
refs #6418
2014-06-06 06:52:48 +00:00
Thomas Gelf 3adf7752c4 Data\Db\DbQuery: rename also in monitoring module
refs #6418
2014-06-06 06:51:11 +00:00
Thomas Gelf bfe6a1593a Merge remote-tracking branch 'origin/master' into feature/query-interfaces-6018 2014-06-06 05:32:54 +00:00
Thomas Gelf 7a0173e2fb monitoring/IdoQuery:
IDO version is cached in a session namespace. This fails where you
are using multiple IDO backends with different versions. We still have
no backend-specific base class where we could handle this, so for now
I continue to do so in the IdoQuery.

This patch creates one namespace per Host/dbname combination.
2014-05-28 09:39:38 +00:00
Thomas Gelf 12b57c6d95 Merge remote-tracking branch 'origin/master' into feature/query-interfaces-6018
Conflicts:
	modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactgroupQuery.php
	modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php
	modules/monitoring/library/Monitoring/Backend/Ido/Query/StatusQuery.php
	modules/monitoring/library/Monitoring/Controller.php
2014-05-20 23:15:11 +00:00
Thomas Gelf 31fa794440 monitoring/ido: implement IDO version support
We want to make use of new IDO features without breaking compatibility.
This is a quickfix as otherwise we would currently break everything
below 1.10. Code contains a few TODOs as this needs improvement.
2014-05-20 20:36:39 +00:00
Michael Friedrich 9fbdb65a4b Add check source to host/service details
refs #5814
2014-05-20 20:07:09 +02:00
Thomas Gelf e6d80ae1f6 IDO Queries: performance quickfixes
Will be obsoleted by the new filter implementation, but for now it
helps a little bit
2014-05-20 13:27:58 +00:00
Thomas Gelf 820b6b7a8d Data\BaseQuery: rename to Data\SimpleQuery
BaseQuery should no longer be abstract but be usable as is as soon as
we stripped ResultSet-specific tasks. As "Base" suggests something that
must be extended, the name no longer fits. So this is SimpleQuery right
now.
2014-05-07 11:55:35 +00:00
Eric Lippmann d87788b9c1 Merge branch 'master' into feature/query-interfaces-6018
Conflicts:
	modules/monitoring/library/Monitoring/Backend/Ido/Query/ContactgroupQuery.php
2014-05-06 18:45:12 +02:00
Thomas Gelf 54175f98bf Fix wrong contactgroup service column and make better use of MySQL indexes 2014-04-17 16:14:57 +00:00
Eric Lippmann 62e044d888 IdoQuery: Move resolveColumns() to the columns() function
Since the BaseQuery no longer allows passing the columns to select via
its the constructor, the columns are resolved when set by the
columns() function.
2014-04-16 10:06:44 +02:00
Eric Lippmann eeadc17a6e StatusQuery: Rename baseQuery to select 2014-04-15 18:12:56 +02:00
Eric Lippmann 734c329caa StatusSummaryQuery: Rename baseQuery to select 2014-04-15 18:12:00 +02:00
Eric Lippmann 2ba1ef4793 StateHistorySummaryQuery: Rename baseQuery to select 2014-04-15 18:11:09 +02:00
Eric Lippmann a30d1cdb2f ServicegroupQuery: Rename baseQuery to select 2014-04-15 18:10:30 +02:00
Eric Lippmann ac5edc153a RuntimesummaryQuery: Rename baseQuery to select 2014-04-15 18:09:54 +02:00
Eric Lippmann 0adbb6a44e NotificationQuery: Rename baseQuery to select 2014-04-15 18:09:08 +02:00
Eric Lippmann 687fa09f7c NotificationhistoryQuery: Rename baseQuery to select 2014-04-15 18:07:34 +02:00
Eric Lippmann cb812b59a8 HoststatusQuery: Rename baseQuery to select 2014-04-15 18:06:37 +02:00
Eric Lippmann 8b471e29e5 HostgroupQuery: Rename baseQuery to select 2014-04-15 18:02:03 +02:00
Eric Lippmann 32fa7b314c GroupsummaryQuery: Rename baseQuery to select 2014-04-15 18:01:10 +02:00
Eric Lippmann 30e649eeb4 EventHistoryQuery: Rename baseQuery to select 2014-04-15 17:59:55 +02:00
Eric Lippmann 67ce376ef0 DowntimeQuery: Rename baseQuery to select 2014-04-15 17:58:06 +02:00
Eric Lippmann 64bee6a414 CustomvarQuery: Rename baseQuery to select 2014-04-15 17:57:12 +02:00
Eric Lippmann 22fa833836 ContactQuery: Rename baseQuery to select 2014-04-15 17:56:31 +02:00
Eric Lippmann c2d633ac49 ContactgroupQuery: Rename baseQuery to select 2014-04-15 17:55:13 +02:00
Eric Lippmann 5caffa78e2 CommentQuery: Rename baseQuery to select 2014-04-15 17:53:07 +02:00
Johannes Meyer b168cf878d Fix type specification in DowntimestarthistoryQuery
refs #4190
2014-04-01 11:44:23 +02:00
Thomas Gelf 3b2272f825 Customvars are in customvariablestatus, "bugfix" in 1.10 has been reverted 2014-03-21 10:32:27 +00:00
Thomas Gelf 6466c768be Just whitespace 2014-03-09 22:48:38 +01:00
Thomas Gelf ad432217b2 Fix downtime scheduled start/end sort error 2014-03-09 22:35:33 +01:00
Thomas Gelf bf66271e49 Still downtimes 2014-03-09 22:32:40 +01:00
Thomas Gelf 88859cb838 The next fat package: downtimes, everywhere 2014-03-09 21:58:01 +01:00
Thomas Gelf 2f61075260 More comment query cleanup and fix a typo 2014-03-09 20:05:59 +01:00
Thomas Gelf 63fd074a4f Comments are still messy, clean up and fix adding / removing them 2014-03-09 19:29:23 +01:00
Thomas Gelf a87925bbf6 Refactored notifications for object detail view 2014-03-08 21:02:22 +01:00
Thomas Gelf 740df4ccac Cleaning up object downtimes. What a mess... :( 2014-03-08 18:28:19 +01:00
Johannes Meyer e8a626e896 Change the way how boxed status information is presented to the user 2014-03-07 16:43:41 +01:00
Alexander Klimov 45520fe2d6 Remove hardcoded filter in state history summary query 2014-03-07 15:04:43 +01:00
Johannes Meyer 067fa02263 Split and merge status summary in tactical overview 2014-03-07 08:59:20 +01:00