From 965b2841b13528b7365248cbced3e3d382e63ef0 Mon Sep 17 00:00:00 2001 From: Sebastian Pietras <01133337@pw.edu.pl> Date: Tue, 18 Oct 2022 02:02:19 +0200 Subject: [PATCH] Added `group` to `MetricConfig` (#17) --- .../src/kilroy_module_client_py_sdk/client.py | 1 + .../src/kilroy_module_client_py_sdk/metrics.py | 1 + 2 files changed, 2 insertions(+) diff --git a/kilroy_module_client_py_sdk/src/kilroy_module_client_py_sdk/client.py b/kilroy_module_client_py_sdk/src/kilroy_module_client_py_sdk/client.py index 71bac15..23fb5c8 100644 --- a/kilroy_module_client_py_sdk/src/kilroy_module_client_py_sdk/client.py +++ b/kilroy_module_client_py_sdk/src/kilroy_module_client_py_sdk/client.py @@ -434,6 +434,7 @@ async def get_metrics_config(self, *args, **kwargs) -> List[MetricConfig]: MetricConfig( id=metric.id, label=metric.label, + group=metric.group, config=json.loads(metric.config), ) for metric in response.configs diff --git a/kilroy_module_client_py_sdk/src/kilroy_module_client_py_sdk/metrics.py b/kilroy_module_client_py_sdk/src/kilroy_module_client_py_sdk/metrics.py index e96f08a..f7d351b 100644 --- a/kilroy_module_client_py_sdk/src/kilroy_module_client_py_sdk/metrics.py +++ b/kilroy_module_client_py_sdk/src/kilroy_module_client_py_sdk/metrics.py @@ -6,6 +6,7 @@ class MetricConfig(SerializableModel): id: str label: str + group: str config: Dict[str, Any]