vnai 2.0.8__py3-none-any.whl → 2.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
vnai/beam/metrics.py
CHANGED
@@ -11,13 +11,14 @@ _B=None
|
|
11
11
|
_A='function'
|
12
12
|
import sys,time,threading
|
13
13
|
from datetime import datetime
|
14
|
+
import hashlib,json
|
14
15
|
class Collector:
|
15
16
|
_instance=_B;_lock=threading.Lock()
|
16
17
|
def __new__(cls):
|
17
18
|
with cls._lock:
|
18
19
|
if cls._instance is _B:cls._instance=super(Collector,cls).__new__(cls);cls._instance._initialize()
|
19
20
|
return cls._instance
|
20
|
-
def _initialize(self):self.metrics={_A:[],_H:[],_I:[],_D:[]};self.thresholds={_J:50,'error_threshold':.1,'performance_threshold':5.};self.function_count=0;self.colab_auth_triggered=_E;self.max_metric_length=200
|
21
|
+
def _initialize(self):self.metrics={_A:[],_H:[],_I:[],_D:[]};self.thresholds={_J:50,'error_threshold':.1,'performance_threshold':5.};self.function_count=0;self.colab_auth_triggered=_E;self.max_metric_length=200;self._last_record_time={};self.min_interval_per_type=.5
|
21
22
|
def record(self,metric_type,data,priority=_B):
|
22
23
|
A='high'
|
23
24
|
if not isinstance(data,dict):data={'value':str(data)}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
vnai/__init__.py,sha256=CMpislNEQ5QTJkbY4pcI2or65l7kYzWdgDs7_RifvGA,5277
|
2
2
|
vnai/beam/__init__.py,sha256=MG_4FkhQZyuKeaoQQh-KaULhxcGu370lGR6FVV5blU4,129
|
3
|
-
vnai/beam/metrics.py,sha256=
|
3
|
+
vnai/beam/metrics.py,sha256=WYdN-PnUtFkRWOjGOSzyonc3SJ7ii0twT_KPUjQ0uu4,3780
|
4
4
|
vnai/beam/pulse.py,sha256=jatge9Di-g_o1TjM3yuq8cWtOROs2GHUlLkExDhSM90,1885
|
5
5
|
vnai/beam/quota.py,sha256=Ix5PoRMr2-2Y-y5QMn_TmE3ECjb_JVyNYyoQ5qGttHE,10233
|
6
6
|
vnai/flow/__init__.py,sha256=BURTo8cXicmqqTbeB0qfXwVole0oGDVp_UxRSeh4qfA,80
|
@@ -10,7 +10,7 @@ vnai/scope/__init__.py,sha256=o7N7JjgSqIfQeDojgnxzV9gthEWL3YxxljnvRO9AXkQ,196
|
|
10
10
|
vnai/scope/profile.py,sha256=BHgX2yUQOMoJeUp_AaUWuc635bT1AJfw-FShNVRPikw,14985
|
11
11
|
vnai/scope/promo.py,sha256=Ts8z04npfMl99F-xiSB6_kYBiYpK0EYO5AjX7-CGmJI,12893
|
12
12
|
vnai/scope/state.py,sha256=IoVCPrDmZX822tS9Pk_JQvXpKcN8WogA1yZGa1d476Q,3841
|
13
|
-
vnai-2.0.
|
14
|
-
vnai-2.0.
|
15
|
-
vnai-2.0.
|
16
|
-
vnai-2.0.
|
13
|
+
vnai-2.1.0.dist-info/METADATA,sha256=rMAbXS3uhXFQ6J_dplLTZaU0vrhwRvJa0Rgffayj9m4,666
|
14
|
+
vnai-2.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
15
|
+
vnai-2.1.0.dist-info/top_level.txt,sha256=4zI0qZHePCwvgSqXl4420sBcd0VzZn4MEcRsAIFae3k,5
|
16
|
+
vnai-2.1.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|