@@ -255,9 +255,10 @@ class MethodLatenciesAsync(MethodLatenciesBase):
255255 Method async Latency class
256256
257257 """
258- async def create ():
258+ @classmethod
259+ async def create (cls ):
259260 """Constructor"""
260- self = MethodLatenciesAsync ()
261+ self = cls ()
261262 self ._lock = asyncio .Lock ()
262263 async with self ._lock :
263264 self ._reset_all ()
@@ -406,9 +407,10 @@ class HTTPLatenciesAsync(HTTPLatenciesBase):
406407 HTTP Latency async class
407408
408409 """
409- async def create ():
410+ @classmethod
411+ async def create (cls ):
410412 """Constructor"""
411- self = HTTPLatenciesAsync ()
413+ self = cls ()
412414 self ._lock = asyncio .Lock ()
413415 async with self ._lock :
414416 self ._reset_all ()
@@ -557,9 +559,10 @@ class MethodExceptionsAsync(MethodExceptionsBase):
557559 Method async exceptions class
558560
559561 """
560- async def create ():
562+ @classmethod
563+ async def create (cls ):
561564 """Constructor"""
562- self = MethodExceptionsAsync ()
565+ self = cls ()
563566 self ._lock = asyncio .Lock ()
564567 async with self ._lock :
565568 self ._reset_all ()
@@ -707,9 +710,10 @@ class LastSynchronizationAsync(LastSynchronizationBase):
707710 Last Synchronization async info class
708711
709712 """
710- async def create ():
713+ @classmethod
714+ async def create (cls ):
711715 """Constructor"""
712- self = LastSynchronizationAsync ()
716+ self = cls ()
713717 self ._lock = asyncio .Lock ()
714718 async with self ._lock :
715719 self ._reset_all ()
@@ -869,9 +873,10 @@ class HTTPErrorsAsync(HTTPErrorsBase):
869873 Http error async class
870874
871875 """
872- async def create ():
876+ @classmethod
877+ async def create (cls ):
873878 """Constructor"""
874- self = HTTPErrorsAsync ()
879+ self = cls ()
875880 self ._lock = asyncio .Lock ()
876881 async with self ._lock :
877882 self ._reset_all ()
@@ -1177,9 +1182,10 @@ class TelemetryCountersAsync(TelemetryCountersBase):
11771182 Counters async class
11781183
11791184 """
1180- async def create ():
1185+ @classmethod
1186+ async def create (cls ):
11811187 """Constructor"""
1182- self = TelemetryCountersAsync ()
1188+ self = cls ()
11831189 self ._lock = asyncio .Lock ()
11841190 async with self ._lock :
11851191 self ._reset_all ()
@@ -1385,9 +1391,10 @@ class StreamingEventsAsync(object):
13851391 Streaming events async class
13861392
13871393 """
1388- async def create ():
1394+ @classmethod
1395+ async def create (cls ):
13891396 """Constructor"""
1390- self = StreamingEventsAsync ()
1397+ self = cls ()
13911398 self ._lock = asyncio .Lock ()
13921399 async with self ._lock :
13931400 self ._streaming_events = []
@@ -1803,9 +1810,10 @@ class TelemetryConfigAsync(TelemetryConfigBase):
18031810 Telemetry init config async class
18041811
18051812 """
1806- async def create ():
1813+ @classmethod
1814+ async def create (cls ):
18071815 """Constructor"""
1808- self = TelemetryConfigAsync ()
1816+ self = cls ()
18091817 self ._lock = asyncio .Lock ()
18101818 async with self ._lock :
18111819 self ._reset_all ()
0 commit comments