

@staticmethod
def _extract_when(body):
    'Extract the generated datetime from the notification.'
    when = body.get('timestamp', body.get('_context_timestamp'))
    if when:
        return Datatype.datetime.convert(when)
    return utcnow()

dataset/ETHPy150Open openstack/stacktach-stackdistiller/stackdistiller/distiller.py EventDefinition._extract_when/original