'Initialize the AlertInstance
:returns: twilio.rest.monitor.v1.alert.AlertInstance
:rtype: twilio.rest.monitor.v1.alert.AlertInstance'

def __init__(self, version, payload, sid=None):

    super(AlertInstance, self).__init__(version)
    self._properties = {'account_sid': payload['account_sid'], 'alert_text': payload['alert_text'], 'api_version': payload['api_version'], 'date_created': deserialize.iso8601_datetime(payload['date_created']), 'date_generated': deserialize.iso8601_datetime(payload['date_generated']), 'date_updated': deserialize.iso8601_datetime(payload['date_updated']), 'error_code': payload['error_code'], 'log_level': payload['log_level'], 'more_info': payload['more_info'], 'request_method': payload['request_method'], 'request_url': payload['request_url'], 'resource_sid': payload['resource_sid'], 'sid': payload['sid'], 'url': payload['url'], 'request_variables': payload.get('request_variables'), 'response_body': payload.get('response_body'), 'response_headers': payload.get('response_headers')}
    self._context = None
    self._solution = {'sid': (sid or self._properties['sid'])}
