From c56a123576b790528a9e4a030f1c0679b11c6665 Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Thu, 14 Mar 2024 20:22:42 +0200 Subject: [PATCH] go.d.plugin: jsonschema allow array/object to be null (#17166) --- .../modules/activemq/config_schema.json | 5 +- .../modules/apache/config_schema.json | 5 +- .../modules/bind/config_schema.json | 5 +- .../modules/cassandra/config_schema.json | 5 +- .../modules/cockroachdb/config_schema.json | 5 +- .../modules/consul/config_schema.json | 5 +- .../modules/coredns/config_schema.json | 35 ++++++-- .../modules/couchbase/config_schema.json | 5 +- .../modules/couchdb/config_schema.json | 5 +- .../modules/dnsdist/config_schema.json | 5 +- .../modules/dnsquery/config_schema.json | 15 +++- .../modules/docker_engine/config_schema.json | 5 +- .../modules/dockerhub/config_schema.json | 10 ++- .../modules/elasticsearch/config_schema.json | 5 +- .../modules/envoy/config_schema.json | 5 +- .../modules/example/config_schema.json | 10 ++- .../modules/filecheck/config_schema.json | 30 +++++-- .../modules/fluentd/config_schema.json | 5 +- .../modules/geth/config_schema.json | 5 +- .../modules/haproxy/config_schema.json | 5 +- .../modules/hdfs/config_schema.json | 5 +- .../modules/httpcheck/config_schema.json | 20 ++++- .../modules/isc_dhcpd/config_schema.json | 10 ++- .../modules/k8s_kubelet/config_schema.json | 5 +- .../modules/k8s_kubeproxy/config_schema.json | 5 +- .../modules/lighttpd/config_schema.json | 5 +- .../modules/logstash/config_schema.json | 5 +- .../modules/mongodb/config_schema.json | 15 +++- .../modules/nginx/config_schema.json | 5 +- .../modules/nginxplus/config_schema.json | 5 +- .../modules/nginxvts/config_schema.json | 5 +- .../modules/openvpn/config_schema.json | 15 +++- .../openvpn_status_log/config_schema.json | 15 +++- .../modules/phpdaemon/config_schema.json | 5 +- .../modules/phpfpm/config_schema.json | 5 +- .../modules/pihole/config_schema.json | 5 +- .../modules/ping/config_schema.json | 5 +- .../modules/portcheck/config_schema.json | 5 +- .../modules/postgres/config_schema.json | 10 ++- .../modules/powerdns/config_schema.json | 5 +- .../powerdns_recursor/config_schema.json | 5 +- .../modules/prometheus/config_schema.json | 35 ++++++-- .../modules/pulsar/config_schema.json | 5 +- .../modules/rabbitmq/config_schema.json | 5 +- .../modules/scaleio/config_schema.json | 5 +- .../modules/snmp/config_schema.json | 35 ++++++-- .../modules/squidlog/config_schema.json | 30 +++++-- .../modules/systemdunits/config_schema.json | 5 +- .../modules/tengine/config_schema.json | 5 +- .../modules/traefik/config_schema.json | 5 +- .../modules/vcsa/config_schema.json | 5 +- .../modules/vernemq/config_schema.json | 5 +- .../modules/vsphere/config_schema.json | 15 +++- .../modules/weblog/config_schema.json | 90 +++++++++++++++---- .../modules/windows/config_schema.json | 5 +- 55 files changed, 468 insertions(+), 117 deletions(-) diff --git a/src/go/collectors/go.d.plugin/modules/activemq/config_schema.json b/src/go/collectors/go.d.plugin/modules/activemq/config_schema.json index c2563f3743ff83..1a1a155963e8da 100644 --- a/src/go/collectors/go.d.plugin/modules/activemq/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/activemq/config_schema.json @@ -96,7 +96,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/apache/config_schema.json b/src/go/collectors/go.d.plugin/modules/apache/config_schema.json index a5abd487298a1d..981fa20877d384 100644 --- a/src/go/collectors/go.d.plugin/modules/apache/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/apache/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/bind/config_schema.json b/src/go/collectors/go.d.plugin/modules/bind/config_schema.json index ca1ae71d9b7166..2a9d5ddd1ceb5f 100644 --- a/src/go/collectors/go.d.plugin/modules/bind/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/bind/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/cassandra/config_schema.json b/src/go/collectors/go.d.plugin/modules/cassandra/config_schema.json index a32504ceb5ee8f..b64e3b5361e27b 100644 --- a/src/go/collectors/go.d.plugin/modules/cassandra/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/cassandra/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/cockroachdb/config_schema.json b/src/go/collectors/go.d.plugin/modules/cockroachdb/config_schema.json index 263e5d717dad5c..2094e6f3f6ab4a 100644 --- a/src/go/collectors/go.d.plugin/modules/cockroachdb/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/cockroachdb/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/consul/config_schema.json b/src/go/collectors/go.d.plugin/modules/consul/config_schema.json index 5fc9dcad896988..8c4d39d94fcb5f 100644 --- a/src/go/collectors/go.d.plugin/modules/consul/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/consul/config_schema.json @@ -68,7 +68,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/coredns/config_schema.json b/src/go/collectors/go.d.plugin/modules/coredns/config_schema.json index 3edeaf79f36270..bfb96165419835 100644 --- a/src/go/collectors/go.d.plugin/modules/coredns/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/coredns/config_schema.json @@ -33,12 +33,18 @@ "per_server_stats": { "title": "Server selector", "description": "Configures collection of per-server statistics. If left empty, no stats will be collected. Matching is performed against the `server` label value.", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "includes": { "title": "Include", "description": "Include servers whose names match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Server pattern", "type": "string" @@ -48,7 +54,10 @@ "excludes": { "title": "Exclude", "description": "Exclude servers whose names match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Server pattern", "type": "string" @@ -60,12 +69,18 @@ "per_zone_stats": { "title": "Zone selector", "description": "Configures collection of per-zone statistics. If left empty, no stats will be collected. Matching is performed against the `zone` label value.", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "includes": { "title": "Include", "description": "Include zones whose names match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Zone pattern", "type": "string" @@ -75,7 +90,10 @@ "excludes": { "title": "Exclude", "description": "Exclude zones whose names match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Zone pattern", "type": "string" @@ -116,7 +134,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/couchbase/config_schema.json b/src/go/collectors/go.d.plugin/modules/couchbase/config_schema.json index bba52b5fa4b9ba..36fe08f0615c64 100644 --- a/src/go/collectors/go.d.plugin/modules/couchbase/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/couchbase/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/couchdb/config_schema.json b/src/go/collectors/go.d.plugin/modules/couchdb/config_schema.json index d015d2918163c3..f7cd73d2eed4a4 100644 --- a/src/go/collectors/go.d.plugin/modules/couchdb/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/couchdb/config_schema.json @@ -73,7 +73,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/dnsdist/config_schema.json b/src/go/collectors/go.d.plugin/modules/dnsdist/config_schema.json index 9361967f60a1f6..74e3d959eeb510 100644 --- a/src/go/collectors/go.d.plugin/modules/dnsdist/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/dnsdist/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/dnsquery/config_schema.json b/src/go/collectors/go.d.plugin/modules/dnsquery/config_schema.json index 3725461bd9aace..8ad870a22759d5 100644 --- a/src/go/collectors/go.d.plugin/modules/dnsquery/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/dnsquery/config_schema.json @@ -37,7 +37,10 @@ "record_types": { "title": "Record types", "description": "Types of DNS records to query for each server.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "type": "string", "enum": [ @@ -63,7 +66,10 @@ "servers": { "title": "Servers", "description": "List of DNS servers to query.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "DNS server", "description": "IP address or hostname of the DNS server.", @@ -78,7 +84,10 @@ "domains": { "title": "Domains", "description": "List of domains or subdomains to query. A random domain will be selected from this list at each iteration.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Domain", "type": "string" diff --git a/src/go/collectors/go.d.plugin/modules/docker_engine/config_schema.json b/src/go/collectors/go.d.plugin/modules/docker_engine/config_schema.json index 3c435878132aba..2beb8e64497f98 100644 --- a/src/go/collectors/go.d.plugin/modules/docker_engine/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/docker_engine/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/dockerhub/config_schema.json b/src/go/collectors/go.d.plugin/modules/dockerhub/config_schema.json index 9e52821e5100db..c791274f8d13c3 100644 --- a/src/go/collectors/go.d.plugin/modules/dockerhub/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/dockerhub/config_schema.json @@ -28,7 +28,10 @@ "repositories": { "title": "Repositories", "description": "List of repositories to monitor.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Name", "description": "The name of the repository.", @@ -74,7 +77,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/elasticsearch/config_schema.json b/src/go/collectors/go.d.plugin/modules/elasticsearch/config_schema.json index fbc9369ceaca77..29303510549d42 100644 --- a/src/go/collectors/go.d.plugin/modules/elasticsearch/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/elasticsearch/config_schema.json @@ -92,7 +92,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/envoy/config_schema.json b/src/go/collectors/go.d.plugin/modules/envoy/config_schema.json index 1ba2c83adecdab..1fa73f66808e2d 100644 --- a/src/go/collectors/go.d.plugin/modules/envoy/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/envoy/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/example/config_schema.json b/src/go/collectors/go.d.plugin/modules/example/config_schema.json index e22617038ab7ad..2f878d4ce777f1 100644 --- a/src/go/collectors/go.d.plugin/modules/example/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/example/config_schema.json @@ -13,7 +13,10 @@ }, "charts": { "title": "Charts configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "type": { "title": "Chart type", @@ -65,7 +68,10 @@ }, "hidden_charts": { "title": "Hidden charts configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "type": { "title": "Chart type", diff --git a/src/go/collectors/go.d.plugin/modules/filecheck/config_schema.json b/src/go/collectors/go.d.plugin/modules/filecheck/config_schema.json index 8a9a6f20869586..bb9e4f4a9a008a 100644 --- a/src/go/collectors/go.d.plugin/modules/filecheck/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/filecheck/config_schema.json @@ -14,12 +14,18 @@ "files": { "title": "File selector", "description": "Configuration for monitoring specific files. If left empy, no files will be monitored.", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "include": { "title": "Include", "description": "Include files that match any of the specified include [patterns](https://golang.org/pkg/path/filepath/#Match).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Filepath", "type": "string", @@ -30,7 +36,10 @@ "exclude": { "title": "Exclude", "description": "Exclude files that match any of the specified exclude [patterns](https://golang.org/pkg/path/filepath/#Match).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Filepath", "type": "string", @@ -52,12 +61,18 @@ "dirs": { "title": "Directory selector", "description": "Configuration for monitoring specific directories. If left empy, no directories will be monitored.", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "include": { "title": "Include", "description": "Include directories that match any of the specified include [patterns](https://golang.org/pkg/path/filepath/#Match).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Directory", "type": "string", @@ -68,7 +83,10 @@ "exclude": { "title": "Exclude", "description": "Exclude directories that match any of the specified exclude [patterns](https://golang.org/pkg/path/filepath/#Match).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Directory", "type": "string", diff --git a/src/go/collectors/go.d.plugin/modules/fluentd/config_schema.json b/src/go/collectors/go.d.plugin/modules/fluentd/config_schema.json index 8b99ea7093c0be..5836254e2926ed 100644 --- a/src/go/collectors/go.d.plugin/modules/fluentd/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/fluentd/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/geth/config_schema.json b/src/go/collectors/go.d.plugin/modules/geth/config_schema.json index 4f66dc356fe79e..58eac1e67e896d 100644 --- a/src/go/collectors/go.d.plugin/modules/geth/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/geth/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/haproxy/config_schema.json b/src/go/collectors/go.d.plugin/modules/haproxy/config_schema.json index 59486b38bfc560..f022d18e68c079 100644 --- a/src/go/collectors/go.d.plugin/modules/haproxy/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/haproxy/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/hdfs/config_schema.json b/src/go/collectors/go.d.plugin/modules/hdfs/config_schema.json index f28985a1dea4ad..1e47314af29e32 100644 --- a/src/go/collectors/go.d.plugin/modules/hdfs/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/hdfs/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/httpcheck/config_schema.json b/src/go/collectors/go.d.plugin/modules/httpcheck/config_schema.json index 96a57c094fe2d4..f3ab6119d5a68d 100644 --- a/src/go/collectors/go.d.plugin/modules/httpcheck/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/httpcheck/config_schema.json @@ -32,7 +32,10 @@ "accepted_statuses": { "title": "Status code check", "description": "Specifies the list of **HTTP response status codes** that are considered **acceptable**. Responses with status codes not included in this list will be categorized as 'bad status' in the status chart.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Code", "type": "integer", @@ -53,9 +56,15 @@ "header_match": { "title": "Header check", "description": "Specifies a set of rules to check for specific key-value pairs in the HTTP headers of the response.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "exclude": { "title": "Exclude", @@ -111,7 +120,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/isc_dhcpd/config_schema.json b/src/go/collectors/go.d.plugin/modules/isc_dhcpd/config_schema.json index f91638ea229854..ae4e27409aec47 100644 --- a/src/go/collectors/go.d.plugin/modules/isc_dhcpd/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/isc_dhcpd/config_schema.json @@ -21,10 +21,16 @@ "pools": { "title": "IP pools", "description": "A list of IP pools to monitor. Each pool consists of a descriptive name and corresponding IP ranges.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "IP pool", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "name": { "title": "Name", diff --git a/src/go/collectors/go.d.plugin/modules/k8s_kubelet/config_schema.json b/src/go/collectors/go.d.plugin/modules/k8s_kubelet/config_schema.json index 4970c59204540a..8d5c2e8615b486 100644 --- a/src/go/collectors/go.d.plugin/modules/k8s_kubelet/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/k8s_kubelet/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/k8s_kubeproxy/config_schema.json b/src/go/collectors/go.d.plugin/modules/k8s_kubeproxy/config_schema.json index dd5238de5aa64c..c1c241fe478ea2 100644 --- a/src/go/collectors/go.d.plugin/modules/k8s_kubeproxy/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/k8s_kubeproxy/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/lighttpd/config_schema.json b/src/go/collectors/go.d.plugin/modules/lighttpd/config_schema.json index 8d420eea3f3772..656e4a3f846bb9 100644 --- a/src/go/collectors/go.d.plugin/modules/lighttpd/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/lighttpd/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/logstash/config_schema.json b/src/go/collectors/go.d.plugin/modules/logstash/config_schema.json index 28f92de8c09fdf..39dc25a01c549d 100644 --- a/src/go/collectors/go.d.plugin/modules/logstash/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/logstash/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/mongodb/config_schema.json b/src/go/collectors/go.d.plugin/modules/mongodb/config_schema.json index 914c5746215e0c..dfe3534e8c79fb 100644 --- a/src/go/collectors/go.d.plugin/modules/mongodb/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/mongodb/config_schema.json @@ -27,12 +27,18 @@ "databases": { "title": "Database selector", "description": "Configuration for monitoring specific databases. If left empty, no [database stats](https://docs.mongodb.com/manual/reference/command/dbStats/) will be collected.", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "includes": { "title": "Include", "description": "Include databases that match any of the specified include [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Pattern", "type": "string" @@ -42,7 +48,10 @@ "excludes": { "title": "Exclude", "description": "Exclude databases that match any of the specified exclude [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Pattern", "type": "string" diff --git a/src/go/collectors/go.d.plugin/modules/nginx/config_schema.json b/src/go/collectors/go.d.plugin/modules/nginx/config_schema.json index 32e8988efbca5d..271c4723bfb7d8 100644 --- a/src/go/collectors/go.d.plugin/modules/nginx/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/nginx/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/nginxplus/config_schema.json b/src/go/collectors/go.d.plugin/modules/nginxplus/config_schema.json index fb8da76e222267..a7ecd855ad5913 100644 --- a/src/go/collectors/go.d.plugin/modules/nginxplus/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/nginxplus/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/nginxvts/config_schema.json b/src/go/collectors/go.d.plugin/modules/nginxvts/config_schema.json index 40f14631807cd0..fab544edb79b74 100644 --- a/src/go/collectors/go.d.plugin/modules/nginxvts/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/nginxvts/config_schema.json @@ -61,7 +61,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/openvpn/config_schema.json b/src/go/collectors/go.d.plugin/modules/openvpn/config_schema.json index 0ad04b1dcb1cab..0b98b70e8d2352 100644 --- a/src/go/collectors/go.d.plugin/modules/openvpn/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/openvpn/config_schema.json @@ -27,12 +27,18 @@ "per_user_stats": { "title": "User selector", "description": "Configuration for monitoring specific users. If left empty, no user stats will be collected.", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "includes": { "title": "Include", "description": "Include users whose usernames match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Username pattern", "type": "string" @@ -42,7 +48,10 @@ "excludes": { "title": "Exclude", "description": "Exclude users whose usernames match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Username pattern", "type": "string" diff --git a/src/go/collectors/go.d.plugin/modules/openvpn_status_log/config_schema.json b/src/go/collectors/go.d.plugin/modules/openvpn_status_log/config_schema.json index cb77a6878fbf13..e47f9c80bfdac2 100644 --- a/src/go/collectors/go.d.plugin/modules/openvpn_status_log/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/openvpn_status_log/config_schema.json @@ -21,12 +21,18 @@ "per_user_stats": { "title": "User selector", "description": "Configuration for monitoring specific users. If left empty, no user stats will be collected.", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "includes": { "title": "Include", "description": "Include users whose usernames match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Username pattern", "type": "string" @@ -36,7 +42,10 @@ "excludes": { "title": "Exclude", "description": "Exclude users whose usernames match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Username pattern", "type": "string" diff --git a/src/go/collectors/go.d.plugin/modules/phpdaemon/config_schema.json b/src/go/collectors/go.d.plugin/modules/phpdaemon/config_schema.json index f05a281a23e2bc..e52c2c2d16c966 100644 --- a/src/go/collectors/go.d.plugin/modules/phpdaemon/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/phpdaemon/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/phpfpm/config_schema.json b/src/go/collectors/go.d.plugin/modules/phpfpm/config_schema.json index 60cc0ae5289371..23928430f4cb7b 100644 --- a/src/go/collectors/go.d.plugin/modules/phpfpm/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/phpfpm/config_schema.json @@ -41,7 +41,10 @@ "type": "string" }, "headers": { - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/pihole/config_schema.json b/src/go/collectors/go.d.plugin/modules/pihole/config_schema.json index 67e3d0462657a3..f5a9085a31a2b1 100644 --- a/src/go/collectors/go.d.plugin/modules/pihole/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/pihole/config_schema.json @@ -68,7 +68,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/ping/config_schema.json b/src/go/collectors/go.d.plugin/modules/ping/config_schema.json index a34232c464c753..d05e518b911137 100644 --- a/src/go/collectors/go.d.plugin/modules/ping/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/ping/config_schema.json @@ -20,7 +20,10 @@ "hosts": { "title": "Network hosts", "description": "List of network hosts (IP addresses or domain names) to send ping packets.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Host", "type": "string" diff --git a/src/go/collectors/go.d.plugin/modules/portcheck/config_schema.json b/src/go/collectors/go.d.plugin/modules/portcheck/config_schema.json index bb2d5a8856454d..f19b8196c5535f 100644 --- a/src/go/collectors/go.d.plugin/modules/portcheck/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/portcheck/config_schema.json @@ -27,7 +27,10 @@ "ports": { "title": "Ports", "description": "A list of ports to monitor for TCP service availability and response time.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Port", "type": "integer", diff --git a/src/go/collectors/go.d.plugin/modules/postgres/config_schema.json b/src/go/collectors/go.d.plugin/modules/postgres/config_schema.json index d925cc6bcdc6b1..842b681c161aea 100644 --- a/src/go/collectors/go.d.plugin/modules/postgres/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/postgres/config_schema.json @@ -46,7 +46,10 @@ "transaction_time_histogram": { "title": "Transaction time histogram", "description": "Buckets for transaction time histogram in milliseconds.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Bucket", "type": "number", @@ -65,7 +68,10 @@ "query_time_histogram": { "title": "Query time histogram", "description": "Buckets for query time histogram in milliseconds.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Bucket", "type": "number", diff --git a/src/go/collectors/go.d.plugin/modules/powerdns/config_schema.json b/src/go/collectors/go.d.plugin/modules/powerdns/config_schema.json index c64cacaf091ef6..965cd6b5248a85 100644 --- a/src/go/collectors/go.d.plugin/modules/powerdns/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/powerdns/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/powerdns_recursor/config_schema.json b/src/go/collectors/go.d.plugin/modules/powerdns_recursor/config_schema.json index d86bc53731b90e..815c9cd4a49e17 100644 --- a/src/go/collectors/go.d.plugin/modules/powerdns_recursor/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/powerdns_recursor/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/prometheus/config_schema.json b/src/go/collectors/go.d.plugin/modules/prometheus/config_schema.json index 7e16d34cf8b88a..1ae63d65751ed6 100644 --- a/src/go/collectors/go.d.plugin/modules/prometheus/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/prometheus/config_schema.json @@ -42,12 +42,18 @@ "selector": { "title": "Selectors", "description": "Configuration for selecting and filtering a set of time series using Prometheus selectors. If left empty, no filtering is applied.", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "allow": { "title": "Allow", "description": "Allow time series that match any of the specified [selectors](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/prometheus/selector#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Selector", "type": "string" @@ -57,7 +63,10 @@ "deny": { "title": "Deny", "description": "Deny time series that match any of the specified [selectors](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/prometheus/selector#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Selector", "type": "string" @@ -83,12 +92,18 @@ "fallback_type": { "title": "Untyped metrics fallback", "description": "Process Untyped metrics as Counter or Gauge instead of ignoring them.", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "gauge": { "title": "As Gauge", "description": "Untyped metrics matching any [pattern](https://golang.org/pkg/path/filepath/#Match) will be processed as Gauge.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Pattern", "type": "string" @@ -98,7 +113,10 @@ "Counter": { "title": "As Counter", "description": "Untyped metrics matching any [pattern](https://golang.org/pkg/path/filepath/#Match) will be processed as Counter.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Pattern", "type": "string" @@ -144,7 +162,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/pulsar/config_schema.json b/src/go/collectors/go.d.plugin/modules/pulsar/config_schema.json index 48e1505ddec238..0357fcc2e1cd7e 100644 --- a/src/go/collectors/go.d.plugin/modules/pulsar/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/pulsar/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/rabbitmq/config_schema.json b/src/go/collectors/go.d.plugin/modules/rabbitmq/config_schema.json index ff6bf6be0e7370..48f7fe5dddc18c 100644 --- a/src/go/collectors/go.d.plugin/modules/rabbitmq/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/rabbitmq/config_schema.json @@ -70,7 +70,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/scaleio/config_schema.json b/src/go/collectors/go.d.plugin/modules/scaleio/config_schema.json index be28e00c46afc7..9969e35befc54f 100644 --- a/src/go/collectors/go.d.plugin/modules/scaleio/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/scaleio/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/snmp/config_schema.json b/src/go/collectors/go.d.plugin/modules/snmp/config_schema.json index dc365b9bab8f97..24d4b455e3d694 100644 --- a/src/go/collectors/go.d.plugin/modules/snmp/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/snmp/config_schema.json @@ -24,7 +24,10 @@ "options": { "title": "Options", "description": "Configuration options for SNMP monitoring.", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "version": { "title": "SNMP version", @@ -76,7 +79,10 @@ "user": { "title": "SNMPv3 configuration", "description": "Configuration options for SNMPv3 authentication and encryption.", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "name": { "title": "Username", @@ -133,12 +139,18 @@ }, "charts": { "title": "Charts configuration", - "type": "array", + "type": [ + "array", + "null" + ], "uniqueItems": true, "minItems": 1, "items": { "title": "Chart", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "id": { "title": "ID", @@ -180,7 +192,10 @@ "multiply_range": { "title": "OID index range", "description": "Specifies the range of indexes used to create multiple charts. If set, a chart will be created for each index in the specified range. Each chart will have the index appended to the OID dimension.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Index", "type": "integer", @@ -192,12 +207,18 @@ "dimensions": { "title": "Dimensions", "description": "Configuration for dimensions of the chart.", - "type": "array", + "type": [ + "array", + "null" + ], "uniqueItems": true, "minItems": 1, "items": { "title": "Dimension configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "oid": { "title": "OID", diff --git a/src/go/collectors/go.d.plugin/modules/squidlog/config_schema.json b/src/go/collectors/go.d.plugin/modules/squidlog/config_schema.json index 2477da3c0dbf43..7935a68f4fd68a 100644 --- a/src/go/collectors/go.d.plugin/modules/squidlog/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/squidlog/config_schema.json @@ -50,7 +50,10 @@ }, "csv_config": { "title": "CSV parser configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "format": { "title": "Format", @@ -82,7 +85,10 @@ }, "regexp_config": { "title": "Regular expression parser configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "pattern": { "title": "Pattern with named groups", @@ -107,12 +113,18 @@ }, "json_config": { "title": "JSON parser configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "mapping": { "title": "Field mapping", "description": "Dictionary mapping fields in logs to known fields.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } @@ -128,7 +140,10 @@ }, "ltsv_config": { "title": "LTSV parser configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "field_delimiter": { "title": "Field delimiter", @@ -145,7 +160,10 @@ "mapping": { "title": "Field mapping", "description": "Dictionary mapping fields in logs to known fields.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/systemdunits/config_schema.json b/src/go/collectors/go.d.plugin/modules/systemdunits/config_schema.json index 465fbee49b6548..1e051667595965 100644 --- a/src/go/collectors/go.d.plugin/modules/systemdunits/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/systemdunits/config_schema.json @@ -21,7 +21,10 @@ "include": { "title": "Include", "description": "Configuration for monitoring specific systemd units. Include systemd units whose names match any of the specified [patterns](https://golang.org/pkg/path/filepath/#Match).", - "type": "array", + "type": [ + "array", + "null" + ], "uniqueItems": true, "minItems": 1, "items": { diff --git a/src/go/collectors/go.d.plugin/modules/tengine/config_schema.json b/src/go/collectors/go.d.plugin/modules/tengine/config_schema.json index 5cace8155c0166..b5bc790fa81760 100644 --- a/src/go/collectors/go.d.plugin/modules/tengine/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/tengine/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/traefik/config_schema.json b/src/go/collectors/go.d.plugin/modules/traefik/config_schema.json index 2bed72383110b7..24c9a470055e75 100644 --- a/src/go/collectors/go.d.plugin/modules/traefik/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/traefik/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/vcsa/config_schema.json b/src/go/collectors/go.d.plugin/modules/vcsa/config_schema.json index c5f891152a4845..d9f4d54c6bbffa 100644 --- a/src/go/collectors/go.d.plugin/modules/vcsa/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/vcsa/config_schema.json @@ -61,7 +61,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/vernemq/config_schema.json b/src/go/collectors/go.d.plugin/modules/vernemq/config_schema.json index 2ae5c7796dce70..dd928bcea95b88 100644 --- a/src/go/collectors/go.d.plugin/modules/vernemq/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/vernemq/config_schema.json @@ -62,7 +62,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/vsphere/config_schema.json b/src/go/collectors/go.d.plugin/modules/vsphere/config_schema.json index 0a467a72be3c42..36cba53e17857c 100644 --- a/src/go/collectors/go.d.plugin/modules/vsphere/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/vsphere/config_schema.json @@ -39,7 +39,10 @@ "host_include": { "title": "Host selectors", "description": "Configuration for monitoring specific hosts. The selector format follows the pattern `/Datacenter/Cluster/Host`, where each value can be set using [Netdata simple patterns](https://github.com/netdata/netdata/tree/master/src/libnetdata/simple_pattern#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "uniqueItems": true, "items": { "title": "Host selector", @@ -55,7 +58,10 @@ "vm_include": { "title": "Virtual machine selectors", "description": "Configuration for monitoring specific virtual machines. The selector format follows the pattern `/Datacenter/Cluster/Host/VM`, where each value can be set using [Netdata simple patterns](https://github.com/netdata/netdata/tree/master/src/libnetdata/simple_pattern#readme).", - "type": "array", + "type": [ + "array", + "null" + ], "uniqueItems": true, "items": { "title": "VM selector", @@ -100,7 +106,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/weblog/config_schema.json b/src/go/collectors/go.d.plugin/modules/weblog/config_schema.json index 60b47c86fc1b5c..2ef2507aa63ef3 100644 --- a/src/go/collectors/go.d.plugin/modules/weblog/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/weblog/config_schema.json @@ -26,7 +26,10 @@ "histogram": { "title": "Request processing time histogram", "description": "Buckets for the histogram in milliseconds.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Bucket", "type": "number", @@ -50,10 +53,16 @@ "url_patterns": { "title": "URL patterns", "description": "Patterns used to match against the full original request URI. For each pattern, the web log will collect responses by status code, method, bandwidth, and processing time.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Patterns", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "name": { "title": "Dimension", @@ -76,11 +85,17 @@ "custom_fields": { "title": "Custom fields", "description": "Configuration for custom fields. Fild value expected to be string. Patterns used to match against the value of the specified field. For each pattern, the web log will collect responses by status code.", - "type": "array", + "type": [ + "array", + "null" + ], "uniqueItems": true, "items": { "title": "Field configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "name": { "title": "Field name", @@ -90,10 +105,16 @@ "patterns": { "title": "Patterns", "description": "", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "User patterns", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "name": { "title": "Dimension", @@ -122,10 +143,16 @@ "custom_time_fields": { "title": "Custom time fields", "description": "Configuration for custom time fields. Field value expected to be numeric and represent time. For each field, the web log will calculate the minimum, average, maximum value, and histogram.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Field configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "name": { "title": "Field mame", @@ -135,7 +162,10 @@ "histogram": { "title": "Histogram", "description": "Buckets for the histogram in milliseconds.", - "type": "array", + "type": [ + "array", + "null" + ], "uniqueItems": true, "items": { "title": "Bucket", @@ -165,10 +195,16 @@ "custom_numeric_fields": { "title": "Custom numeric field", "description": "Configuration for custom numeric fields. Fild value expected to be numeric. For each field, the web log will calculate the minimum, average, maximum value.", - "type": "array", + "type": [ + "array", + "null" + ], "items": { "title": "Field configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "name": { "title": "Name", @@ -229,7 +265,10 @@ }, "csv_config": { "title": "CSV parser configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "format": { "title": "Format", @@ -261,7 +300,10 @@ }, "regexp_config": { "title": "Regular expression parser configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "pattern": { "title": "Pattern with named groups", @@ -286,12 +328,18 @@ }, "json_config": { "title": "JSON parser configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "mapping": { "title": "Field mapping", "description": "Dictionary mapping fields in logs to known fields.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } @@ -307,7 +355,10 @@ }, "ltsv_config": { "title": "LTSV parser configuration", - "type": "object", + "type": [ + "object", + "null" + ], "properties": { "field_delimiter": { "title": "Field delimiter", @@ -324,7 +375,10 @@ "mapping": { "title": "Field mapping", "description": "Dictionary mapping fields in logs to known fields.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" } diff --git a/src/go/collectors/go.d.plugin/modules/windows/config_schema.json b/src/go/collectors/go.d.plugin/modules/windows/config_schema.json index 5b81a46c60f046..244f87dd5b3dc5 100644 --- a/src/go/collectors/go.d.plugin/modules/windows/config_schema.json +++ b/src/go/collectors/go.d.plugin/modules/windows/config_schema.json @@ -60,7 +60,10 @@ "headers": { "title": "Headers", "description": "Additional HTTP headers to include in the request.", - "type": "object", + "type": [ + "object", + "null" + ], "additionalProperties": { "type": "string" }