From bb05e36fa045bd395c955a7dc56c2077b5c90377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Murilo=20Menezes=20Mendon=C3=A7a?= Date: Mon, 15 Jul 2024 16:22:05 -0300 Subject: [PATCH] modify integ health DatasetMetrics (#68) --- whylabs_toolkit/monitor/models/analyzer/algorithms.py | 6 +----- whylabs_toolkit/monitor/schema/schema.json | 7 +++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/whylabs_toolkit/monitor/models/analyzer/algorithms.py b/whylabs_toolkit/monitor/models/analyzer/algorithms.py index ad837aa..180b501 100644 --- a/whylabs_toolkit/monitor/models/analyzer/algorithms.py +++ b/whylabs_toolkit/monitor/models/analyzer/algorithms.py @@ -35,11 +35,6 @@ class AlgorithmType(str, Enum): class DatasetMetric(str, Enum): """Metrics that are applicable at the dataset level.""" - # ingestion health. null value if not ingested yet - profile_count = "profile.count" - profile_last_ingestion_time = "profile.last_ingestion_time" - profile_first_ingestion_time = "profile.first_ingestion_time" - # within the batch column_row_count_sum = "column_row_count_sum" # shape metrics? @@ -62,6 +57,7 @@ class DatasetMetric(str, Enum): # other metrics missing_data_point = "missingDatapoint" + seconds_since_last_upload = "secondsSinceLastUpload" class SimpleColumnMetric(str, Enum): diff --git a/whylabs_toolkit/monitor/schema/schema.json b/whylabs_toolkit/monitor/schema/schema.json index e8ad282..3085f9d 100644 --- a/whylabs_toolkit/monitor/schema/schema.json +++ b/whylabs_toolkit/monitor/schema/schema.json @@ -646,9 +646,6 @@ "title": "DatasetMetric", "description": "Metrics that are applicable at the dataset level.", "enum": [ - "profile.count", - "profile.last_ingestion_time", - "profile.first_ingestion_time", "column_row_count_sum", "shape_column_count", "shape_row_count", @@ -662,7 +659,9 @@ "classification.auroc", "regression.mse", "regression.mae", - "regression.rmse" + "regression.rmse", + "missingDatapoint", + "secondsSinceLastUpload" ], "type": "string" },