kislyuk / watchtower
Showing 1 of 1 files from the diff.

@@ -87,6 +87,11 @@
Loading
87 87
        https://docs.python.org/3/library/json.html#json.dump
88 88
        https://docs.python.org/2/library/json.html#json.dump
89 89
    :type json_serialize_default: Function
90 +
    :param endpoint_url:
91 +
        The complete URL to use for the constructed client. Normally, botocore will automatically construct
92 +
        the appropriate URL to use when communicating with a service. You can specify a complete URL
93 +
        (including the "http/https" scheme) to override this behavior.
94 +
    :type endpoint_url: String
90 95
    """
91 96
    END = 1
92 97
    FLUSH = 2
@@ -107,7 +112,7 @@
Loading
107 112
    def __init__(self, log_group=__name__, stream_name=None, use_queues=True, send_interval=60,
108 113
                 max_batch_size=1024 * 1024, max_batch_count=10000, boto3_session=None,
109 114
                 boto3_profile_name=None, create_log_group=True, log_group_retention_days=None,
110 -
                 create_log_stream=True, json_serialize_default=None, *args, **kwargs):
115 +
                 create_log_stream=True, json_serialize_default=None, endpoint_url=None, *args, **kwargs):
111 116
        handler_base_class.__init__(self, *args, **kwargs)
112 117
        self.log_group = log_group
113 118
        self.stream_name = stream_name
@@ -124,7 +129,7 @@
Loading
124 129
125 130
        # Creating session should be the final call in __init__, after all instance attributes are set.
126 131
        # This ensures that failing to create the session will not result in any missing attribtues.
127 -
        self.cwl_client = self._get_session(boto3_session, boto3_profile_name).client("logs")
132 +
        self.cwl_client = self._get_session(boto3_session, boto3_profile_name).client("logs", endpoint_url=endpoint_url)
128 133
        if create_log_group:
129 134
            _idempotent_create(self.cwl_client.create_log_group, logGroupName=self.log_group)
130 135
Files Coverage
watchtower 81.93%
Project Totals (2 files) 81.93%
240.2
3.6=.6
TRAVIS_OS_NAME=linux
240.3
3.7=.7
TRAVIS_OS_NAME=linux
240.4
TRAVIS_OS_NAME=linux
3.8=.8
240.1
3.5=.5
TRAVIS_OS_NAME=linux
240.5
TRAVIS_OS_NAME=linux
pypy3=

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading