Email notification by tag condition

Is it possible that you could make a conditional automatic email in report? Something like:

IF Tag >/= 3 in last 15 minutes, add Cell # to report, repeat for all machines
IF tag on all cells is = 0 for last 15 minutes, no report is sent out

A quick and dirty example, as I have no idea how your tags are laid out of how the report is generated.

tagPaths = ['[provider]path/to/tag1',
            '[provider]path/to/tag2',
            '[provider]path/to/tag3',
            '[provider]path/to/tag4',
            '[provider]path/to/tag5'
           ]

# Generate a list of lists containing tag paths and values where the tag value is >= 3
tagData = [[path, tag.value] for path, tag in zip(tagPaths, system.tag.readBlocking(tagPaths)) if tag.value >= 3]

if len(tagData) > 0:
	doReport(tagData)