From d216e3f449319789be6e3d031a690897b575c058 Mon Sep 17 00:00:00 2001 From: Pablo Baeyens Date: Tue, 14 Sep 2021 12:41:15 +0200 Subject: [PATCH] Run `ddev validate models -s` on ibm_i (#10117) (cherry picked from commit 5622a25433aa8eabc1770194502d4860ca5bc9e3) --- ibm_i/datadog_checks/ibm_i/config_models/defaults.py | 4 ++++ ibm_i/datadog_checks/ibm_i/config_models/instance.py | 1 + 2 files changed, 5 insertions(+) diff --git a/ibm_i/datadog_checks/ibm_i/config_models/defaults.py b/ibm_i/datadog_checks/ibm_i/config_models/defaults.py index cb02c03d4bd5d..31fe94703608a 100644 --- a/ibm_i/datadog_checks/ibm_i/config_models/defaults.py +++ b/ibm_i/datadog_checks/ibm_i/config_models/defaults.py @@ -12,6 +12,10 @@ def instance_connection_string(field, value): return get_default_field_value(field, value) +def instance_disable_generic_tags(field, value): + return False + + def instance_driver(field, value): return 'iSeries Access ODBC Driver' diff --git a/ibm_i/datadog_checks/ibm_i/config_models/instance.py b/ibm_i/datadog_checks/ibm_i/config_models/instance.py index 24fbd14e378ba..8b0f8d9662e0e 100644 --- a/ibm_i/datadog_checks/ibm_i/config_models/instance.py +++ b/ibm_i/datadog_checks/ibm_i/config_models/instance.py @@ -18,6 +18,7 @@ class Config: allow_mutation = False connection_string: Optional[str] + disable_generic_tags: Optional[bool] driver: Optional[str] empty_default_hostname: Optional[bool] job_query_timeout: Optional[int] = Field(None, gt=0.0)