def get_expectation_suite(self, discard_failed_expectations=True, discard_result_format_kwargs=True, discard_include_config_kwargs=True, discard_catch_exceptions_kwargs=True, suppress_warnings=False, suppress_logging=False):
    'Returns _expectation_config as a JSON object, and perform some cleaning along the way.\n\n        Args:\n            discard_failed_expectations (boolean):                 Only include expectations with success_on_last_run=True in the exported config.  Defaults to `True`.\n            discard_result_format_kwargs (boolean):                 In returned expectation objects, suppress the `result_format` parameter. Defaults to `True`.\n            discard_include_config_kwargs (boolean):                 In returned expectation objects, suppress the `include_config` parameter. Defaults to `True`.\n            discard_catch_exceptions_kwargs (boolean):                 In returned expectation objects, suppress the `catch_exceptions` parameter.  Defaults to `True`.\n            suppress_warnings (boolean):                 If true, do not include warnings in logging information about the operation.\n            suppress_logging (boolean):                 If true, do not create a log entry (useful when using get_expectation_suite programmatically)\n\n        Returns:\n            An expectation suite.\n\n        Note:\n            get_expectation_suite does not affect the underlying expectation suite at all. The returned suite is a              copy of _expectation_suite, not the original object.\n        '
    expectation_suite = copy.deepcopy(self._expectation_suite)
    expectations = expectation_suite.expectations
    discards = defaultdict(int)
    if discard_failed_expectations:
        new_expectations = []
        for expectation in expectations:
            if (expectation.success_on_last_run is False):
                discards['failed_expectations'] += 1
            else:
                new_expectations.append(expectation)
        expectations = new_expectations
    message = ('\t%d expectation(s) included in expectation_suite.' % len(expectations))
    if ((discards['failed_expectations'] > 0) and (not suppress_warnings)):
        message += (' Omitting %d expectation(s) that failed when last run; set discard_failed_expectations=False to include them.' % discards['failed_expectations'])
    for expectation in expectations:
        expectation.success_on_last_run = None
        if discard_result_format_kwargs:
            if ('result_format' in expectation.kwargs):
                del expectation.kwargs['result_format']
                discards['result_format'] += 1
        if discard_include_config_kwargs:
            if ('include_config' in expectation.kwargs):
                del expectation.kwargs['include_config']
                discards['include_config'] += 1
        if discard_catch_exceptions_kwargs:
            if ('catch_exceptions' in expectation.kwargs):
                del expectation.kwargs['catch_exceptions']
                discards['catch_exceptions'] += 1
    settings_message = ''
    if ((discards['result_format'] > 0) and (not suppress_warnings)):
        settings_message += ' result_format'
    if ((discards['include_config'] > 0) and (not suppress_warnings)):
        settings_message += ' include_config'
    if ((discards['catch_exceptions'] > 0) and (not suppress_warnings)):
        settings_message += ' catch_exceptions'
    if (len(settings_message) > 1):
        settings_message += ' settings filtered.'
    expectation_suite.expectations = expectations
    if (not suppress_logging):
        logger.info((message + settings_message))
    return expectation_suite
Returns _expectation_config as a JSON object, and perform some cleaning along the way.

Args:
    discard_failed_expectations (boolean):                 Only include expectations with success_on_last_run=True in the exported config.  Defaults to `True`.
    discard_result_format_kwargs (boolean):                 In returned expectation objects, suppress the `result_format` parameter. Defaults to `True`.
    discard_include_config_kwargs (boolean):                 In returned expectation objects, suppress the `include_config` parameter. Defaults to `True`.
    discard_catch_exceptions_kwargs (boolean):                 In returned expectation objects, suppress the `catch_exceptions` parameter.  Defaults to `True`.
    suppress_warnings (boolean):                 If true, do not include warnings in logging information about the operation.
    suppress_logging (boolean):                 If true, do not create a log entry (useful when using get_expectation_suite programmatically)

Returns:
    An expectation suite.

Note:
    get_expectation_suite does not affect the underlying expectation suite at all. The returned suite is a              copy of _expectation_suite, not the original object.
def get_expectation_suite(self, discard_failed_expectations=True, discard_result_format_kwargs=True, discard_include_config_kwargs=True, discard_catch_exceptions_kwargs=True, suppress_warnings=False, suppress_logging=False):
    'Returns _expectation_config as a JSON object, and perform some cleaning along the way.\n\n        Args:\n            discard_failed_expectations (boolean):                 Only include expectations with success_on_last_run=True in the exported config.  Defaults to `True`.\n            discard_result_format_kwargs (boolean):                 In returned expectation objects, suppress the `result_format` parameter. Defaults to `True`.\n            discard_include_config_kwargs (boolean):                 In returned expectation objects, suppress the `include_config` parameter. Defaults to `True`.\n            discard_catch_exceptions_kwargs (boolean):                 In returned expectation objects, suppress the `catch_exceptions` parameter.  Defaults to `True`.\n            suppress_warnings (boolean):                 If true, do not include warnings in logging information about the operation.\n            suppress_logging (boolean):                 If true, do not create a log entry (useful when using get_expectation_suite programmatically)\n\n        Returns:\n            An expectation suite.\n\n        Note:\n            get_expectation_suite does not affect the underlying expectation suite at all. The returned suite is a              copy of _expectation_suite, not the original object.\n        '
    expectation_suite = copy.deepcopy(self._expectation_suite)
    expectations = expectation_suite.expectations
    discards = defaultdict(int)
    if discard_failed_expectations:
        new_expectations = []
        for expectation in expectations:
            if (expectation.success_on_last_run is False):
                discards['failed_expectations'] += 1
            else:
                new_expectations.append(expectation)
        expectations = new_expectations
    message = ('\t%d expectation(s) included in expectation_suite.' % len(expectations))
    if ((discards['failed_expectations'] > 0) and (not suppress_warnings)):
        message += (' Omitting %d expectation(s) that failed when last run; set discard_failed_expectations=False to include them.' % discards['failed_expectations'])
    for expectation in expectations:
        expectation.success_on_last_run = None
        if discard_result_format_kwargs:
            if ('result_format' in expectation.kwargs):
                del expectation.kwargs['result_format']
                discards['result_format'] += 1
        if discard_include_config_kwargs:
            if ('include_config' in expectation.kwargs):
                del expectation.kwargs['include_config']
                discards['include_config'] += 1
        if discard_catch_exceptions_kwargs:
            if ('catch_exceptions' in expectation.kwargs):
                del expectation.kwargs['catch_exceptions']
                discards['catch_exceptions'] += 1
    settings_message = 
    if ((discards['result_format'] > 0) and (not suppress_warnings)):
        settings_message += ' result_format'
    if ((discards['include_config'] > 0) and (not suppress_warnings)):
        settings_message += ' include_config'
    if ((discards['catch_exceptions'] > 0) and (not suppress_warnings)):
        settings_message += ' catch_exceptions'
    if (len(settings_message) > 1):
        settings_message += ' settings filtered.'
    expectation_suite.expectations = expectations
    if (not suppress_logging):
        logger.info((message + settings_message))
    return expectation_suite