class AnemometerModel
handle getting values from the conf file such as datasources and selecting and updating queries from the query_review table
Located in /AnemometerModel.php (line 16)
Constructor. Initialize the model object
Query the database and return true if a given checksum exists
Try to connect to the datasource, throw an exception on failure
Get the create table definitions for the query
Given a data source name, get the properties for it.
Get the list of names for the configured data sources
return the default report action name; usually either report or graph_search
try to get the explain plan for a query
get the field names for the given report
invoke pt-query-advisor and get its output
given a checksum, return the full database row from the fact table for it.
Retrieve query samples from the history table, ordered from most recent
get the full config information for the given report.
get the default search values for the specified report type
Return a list of reviewers defined by the config file
return the list of review types. This is a configurable list of short text statuses that can describe the query.
Get the table status info for the given query
invoke pt-visual-explain and get its output
Create a new query explainer object for the given query sample
sets the currently active datasource.
set the current fact and dimension table. That is the query_review and query_review_history tables. This is used when we select samples or update a query by its checksum.
Preform an update query on the given checksum
Documentation generated on Mon, 12 Mar 2012 11:59:41 -0700 by phpDocumentor 1.4.4