def METHOD_NAME(self, metric_type, metric_name, metric_value, tags):
    if metric_type in [GAUGE, COUNT]:
        getattr(self, metric_type)(metric_name, metric_value, tags=tags, hostname=self._config.hostname)
    else:
        self.log.warning("Unknown metric type `%s` for metric `%s`", metric_type, metric_name)