modules/Trackers/monitor/BlankMonitor.php
\BlankMonitor
Package:
- Parent(s)
- \Monitor < \Trackable
Properties

$active= ''
inheritedInherited from:
\Monitor::$$active
Details
- Type
- n/a
- Inherited_from
- \Monitor::$$active

$cachedStores= ''
inheritedInherited from:
\Monitor::$$cachedStores
Details
- Type
- n/a
- Inherited_from
- \Monitor::$$cachedStores

$date_end= ''
inheritedInherited from:
\Monitor::$$date_end
Details
- Type
- n/a
- Inherited_from
- \Monitor::$$date_end

$date_start= ''
inheritedInherited from:
\Monitor::$$date_start
Details
- Type
- n/a
- Inherited_from
- \Monitor::$$date_start

$dirty= 'false'
inheritedInherited from:
\Monitor::$$dirty
Default value
falseDetails- Type
- n/a
- Inherited_from
- \Monitor::$$dirty

$enabled= 'true'
inheritedInherited from:
\Monitor::$$enabled
Default value
trueDetails- Type
- n/a
- Inherited_from
- \Monitor::$$enabled

$metrics= ''
inheritedInherited from:
\Monitor::$$metrics
Details
- Type
- n/a
- Inherited_from
- \Monitor::$$metrics

$metricsFile= ''
inheritedInherited from:
\Monitor::$$metricsFile
Details
- Type
- n/a
- Inherited_from
- \Monitor::$$metricsFile

$monitor_id= ''
inheritedInherited from:
\Monitor::$$monitor_id
Details
- Type
- n/a
- Inherited_from
- \Monitor::$$monitor_id

$name= ''
inheritedInherited from:
\Monitor::$$name
Details
- Type
- n/a
- Inherited_from
- \Monitor::$$name

$round_trips= ''
inheritedInherited from:
\Monitor::$$round_trips
Details
- Type
- n/a
- Inherited_from
- \Monitor::$$round_trips

$seconds= ''
inheritedInherited from:
\Monitor::$$seconds
Details
- Type
- n/a
- Inherited_from
- \Monitor::$$seconds

$session_id= ''
inheritedInherited from:
\Monitor::$$session_id
Details
- Type
- n/a
- Inherited_from
- \Monitor::$$session_id

$stores= ''
inheritedInherited from:
\Monitor::$$stores
Details
- Type
- n/a
- Inherited_from
- \Monitor::$$stores

$table_name= ''
inheritedInherited from:
\Monitor::$$table_name
Details
- Type
- n/a
- Inherited_from
- \Monitor::$$table_name
Methods

Monitor(
$name
=
'', $monitorId
=
'', $metadata
=
'', $store
=
''
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $name | ||
| $monitorId | ||
| $metadata | ||
| $store |

getMetrics(
)
:
ArraygetMetrics Returns Array of metric instances defined for monitor instance
Returns
| Type | Description |
|---|---|
| Array | of metric instances defined for monitor instance |

getStore(
\$store $store
)
:
\AngetStore 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.
Parameters
Returns
Throws
| 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(
)
:
ArraygetStores Returns Array of store names defined for monitor instance
Returns
| Type | Description |
|---|---|
| Array | of store names defined for monitor instance |

getValue(
$name
)
:
void
inherited
Inherited from:
\Monitor::getValue()
Parameters
| Name | Type | Description |
|---|---|---|
| $name |

isDirty(
)
:
\$dirty
inherited
isDirty Returns if the monitor has data that needs to be saved
Inherited from: \Monitor::isDirty()
Returns
| Type | Description |
|---|---|
| \$dirty | boolean |

save(
)
:
voidsave This method retrieves the Store instances associated with monitor and calls the flush method passing with the montior ($this) instance.

setEnabled(
$enable
=
true
)
:
void
inherited
Inherited from:
\Monitor::setEnabled()
Parameters
| Name | Type | Description |
|---|---|---|
| $enable |

setValue(
\$name $name, \$value $value
)
:
voidsetValue Sets the value defined in the monitor's metrics for the given name
Parameters
Throws
| 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 |