mlrun 1.8.0rc33__py3-none-any.whl → 1.8.0rc34__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.
Potentially problematic release.
This version of mlrun might be problematic. Click here for more details.
- mlrun/config.py +4 -1
- mlrun/db/httpdb.py +4 -0
- mlrun/model_monitoring/applications/base.py +23 -2
- mlrun/projects/project.py +5 -0
- mlrun/utils/version/version.json +2 -2
- {mlrun-1.8.0rc33.dist-info → mlrun-1.8.0rc34.dist-info}/METADATA +1 -1
- {mlrun-1.8.0rc33.dist-info → mlrun-1.8.0rc34.dist-info}/RECORD +11 -11
- {mlrun-1.8.0rc33.dist-info → mlrun-1.8.0rc34.dist-info}/LICENSE +0 -0
- {mlrun-1.8.0rc33.dist-info → mlrun-1.8.0rc34.dist-info}/WHEEL +0 -0
- {mlrun-1.8.0rc33.dist-info → mlrun-1.8.0rc34.dist-info}/entry_points.txt +0 -0
- {mlrun-1.8.0rc33.dist-info → mlrun-1.8.0rc34.dist-info}/top_level.txt +0 -0
mlrun/config.py
CHANGED
|
@@ -811,11 +811,14 @@ default_config = {
|
|
|
811
811
|
"mode": "enabled",
|
|
812
812
|
# maximum number of alerts we allow to be configured.
|
|
813
813
|
# user will get an error when exceeding this
|
|
814
|
-
"max_allowed":
|
|
814
|
+
"max_allowed": 20000,
|
|
815
815
|
# maximum allowed value for count in criteria field inside AlertConfig
|
|
816
816
|
"max_criteria_count": 100,
|
|
817
817
|
# interval for periodic events generation job
|
|
818
818
|
"events_generation_interval": 30, # seconds
|
|
819
|
+
# maximum allowed alert config cache size in alert's CRUD
|
|
820
|
+
# for the best performance, it is recommended to set this value to the maximum number of alerts
|
|
821
|
+
"max_allowed_cache_size": 20000,
|
|
819
822
|
},
|
|
820
823
|
"auth_with_client_id": {
|
|
821
824
|
"enabled": False,
|
mlrun/db/httpdb.py
CHANGED
|
@@ -1035,6 +1035,7 @@ class HTTPRunDB(RunDBInterface):
|
|
|
1035
1035
|
|
|
1036
1036
|
:param page: The page number to retrieve. If not provided, the next page will be retrieved.
|
|
1037
1037
|
:param page_size: The number of items per page to retrieve. Up to `page_size` responses are expected.
|
|
1038
|
+
Defaults to `mlrun.mlconf.httpdb.pagination.default_page_size` if not provided.
|
|
1038
1039
|
:param page_token: A pagination token used to retrieve the next page of results. Should not be provided
|
|
1039
1040
|
for the first request.
|
|
1040
1041
|
|
|
@@ -1370,6 +1371,7 @@ class HTTPRunDB(RunDBInterface):
|
|
|
1370
1371
|
|
|
1371
1372
|
:param page: The page number to retrieve. If not provided, the next page will be retrieved.
|
|
1372
1373
|
:param page_size: The number of items per page to retrieve. Up to `page_size` responses are expected.
|
|
1374
|
+
Defaults to `mlrun.mlconf.httpdb.pagination.default_page_size` if not provided.
|
|
1373
1375
|
:param page_token: A pagination token used to retrieve the next page of results. Should not be provided
|
|
1374
1376
|
for the first request.
|
|
1375
1377
|
|
|
@@ -1599,6 +1601,7 @@ class HTTPRunDB(RunDBInterface):
|
|
|
1599
1601
|
|
|
1600
1602
|
:param page: The page number to retrieve. If not provided, the next page will be retrieved.
|
|
1601
1603
|
:param page_size: The number of items per page to retrieve. Up to `page_size` responses are expected.
|
|
1604
|
+
Defaults to `mlrun.mlconf.httpdb.pagination.default_page_size` if not provided.
|
|
1602
1605
|
:param page_token: A pagination token used to retrieve the next page of results. Should not be provided
|
|
1603
1606
|
for the first request.
|
|
1604
1607
|
|
|
@@ -4985,6 +4988,7 @@ class HTTPRunDB(RunDBInterface):
|
|
|
4985
4988
|
|
|
4986
4989
|
:param page: The page number to retrieve. If not provided, the next page will be retrieved.
|
|
4987
4990
|
:param page_size: The number of items per page to retrieve. Up to `page_size` responses are expected.
|
|
4991
|
+
Defaults to `mlrun.mlconf.httpdb.pagination.default_page_size` if not provided.
|
|
4988
4992
|
:param page_token: A pagination token used to retrieve the next page of results. Should not be provided
|
|
4989
4993
|
for the first request.
|
|
4990
4994
|
|
|
@@ -90,6 +90,25 @@ class ModelMonitoringApplicationBase(MonitoringApplicationToDict, ABC):
|
|
|
90
90
|
results = results if isinstance(results, list) else [results]
|
|
91
91
|
return results, monitoring_context
|
|
92
92
|
|
|
93
|
+
@staticmethod
|
|
94
|
+
def _flatten_data_result(
|
|
95
|
+
result: Union[
|
|
96
|
+
list[mm_results._ModelMonitoringApplicationDataRes],
|
|
97
|
+
mm_results._ModelMonitoringApplicationDataRes,
|
|
98
|
+
],
|
|
99
|
+
) -> Union[list[dict], dict]:
|
|
100
|
+
"""Flatten result/metric objects to dictionaries"""
|
|
101
|
+
if isinstance(result, mm_results._ModelMonitoringApplicationDataRes):
|
|
102
|
+
return result.to_dict()
|
|
103
|
+
if isinstance(result, list):
|
|
104
|
+
return [
|
|
105
|
+
element.to_dict()
|
|
106
|
+
if isinstance(element, mm_results._ModelMonitoringApplicationDataRes)
|
|
107
|
+
else element
|
|
108
|
+
for element in result
|
|
109
|
+
]
|
|
110
|
+
return result
|
|
111
|
+
|
|
93
112
|
def _handler(
|
|
94
113
|
self,
|
|
95
114
|
context: "mlrun.MLClientCtx",
|
|
@@ -142,9 +161,10 @@ class ModelMonitoringApplicationBase(MonitoringApplicationToDict, ABC):
|
|
|
142
161
|
if window_start and window_end
|
|
143
162
|
else f"{endpoint_name}-{endpoint_id}"
|
|
144
163
|
)
|
|
145
|
-
|
|
164
|
+
|
|
165
|
+
context.log_result(result_key, self._flatten_data_result(result))
|
|
146
166
|
else:
|
|
147
|
-
return call_do_tracking()
|
|
167
|
+
return self._flatten_data_result(call_do_tracking())
|
|
148
168
|
|
|
149
169
|
@staticmethod
|
|
150
170
|
def _handle_endpoints_type_evaluate(
|
|
@@ -181,6 +201,7 @@ class ModelMonitoringApplicationBase(MonitoringApplicationToDict, ABC):
|
|
|
181
201
|
missing_endpoint=missing,
|
|
182
202
|
endpoints=list_endpoints_result,
|
|
183
203
|
)
|
|
204
|
+
endpoints = list_endpoints_result
|
|
184
205
|
else:
|
|
185
206
|
raise mlrun.errors.MLRunNotFoundError(
|
|
186
207
|
f"Did not find any model_endpoint named ' {endpoints}'"
|
mlrun/projects/project.py
CHANGED
|
@@ -4396,6 +4396,7 @@ class MlrunProject(ModelObj):
|
|
|
4396
4396
|
|
|
4397
4397
|
:param page: The page number to retrieve. If not provided, the next page will be retrieved.
|
|
4398
4398
|
:param page_size: The number of items per page to retrieve. Up to `page_size` responses are expected.
|
|
4399
|
+
Defaults to `mlrun.mlconf.httpdb.pagination.default_page_size` if not provided.
|
|
4399
4400
|
:param page_token: A pagination token used to retrieve the next page of results. Should not be provided
|
|
4400
4401
|
for the first request.
|
|
4401
4402
|
|
|
@@ -4515,6 +4516,7 @@ class MlrunProject(ModelObj):
|
|
|
4515
4516
|
|
|
4516
4517
|
:param page: The page number to retrieve. If not provided, the next page will be retrieved.
|
|
4517
4518
|
:param page_size: The number of items per page to retrieve. Up to `page_size` responses are expected.
|
|
4519
|
+
Defaults to `mlrun.mlconf.httpdb.pagination.default_page_size` if not provided.
|
|
4518
4520
|
:param page_token: A pagination token used to retrieve the next page of results. Should not be provided
|
|
4519
4521
|
for the first request.
|
|
4520
4522
|
|
|
@@ -4615,6 +4617,7 @@ class MlrunProject(ModelObj):
|
|
|
4615
4617
|
|
|
4616
4618
|
:param page: The page number to retrieve. If not provided, the next page will be retrieved.
|
|
4617
4619
|
:param page_size: The number of items per page to retrieve. Up to `page_size` responses are expected.
|
|
4620
|
+
Defaults to `mlrun.mlconf.httpdb.pagination.default_page_size` if not provided.
|
|
4618
4621
|
:param page_token: A pagination token used to retrieve the next page of results. Should not be provided
|
|
4619
4622
|
for the first request.
|
|
4620
4623
|
|
|
@@ -4806,6 +4809,7 @@ class MlrunProject(ModelObj):
|
|
|
4806
4809
|
|
|
4807
4810
|
:param page: The page number to retrieve. If not provided, the next page will be retrieved.
|
|
4808
4811
|
:param page_size: The number of items per page to retrieve. Up to `page_size` responses are expected.
|
|
4812
|
+
Defaults to `mlrun.mlconf.httpdb.pagination.default_page_size` if not provided.
|
|
4809
4813
|
:param page_token: A pagination token used to retrieve the next page of results. Should not be provided
|
|
4810
4814
|
for the first request.
|
|
4811
4815
|
|
|
@@ -5187,6 +5191,7 @@ class MlrunProject(ModelObj):
|
|
|
5187
5191
|
|
|
5188
5192
|
:param page: The page number to retrieve. If not provided, the next page will be retrieved.
|
|
5189
5193
|
:param page_size: The number of items per page to retrieve. Up to `page_size` responses are expected.
|
|
5194
|
+
Defaults to `mlrun.mlconf.httpdb.pagination.default_page_size` if not provided.
|
|
5190
5195
|
:param page_token: A pagination token used to retrieve the next page of results. Should not be provided
|
|
5191
5196
|
for the first request.
|
|
5192
5197
|
|
mlrun/utils/version/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
mlrun/__init__.py,sha256=Cqm9U9eCEdLpMejhU2BEhubu0mHL71igJJIwYa738EA,7450
|
|
2
2
|
mlrun/__main__.py,sha256=xYWflUbfSRpo8F4uzrHhBN1dcaBUADmfoK5Q-iqEBeQ,46181
|
|
3
|
-
mlrun/config.py,sha256=
|
|
3
|
+
mlrun/config.py,sha256=6rT0m_VffvrMsaXQ4jw0Y-zRQI2LmBN_VSiTpsE0qG8,71288
|
|
4
4
|
mlrun/errors.py,sha256=LkcbXTLANGdsgo2CRX2pdbyNmt--lMsjGv0XZMgP-Nc,8222
|
|
5
5
|
mlrun/execution.py,sha256=FUktsD3puSFjc3LZJU35b-OmFBrBPBNntViCLQVuwnk,50008
|
|
6
6
|
mlrun/features.py,sha256=ReBaNGsBYXqcbgI012n-SO_j6oHIbk_Vpv0CGPXbUmo,15842
|
|
@@ -110,7 +110,7 @@ mlrun/db/__init__.py,sha256=WqJ4x8lqJ7ZoKbhEyFqkYADd9P6E3citckx9e9ZLcIU,1163
|
|
|
110
110
|
mlrun/db/auth_utils.py,sha256=hpg8D2r82oN0BWabuWN04BTNZ7jYMAF242YSUpK7LFM,5211
|
|
111
111
|
mlrun/db/base.py,sha256=pFf33ey6vlTN7cEr8EpsSQhdydDhSXtDz5ukK5o25f8,30697
|
|
112
112
|
mlrun/db/factory.py,sha256=yP2vVmveUE7LYTCHbS6lQIxP9rW--zdISWuPd_I3d_4,2111
|
|
113
|
-
mlrun/db/httpdb.py,sha256=
|
|
113
|
+
mlrun/db/httpdb.py,sha256=b-MiqGJbEbfil6fYmQTfSBTieFxPe5j-Vm7kVZk8ynU,230697
|
|
114
114
|
mlrun/db/nopdb.py,sha256=h_tgZDWr-7ri_gbgD3FOb9i4X_W9e4rr7va7S10kInI,27132
|
|
115
115
|
mlrun/feature_store/__init__.py,sha256=AVnY2AFUNc2dKxLLUMx2K3Wo1eGviv0brDcYlDnmtf4,1506
|
|
116
116
|
mlrun/feature_store/api.py,sha256=qkojZpzqGAn3r9ww0ynBRKOs8ji8URaK4DSYD4SE-CE,50395
|
|
@@ -226,7 +226,7 @@ mlrun/model_monitoring/tracking_policy.py,sha256=PBIGrUYWrwcE5gwXupBIVzOb0QRRwPJ
|
|
|
226
226
|
mlrun/model_monitoring/writer.py,sha256=vbL7bqTyNu8q4bNcebX72sUMybVDAoTWg-CXq4fov3Y,8429
|
|
227
227
|
mlrun/model_monitoring/applications/__init__.py,sha256=xDBxkBjl-whHSG_4t1mLkxiypLH-fzn8TmAW9Mjo2uI,759
|
|
228
228
|
mlrun/model_monitoring/applications/_application_steps.py,sha256=97taCEkfGx-QO-gD9uKnRF1PDIxQhY7sjPg85GxgIpA,6628
|
|
229
|
-
mlrun/model_monitoring/applications/base.py,sha256=
|
|
229
|
+
mlrun/model_monitoring/applications/base.py,sha256=7XL12idItWkoE3CJ_48F6cwVx5pJH3bgfG92hb8LcN8,24872
|
|
230
230
|
mlrun/model_monitoring/applications/context.py,sha256=xqbKS61iXE6jBekyW8zjo_E3lxe2D8VepuXG_BA5y2k,14931
|
|
231
231
|
mlrun/model_monitoring/applications/histogram_data_drift.py,sha256=G26_4gQfcwDZe3S6SIZ4Uc_qyrHAJ6lDTFOQGkbfQR8,14455
|
|
232
232
|
mlrun/model_monitoring/applications/results.py,sha256=_qmj6TWT0SR2bi7gUyRKBU418eGgGoLW2_hTJ7S-ock,5782
|
|
@@ -269,7 +269,7 @@ mlrun/platforms/iguazio.py,sha256=6VBTq8eQ3mzT96tzjYhAtcMQ2VjF4x8LpIPW5DAcX2Q,13
|
|
|
269
269
|
mlrun/projects/__init__.py,sha256=0Krf0WIKfnZa71WthYOg0SoaTodGg3sV_hK3f_OlTPI,1220
|
|
270
270
|
mlrun/projects/operations.py,sha256=VXUlMrouFTls-I-bMhdN5pPfQ34TR7bFQ-NUSWNvl84,20029
|
|
271
271
|
mlrun/projects/pipelines.py,sha256=QH2nEhaJxhafJdT0AXPzpDhTniyHtc0Cg74Spdz6Oeg,48255
|
|
272
|
-
mlrun/projects/project.py,sha256=
|
|
272
|
+
mlrun/projects/project.py,sha256=ox7ey4sIyEDJl1-vfaFBzZ8DQq2b2tpeEiIhAWyOwTc,234966
|
|
273
273
|
mlrun/runtimes/__init__.py,sha256=J9Sy2HiyMlztNv6VUurMzF5H2XzttNil8nRsWDsqLyg,8923
|
|
274
274
|
mlrun/runtimes/base.py,sha256=K5-zfFrE_HR6AaHWs2figaOTr7eosw3-4bELkYzpRk4,37789
|
|
275
275
|
mlrun/runtimes/daskjob.py,sha256=JwuGvOiPsxEDHHMMUS4Oie4hLlYYIZwihAl6DjroTY0,19521
|
|
@@ -339,11 +339,11 @@ mlrun/utils/notifications/notification/mail.py,sha256=ZyJ3eqd8simxffQmXzqd3bgbAq
|
|
|
339
339
|
mlrun/utils/notifications/notification/slack.py,sha256=eQvmctTh6wIG5xVOesLLV9S1-UUCu5UEQ9JIJOor3ts,7183
|
|
340
340
|
mlrun/utils/notifications/notification/webhook.py,sha256=NeyIMSBojjjTJaUHmPbxMByp34GxYkl1-16NqzU27fU,4943
|
|
341
341
|
mlrun/utils/version/__init__.py,sha256=7kkrB7hEZ3cLXoWj1kPoDwo4MaswsI2JVOBpbKgPAgc,614
|
|
342
|
-
mlrun/utils/version/version.json,sha256=
|
|
342
|
+
mlrun/utils/version/version.json,sha256=Rl23p2WRf9s69reSoe_MlPatayIrpb8kziTZFrHpBM8,89
|
|
343
343
|
mlrun/utils/version/version.py,sha256=eEW0tqIAkU9Xifxv8Z9_qsYnNhn3YH7NRAfM-pPLt1g,1878
|
|
344
|
-
mlrun-1.8.
|
|
345
|
-
mlrun-1.8.
|
|
346
|
-
mlrun-1.8.
|
|
347
|
-
mlrun-1.8.
|
|
348
|
-
mlrun-1.8.
|
|
349
|
-
mlrun-1.8.
|
|
344
|
+
mlrun-1.8.0rc34.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
345
|
+
mlrun-1.8.0rc34.dist-info/METADATA,sha256=iCs-LqwkN1urNWfHUE_Eov_WXu8oZcBvTHSyLqApH6E,25986
|
|
346
|
+
mlrun-1.8.0rc34.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
347
|
+
mlrun-1.8.0rc34.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
|
|
348
|
+
mlrun-1.8.0rc34.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
|
|
349
|
+
mlrun-1.8.0rc34.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|