From 71b8fe745412c5668bbdf643c095866b60a3dd85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Sat, 2 Sep 2023 15:17:23 +0000 Subject: [PATCH] disable external metric by default --- .vscode/launch.json | 1 + kiwi_simple_metrics/settings/metric.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index f018c2c..e1aebf7 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,6 +12,7 @@ "env": { "METRIC__INTERVAL": "5", "METRIC__LOG__ENABLED": "True", + "METRIC__EXTERNAL__ENABLED": "True", "METRIC__EXTERNAL__EXECUTABLES": "[\"${workspaceFolder}/dummy-metric\"]", }, "justMyCode": true diff --git a/kiwi_simple_metrics/settings/metric.py b/kiwi_simple_metrics/settings/metric.py index 9b3f71b..dc597b8 100644 --- a/kiwi_simple_metrics/settings/metric.py +++ b/kiwi_simple_metrics/settings/metric.py @@ -86,6 +86,7 @@ class DiskMS(MetricSettings): class ExternalMS(MetricSettings): name: str = "External Metric" + enabled: bool = False threshold: float = 0 # path to executable files