def METHOD_NAME(self, template, dashboard=False):
    if not dashboard:
        return template.item({
            "key": self.right_type(self.key, "xid_age"),
            "name": "PostgreSQL Transactions: Age of the Oldest XID",
            "delay": self.plugin_config("interval"),
            "value_type": Plugin.VALUE_TYPE.numeric_unsigned
        }) + template.item({
            "key": self.right_type(self.key, "transaction_time"),
            "name": "PostgreSQL Transactions: the Oldest Transaction Running Time in sec",
            "delay": self.plugin_config("interval"),
            "units": Plugin.UNITS.s
        }) + template.item({
            "key": self.right_type("pgsql.parallel{0}", "queries"),
            "name": "PostgreSQL Transactions: Number of Parallel Queries Being Executed Now",
            "delay": self.plugin_config("interval"),
            "value_type": Plugin.VALUE_TYPE.numeric_unsigned
        })
    else:
        return [{
            "dashboard": {"name": self.right_type(self.key, "xid_age"),
                          "page": ZbxTemplate.dashboard_page_transactions["name"],
                          "size": ZbxTemplate.dashboard_widget_size_medium,
                          "position": 1}
        },
            {
                "dashboard": {"name": self.right_type(self.key, "transaction_time"),
                              "page": ZbxTemplate.dashboard_page_transactions["name"],
                              "size": ZbxTemplate.dashboard_widget_size_medium,
                              "position": 2}
            }]