Class for building report sql queries. More...
Public Member Functions | |
__construct ($db_table, $options) | |
Create new report query builder. | |
build_alert_summary_query ($fields=null) | |
Create the base of the query to use when calculating alert summary. | |
Data Fields | |
$host_hostgroup | |
array(host => array(hgrop1, hgroupx. | |
$service_servicegroup | |
array(service => array(sgroup1, sgroupx. | |
Protected Attributes | |
$db_table = false | |
The table we'll be operating on. | |
$options = false | |
An options object (or array) to work with. |
Class for building report sql queries.
Should eventually be shared between summary and status reports. Isn't currently.
Report_query_builder_Model::__construct | ( | $ | db_table, | |
$ | options | |||
) |
Create new report query builder.
$db_table | The table name | |
$options | The options object to work with |
Report_query_builder_Model::build_alert_summary_query | ( | $ | fields = null |
) |
Create the base of the query to use when calculating alert summary.
Each caller is responsible for adding sorting and limit options as necessary.
$fields | string Comma separated list of database columns the caller needs |
Report_query_builder_Model::$host_hostgroup |
array(host => array(hgrop1, hgroupx.
..))
Report_query_builder_Model::$service_servicegroup |
array(service => array(sgroup1, sgroupx.
..))