mlrun 1.8.0rc51__py3-none-any.whl → 1.8.0rc52__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/model_monitoring/stream_processing.py +7 -11
- mlrun/serving/states.py +6 -3
- mlrun/utils/version/version.json +2 -2
- {mlrun-1.8.0rc51.dist-info → mlrun-1.8.0rc52.dist-info}/METADATA +1 -1
- {mlrun-1.8.0rc51.dist-info → mlrun-1.8.0rc52.dist-info}/RECORD +9 -9
- {mlrun-1.8.0rc51.dist-info → mlrun-1.8.0rc52.dist-info}/WHEEL +0 -0
- {mlrun-1.8.0rc51.dist-info → mlrun-1.8.0rc52.dist-info}/entry_points.txt +0 -0
- {mlrun-1.8.0rc51.dist-info → mlrun-1.8.0rc52.dist-info}/licenses/LICENSE +0 -0
- {mlrun-1.8.0rc51.dist-info → mlrun-1.8.0rc52.dist-info}/top_level.txt +0 -0
|
@@ -384,9 +384,6 @@ class ProcessEndpointEvent(mlrun.feature_store.steps.MapClass):
|
|
|
384
384
|
# Set time for the first request of the current endpoint
|
|
385
385
|
self.first_request[endpoint_id] = timestamp
|
|
386
386
|
|
|
387
|
-
# Set time for the last reqeust of the current endpoint
|
|
388
|
-
self.last_request[endpoint_id] = timestamp
|
|
389
|
-
|
|
390
387
|
if not self.is_valid(
|
|
391
388
|
validation_function=is_not_none,
|
|
392
389
|
field=request_id,
|
|
@@ -413,7 +410,7 @@ class ProcessEndpointEvent(mlrun.feature_store.steps.MapClass):
|
|
|
413
410
|
return None
|
|
414
411
|
|
|
415
412
|
# Convert timestamp to a datetime object
|
|
416
|
-
|
|
413
|
+
timestamp_obj = datetime.datetime.fromisoformat(timestamp)
|
|
417
414
|
|
|
418
415
|
# Separate each model invocation into sub events that will be stored as dictionary
|
|
419
416
|
# in list of events. This list will be used as the body for the storey event.
|
|
@@ -454,16 +451,16 @@ class ProcessEndpointEvent(mlrun.feature_store.steps.MapClass):
|
|
|
454
451
|
EventFieldType.FUNCTION_URI: function_uri,
|
|
455
452
|
EventFieldType.ENDPOINT_NAME: event.get(EventFieldType.MODEL),
|
|
456
453
|
EventFieldType.MODEL_CLASS: model_class,
|
|
457
|
-
EventFieldType.TIMESTAMP:
|
|
454
|
+
EventFieldType.TIMESTAMP: timestamp_obj,
|
|
458
455
|
EventFieldType.ENDPOINT_ID: endpoint_id,
|
|
459
456
|
EventFieldType.REQUEST_ID: request_id,
|
|
460
457
|
EventFieldType.LATENCY: latency,
|
|
461
458
|
EventFieldType.FEATURES: feature,
|
|
462
459
|
EventFieldType.PREDICTION: prediction,
|
|
463
460
|
EventFieldType.FIRST_REQUEST: self.first_request[endpoint_id],
|
|
464
|
-
EventFieldType.LAST_REQUEST:
|
|
461
|
+
EventFieldType.LAST_REQUEST: timestamp,
|
|
465
462
|
EventFieldType.LAST_REQUEST_TIMESTAMP: mlrun.utils.enrich_datetime_with_tz_info(
|
|
466
|
-
|
|
463
|
+
timestamp
|
|
467
464
|
).timestamp(),
|
|
468
465
|
EventFieldType.LABELS: event.get(EventFieldType.LABELS, {}),
|
|
469
466
|
EventFieldType.METRICS: event.get(EventFieldType.METRICS, {}),
|
|
@@ -492,6 +489,7 @@ class ProcessEndpointEvent(mlrun.feature_store.steps.MapClass):
|
|
|
492
489
|
project=self.project,
|
|
493
490
|
endpoint_id=endpoint_id,
|
|
494
491
|
name=endpoint_name,
|
|
492
|
+
tsdb_metrics=False,
|
|
495
493
|
)
|
|
496
494
|
.flat_dict()
|
|
497
495
|
)
|
|
@@ -503,10 +501,6 @@ class ProcessEndpointEvent(mlrun.feature_store.steps.MapClass):
|
|
|
503
501
|
if first_request:
|
|
504
502
|
self.first_request[endpoint_id] = first_request
|
|
505
503
|
|
|
506
|
-
last_request = endpoint_record.get(EventFieldType.LAST_REQUEST)
|
|
507
|
-
if last_request:
|
|
508
|
-
self.last_request[endpoint_id] = last_request
|
|
509
|
-
|
|
510
504
|
# add endpoint to endpoints set
|
|
511
505
|
self.endpoints.add(endpoint_id)
|
|
512
506
|
|
|
@@ -619,6 +613,7 @@ class MapFeatureNames(mlrun.feature_store.steps.MapClass):
|
|
|
619
613
|
project=self.project,
|
|
620
614
|
endpoint_id=endpoint_id,
|
|
621
615
|
name=event[EventFieldType.ENDPOINT_NAME],
|
|
616
|
+
tsdb_metrics=False,
|
|
622
617
|
)
|
|
623
618
|
.flat_dict()
|
|
624
619
|
)
|
|
@@ -692,6 +687,7 @@ class MapFeatureNames(mlrun.feature_store.steps.MapClass):
|
|
|
692
687
|
project=self.project,
|
|
693
688
|
endpoint_id=endpoint_id,
|
|
694
689
|
name=event[EventFieldType.ENDPOINT_NAME],
|
|
690
|
+
tsdb_metrics=False,
|
|
695
691
|
)
|
|
696
692
|
.flat_dict()
|
|
697
693
|
)
|
mlrun/serving/states.py
CHANGED
|
@@ -415,15 +415,18 @@ class BaseStep(ModelObj):
|
|
|
415
415
|
steps: list[Union[str, StepToDict, dict[str, Any]]],
|
|
416
416
|
force: bool = False,
|
|
417
417
|
):
|
|
418
|
-
"""
|
|
418
|
+
"""
|
|
419
|
+
Set list of steps as downstream from this step, in the order specified. This will overwrite any existing
|
|
419
420
|
downstream steps.
|
|
420
421
|
|
|
421
422
|
:param steps: list of steps to follow this one
|
|
422
423
|
:param force: whether to overwrite existing downstream steps. If False, this method will fail if any downstream
|
|
423
|
-
|
|
424
|
+
steps have already been defined. Defaults to False.
|
|
425
|
+
|
|
424
426
|
:return: the last step added to the flow
|
|
425
427
|
|
|
426
|
-
example
|
|
428
|
+
example::
|
|
429
|
+
|
|
427
430
|
The below code sets the downstream nodes of step1 by using a list of steps (provided to `set_flow()`) and a
|
|
428
431
|
single step (provided to `to()`), resulting in the graph (step1 -> step2 -> step3 -> step4).
|
|
429
432
|
Notice that using `force=True` is required in case step1 already had downstream nodes (e.g. if the existing
|
mlrun/utils/version/version.json
CHANGED
|
@@ -222,7 +222,7 @@ mlrun/model_monitoring/api.py,sha256=LU58dzE4QZiMH23lgiqfI__3m2E3eEZP-DQe2ioUSwM
|
|
|
222
222
|
mlrun/model_monitoring/controller.py,sha256=m4Zx_NQ0C-A7WtjBoXnqBmS11RRtLvBaFgbFbIgrdVc,36847
|
|
223
223
|
mlrun/model_monitoring/features_drift_table.py,sha256=c6GpKtpOJbuT1u5uMWDL_S-6N4YPOmlktWMqPme3KFY,25308
|
|
224
224
|
mlrun/model_monitoring/helpers.py,sha256=8QsoYRPOVSnR3Lcv99m4XYrp_cR6hSqBUflYSOkJmFQ,21019
|
|
225
|
-
mlrun/model_monitoring/stream_processing.py,sha256=
|
|
225
|
+
mlrun/model_monitoring/stream_processing.py,sha256=Gu3TQzYoNjbreZYI73-F49QpYrod9RZOyGSgininBsA,33373
|
|
226
226
|
mlrun/model_monitoring/tracking_policy.py,sha256=PBIGrUYWrwcE5gwXupBIVzOb0QRRwPJsgQm_yLGQxB4,5595
|
|
227
227
|
mlrun/model_monitoring/writer.py,sha256=ibbhvfSHb8Reqlb7RGFEAUNM4iTyK1gk8-2m46mP6VM,8428
|
|
228
228
|
mlrun/model_monitoring/applications/__init__.py,sha256=xDBxkBjl-whHSG_4t1mLkxiypLH-fzn8TmAW9Mjo2uI,759
|
|
@@ -306,7 +306,7 @@ mlrun/serving/remote.py,sha256=gxJkj_J3j-sZcVUbUzbAmJafP6t6y4NVFsu0kWmYngA,18818
|
|
|
306
306
|
mlrun/serving/routers.py,sha256=SY6AsaiSnh8ssXq8hQE2z9MYapOxFOFJBx9QomiZMO8,53915
|
|
307
307
|
mlrun/serving/server.py,sha256=KiNhW0nTV5STZPzR6kEAUFVzCCAX8qv0g9AoCopARrM,23429
|
|
308
308
|
mlrun/serving/serving_wrapper.py,sha256=R670-S6PX_d5ER6jiHtRvacuPyFzQH0mEf2K0sBIIOM,836
|
|
309
|
-
mlrun/serving/states.py,sha256=
|
|
309
|
+
mlrun/serving/states.py,sha256=PaVdgZ8GyE8bxr_-RvuSUINwHuPypJmqaQs27aEPweo,73367
|
|
310
310
|
mlrun/serving/utils.py,sha256=k2EIYDWHUGkE-IBI6T0UNT32fw-KySsccIJM_LObI00,4171
|
|
311
311
|
mlrun/serving/v1_serving.py,sha256=c6J_MtpE-Tqu00-6r4eJOCO6rUasHDal9W2eBIcrl50,11853
|
|
312
312
|
mlrun/serving/v2_serving.py,sha256=b3C5Utv2_AOPrH_hPi3NarjNbAK3kRoeIfqMU4qNuUo,25362
|
|
@@ -340,11 +340,11 @@ mlrun/utils/notifications/notification/mail.py,sha256=ZyJ3eqd8simxffQmXzqd3bgbAq
|
|
|
340
340
|
mlrun/utils/notifications/notification/slack.py,sha256=eQvmctTh6wIG5xVOesLLV9S1-UUCu5UEQ9JIJOor3ts,7183
|
|
341
341
|
mlrun/utils/notifications/notification/webhook.py,sha256=NeyIMSBojjjTJaUHmPbxMByp34GxYkl1-16NqzU27fU,4943
|
|
342
342
|
mlrun/utils/version/__init__.py,sha256=7kkrB7hEZ3cLXoWj1kPoDwo4MaswsI2JVOBpbKgPAgc,614
|
|
343
|
-
mlrun/utils/version/version.json,sha256=
|
|
343
|
+
mlrun/utils/version/version.json,sha256=HlVx8qU6Ht_XX26OtQRbBPB8miakWzI_Bf8z22d2ABo,89
|
|
344
344
|
mlrun/utils/version/version.py,sha256=eEW0tqIAkU9Xifxv8Z9_qsYnNhn3YH7NRAfM-pPLt1g,1878
|
|
345
|
-
mlrun-1.8.
|
|
346
|
-
mlrun-1.8.
|
|
347
|
-
mlrun-1.8.
|
|
348
|
-
mlrun-1.8.
|
|
349
|
-
mlrun-1.8.
|
|
350
|
-
mlrun-1.8.
|
|
345
|
+
mlrun-1.8.0rc52.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
346
|
+
mlrun-1.8.0rc52.dist-info/METADATA,sha256=__VKEJN8imT-7CR8JC5kKzi8Jpi9ENEwkGV2abMV1Zw,26009
|
|
347
|
+
mlrun-1.8.0rc52.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
348
|
+
mlrun-1.8.0rc52.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
|
|
349
|
+
mlrun-1.8.0rc52.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
|
|
350
|
+
mlrun-1.8.0rc52.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|