$conf
$conf :
class AnemometerModel
handle getting values from the conf file such as datasources and selecting and updating queries from the query_review table
set_tables(string $fact, string $dimension)
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.
string | $fact | The name of the fact table |
string | $dimension | The name of the dimension table |
get_query_samples(string $checksum, integer $limit = 1, integer $offset) : \MySQLi_Result
Retrieve query samples from the history table, ordered from most recent
string | $checksum | The checksum to look up |
integer | $limit | The number of sample to get (default 1) |
integer | $offset | The starting record number |
The result handle
exec_external_script(string $script, string $input) : string
Open a two-way communication with an external script. Used to send data to the program on STDIN and collect output on STDOUT.
string | $script | The script to invoke |
string | $input | The input to send to the script on STDIN |
The output from the script