def aggregate(self, this, metrics, by=None, having=None):
    return Aggregation(this, metrics, by=by, having=having)
def aggregate(self, this, metrics, by=None, having=None):
    return Aggregation(this, metrics, by=by, having=having)