def METHOD_NAME(self, entity: Entity) -> bool:
    """Return whether to include the entity in the measurement."""
    if entity["status"] not in self._parameter("status"):
        return False
    min_status_duration = int(cast(int, self._parameter("min_status_duration") or 0))
    status_start = self.__metric_status_start(entity["status_start_date"])
    if not status_start and min_status_duration > 0:
        return False
    if status_start and (now() - status_start).days < min_status_duration:
        return False
    return True