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 |