'Serialize the object to the wire format.'

def to_notification_event_type_field(self):

    s = ('%s.%s' % (self.object, self.action))
    if self.phase:
        s += ('.%s' % self.phase)
    return s
