modules/Trackers/monitor/tracker_queries_monitor.php
\tracker_queries_monitor
- Parent(s)
- \Monitor < \Trackable
Properties
$active= ''
- Type
- n/a
- Inherited_from
- \Monitor::$$active
$cachedStores= ''
- Type
- n/a
- Inherited_from
- \Monitor::$$cachedStores
$date_end= ''
- Type
- n/a
- Inherited_from
- \Monitor::$$date_end
$date_start= ''
- Type
- n/a
- Inherited_from
- \Monitor::$$date_start
$dirty= 'false'
false
Details- Type
- n/a
- Inherited_from
- \Monitor::$$dirty
$enabled= 'true'
true
Details- Type
- n/a
- Inherited_from
- \Monitor::$$enabled
$metrics= ''
- Type
- n/a
- Inherited_from
- \Monitor::$$metrics
$metricsFile= ''
- Type
- n/a
- Inherited_from
- \Monitor::$$metricsFile
$monitor_id= ''
- Type
- n/a
- Inherited_from
- \Monitor::$$monitor_id
$name= ''
- Type
- n/a
- Inherited_from
- \Monitor::$$name
$round_trips= ''
- Type
- n/a
- Inherited_from
- \Monitor::$$round_trips
$seconds= ''
- Type
- n/a
- Inherited_from
- \Monitor::$$seconds
$session_id= ''
- Type
- n/a
- Inherited_from
- \Monitor::$$session_id
$stores= ''
- Type
- n/a
- Inherited_from
- \Monitor::$$stores
$table_name= ''
- Type
- n/a
- Inherited_from
- \Monitor::$$table_name
Methods
Monitor(
$name
=
'', $monitorId
=
'', $metadata
=
'', $store
=
''
)
:
void
Name | Type | Description |
---|---|---|
$name | ||
$monitorId | ||
$metadata | ||
$store |
clear(
)
:
void
clear This function clears the metrics data in the monitor instance
Inherited from: \Monitor::clear()getMetrics(
)
:
Array
getMetrics Returns Array of metric instances defined for monitor instance
Inherited from: \Monitor::getMetrics()Type | Description |
---|---|
Array | of metric instances defined for monitor instance |
getStore(
\$store $store
)
:
\An
getStore This method checks if the Store implementation has already been instantiated and will return the one stored; otherwise it will create the Store implementation and save it to the Array of Stores.
Inherited from: \Monitor::getStore()Name | Type | Description |
---|---|---|
$store | \$store | The name of the store as defined in the 'modules/Trackers/config.php' settings |
Type | Description |
---|---|
\An | instance of a Store implementation |
Exception | Description |
---|---|
\Exception | Thrown if $store class cannot be loaded |
getStores(
)
:
Array
getStores Returns Array of store names defined for monitor instance
Inherited from: \Monitor::getStores()Type | Description |
---|---|
Array | of store names defined for monitor instance |
getValue(
$name
)
:
void
Name | Type | Description |
---|---|---|
$name |
isDirty(
)
:
\$dirty
isDirty Returns if the monitor has data that needs to be saved
Inherited from: \Monitor::isDirty()Type | Description |
---|---|
\$dirty | boolean |
save(
\$flush $flush
=
true
)
:
void
save This method retrieves the Store instances associated with monitor and calls the flush method passing with the montior ($this) instance.
Name | Type | Description |
---|---|---|
$flush | \$flush | boolean parameter indicating whether or not to flush the instance data to store or possibly cache |
setEnabled(
$enable
=
true
)
:
void
Name | Type | Description |
---|---|---|
$enable |
setValue(
\$name $name, \$value $value
)
:
void
setValue Sets the value defined in the monitor's metrics for the given name
Inherited from: \Monitor::setValue()Name | Type | Description |
---|---|---|
$name | \$name | String value of metric name |
$value | \$value | Mixed value |
Exception | Description |
---|---|
\Exception | Thrown if metric name is not configured for monitor instance |