<commit_before>package de.iteratec.osm.report.external

class JobHealthReportJob {

    JobHealthReportService jobHealthReportService

    static triggers = {
        /** Every five minutes. */
        cron(name: 'JobHealthReport', cronExpression: '0 */5 * ? * * *')
    }

    def execute() {
        Date date = new Date()
        jobHealthReportService.reportJobHealthStatusToGraphite(date)
    }
}<commit_msg>Just report JobHealthMetrics in PROD environment<commit_after>package de.iteratec.osm.report.external

import grails.util.Environment

class JobHealthReportJob {

    JobHealthReportService jobHealthReportService

    static triggers = {
        /** Every five minutes. */
        cron(name: 'JobHealthReport', cronExpression: '0 */5 * ? * * *')
    }

    def execute() {
        if (Environment.getCurrent() == Environment.PRODUCTION) {
            Date date = new Date()
            jobHealthReportService.reportJobHealthStatusToGraphite(date)
        }
    }
}
{'fraction_non_alphanumeric': 0.1023541453428864, 'fraction_numerical': 0.0040941658137154556, 'mean_word_length': 2.9595141700404857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '18606', 'n_tokens_mistral': 281, 'n_tokens_neox': 267, 'n_words': 56}