def METHOD_NAME(self, template, dashboard=False):
    result = template.graph({
        "name": "PostgreSQL Autovacuum: Count of Autovacuum Workers",
        "items": [{
            "key": self.right_type(self.key_count),
            "color": "87C2B9",
            "drawtype": 2
        }]
    })
    if not dashboard:
        return result
    else:
        return [{
            "dashboard": {"name": "PostgreSQL Autovacuum: Count of Autovacuum Workers",
                          "page": ZbxTemplate.dashboard_page_overview["name"],
                          "size": ZbxTemplate.dashboard_widget_size_medium,
                          "position": 5}
        }]