def METHOD_NAME(self, template, dashboard=False):
    result = template.trigger({
        "name": "PostgreSQL Prepared Transactions: prepared transaction is too old on {HOSTNAME}",
        "expression": "{#TEMPLATE:" + self.key_prepared["key"] + ".last()}&gt;" +
                      self.plugin_macros["max_prepared_transaction_time"][0][1]
    })
    return result