\Monitor_Views_Abstract

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
fetchMonitorTagId()
fetchMetric()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

fetchMonitorTagId()

fetchMonitorTagId(array  $match) : NULL|\Number

Returns monitor-tag id from given information in $match.

$match may contain id or name of monitor-tag.

It checks following keys:

  • $match['tagId']: returns $match['tagId'] if exist.
  • $match['tagName']: returns id of a tag which its name is equal with $match['tagName'].
  • $match['tag']: If $match['tag'] is a number returns $match['tag'] as result else returns id of a tag which its name is equal with $match['tag'].

If none of mentioned values are existed or there is no tag with given name returns null.

Parameters

array $match

Returns

NULL|\Number

fetchMetric()

fetchMetric(array  $match) : NULL|\Monitor_Metric

Returns monitor-metric by using given information in $match.

$match may contains id or name of monitor-metric.

It checks following keys:

  • $match['metricId']: returns metric with id $match['metricId'] if exist.
  • $match['metricName']: returns metric which its name is equal with $match['metricName'].
  • $match['metric']: If $match['metric'] is a number returns metric with id $match['metricId'] as result else returns metric which its name is equal with $match['metric'].

If none of mentioned values are existed or there is no metric with given name returns null.

Parameters

array $match

Returns

NULL|\Monitor_Metric