Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use consistent formatting for boolean values #7405

Merged
merged 2 commits into from
Aug 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion activemq/datadog_checks/activemq/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ init_config:
#
collect_default_metrics: true

## @param new_gc_metrics - boolean - optional - default: False
## @param new_gc_metrics - boolean - optional - default: false
## Set to true to use better metric names for garbage collection metrics.
## jvm.gc.cms.count => jvm.gc.minor_collection_count
## jvm.gc.major_collection_count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ init_config:
#
collect_default_metrics: true

## @param new_gc_metrics - boolean - optional - default: False
## @param new_gc_metrics - boolean - optional - default: false
## Set to true to use better metric names for garbage collection metrics.
## jvm.gc.cms.count => jvm.gc.minor_collection_count
## jvm.gc.major_collection_count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ init_config:
#
collect_default_metrics: true

## @param new_gc_metrics - boolean - optional - default: False
## @param new_gc_metrics - boolean - optional - default: false
## Set to true to use better metric names for garbage collection metrics.
## jvm.gc.cms.count => jvm.gc.minor_collection_count
## jvm.gc.major_collection_count
Expand Down
2 changes: 1 addition & 1 deletion consul/datadog_checks/consul/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ instances:
#
- url: http://localhost:8500

## @param use_prometheus_endpoint - boolean - optional - default: False
## @param use_prometheus_endpoint - boolean - optional - default: false
## Whether to use the Prometheus endpoint to get more metrics.
## The Prometheus endpoint is available for Consul versions v1.1.0 or higher.
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,12 @@ def write_option(option, writer, indent='', start_list=False):
if not required:
if 'default' in value:
default = value['default']
default_type = type(default)
if default is not None:
if type(default) is str:
if default_type is str:
writer.write(' - default: ', default)
elif default_type is bool:
writer.write(' - default: ', 'true' if default else 'false')
else:
writer.write(' - default: ', repr(default))
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ init_config:
#
collect_default_metrics: true

## @param new_gc_metrics - boolean - optional - default: False
## @param new_gc_metrics - boolean - optional - default: false
## Set to true to use better metric names for garbage collection metrics.
## jvm.gc.cms.count => jvm.gc.minor_collection_count
## jvm.gc.major_collection_count
Expand Down
2 changes: 1 addition & 1 deletion hive/datadog_checks/hive/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ init_config:
#
collect_default_metrics: true

## @param new_gc_metrics - boolean - optional - default: False
## @param new_gc_metrics - boolean - optional - default: false
## Set to true to use better metric names for garbage collection metrics.
## jvm.gc.cms.count => jvm.gc.minor_collection_count
## jvm.gc.major_collection_count
Expand Down
2 changes: 1 addition & 1 deletion hivemq/datadog_checks/hivemq/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ init_config:
#
collect_default_metrics: true

## @param new_gc_metrics - boolean - optional - default: False
## @param new_gc_metrics - boolean - optional - default: false
## Set to true to use better metric names for garbage collection metrics.
## jvm.gc.cms.count => jvm.gc.minor_collection_count
## jvm.gc.major_collection_count
Expand Down
2 changes: 1 addition & 1 deletion ignite/datadog_checks/ignite/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ init_config:
#
collect_default_metrics: true

## @param new_gc_metrics - boolean - optional - default: False
## @param new_gc_metrics - boolean - optional - default: false
## Set to true to use better metric names for garbage collection metrics.
## jvm.gc.cms.count => jvm.gc.minor_collection_count
## jvm.gc.major_collection_count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ init_config:
#
collect_default_metrics: true

## @param new_gc_metrics - boolean - optional - default: False
## @param new_gc_metrics - boolean - optional - default: false
## Set to true to use better metric names for garbage collection metrics.
## jvm.gc.cms.count => jvm.gc.minor_collection_count
## jvm.gc.major_collection_count
Expand Down
2 changes: 1 addition & 1 deletion kafka/datadog_checks/kafka/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ init_config:
#
collect_default_metrics: true

## @param new_gc_metrics - boolean - optional - default: False
## @param new_gc_metrics - boolean - optional - default: false
## Set to true to use better metric names for garbage collection metrics.
## jvm.gc.cms.count => jvm.gc.minor_collection_count
## jvm.gc.major_collection_count
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ instances:
#
# bearer_token_path: /var/run/secrets/kubernetes.io/serviceaccount/token

## @param ssl_verify - boolean - optional - default: False
## @param ssl_verify - boolean - optional - default: false
## Used to verify self signed certificates.
#
# ssl_verify: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ instances:
# exclude_labels:
# - timestamp

## @param bearer_token_auth - boolean - optional - default: True
## @param bearer_token_auth - boolean - optional - default: true
## If set to true, adds a bearer token authentication header.
## Note: If bearer_token_path is not set, the default path is /var/run/secrets/kubernetes.io/serviceaccount/token.
#
Expand Down
2 changes: 1 addition & 1 deletion postgres/datadog_checks/postgres/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ instances:
#
# dbname: <DBNAME>

## @param ssl - string - optional - default: False
## @param ssl - string - optional - default: false
## This option determines whether or not and with what priority a secure SSL TCP/IP connection
## is negotiated with the server. There are six modes:
## - `disable`: Only tries a non-SSL connection.
Expand Down
2 changes: 1 addition & 1 deletion solr/datadog_checks/solr/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ init_config:
#
collect_default_metrics: true

## @param new_gc_metrics - boolean - optional - default: False
## @param new_gc_metrics - boolean - optional - default: false
## Set to true to use better metric names for garbage collection metrics.
## jvm.gc.cms.count => jvm.gc.minor_collection_count
## jvm.gc.major_collection_count
Expand Down
2 changes: 1 addition & 1 deletion tokumx/datadog_checks/tokumx/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ instances:
#
- server: mongodb://localhost:27017

## @param ssl - boolean - optional - default: False
## @param ssl - boolean - optional - default: false
## Optional SSL parameters, see
## https://github.com/mongodb/mongo-python-driver/blob/2.6.3/pymongo/mongo_client.py#L193-L212
## for more details
Expand Down
2 changes: 1 addition & 1 deletion tomcat/datadog_checks/tomcat/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ init_config:
#
collect_default_metrics: true

## @param new_gc_metrics - boolean - optional - default: False
## @param new_gc_metrics - boolean - optional - default: false
## Set to true to use better metric names for garbage collection metrics.
## jvm.gc.cms.count => jvm.gc.minor_collection_count
## jvm.gc.major_collection_count
Expand Down