def METHOD_NAME(self, resource):
    resource_metric = resource.setdefault('c7n.metrics', {})
    resource_name = self.manager.resource_type.get_metric_resource_name(resource)
    metric = self.resource_metric_dict.get(resource_name)
    if not metric and not self.missing_value:
        return False
    if not metric:
        metric_value = self.missing_value
    else:
        metric_value = float(list(metric["points"][0]["value"].values())[0])
    resource_metric[self.c7n_metric_key] = metric
    matched = self.op(metric_value, self.value)
    return matched