Skip to content

Commit 9ee0b1e

Browse files
Update model for new use_ssl config
1 parent 4105e37 commit 9ee0b1e

4 files changed

Lines changed: 19 additions & 0 deletions

File tree

tibco_ems/assets/configuration/spec.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,12 @@ files:
6363
value:
6464
type: string
6565
require_trusted_provider: true
66+
- name: use_ssl
67+
description: |
68+
Set to `true` to connect to the Tibco EMS server using SSL (`ssl://host:port`).
69+
When `false`, the check uses `tcp://host:port`.
70+
value:
71+
type: boolean
72+
default: false
73+
example: false
6674
- template: instances/default

tibco_ems/datadog_checks/tibco_ems/config_models/defaults.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ def instance_min_collection_interval():
3434

3535
def instance_port():
3636
return 7222
37+
38+
39+
def instance_use_ssl():
40+
return False

tibco_ems/datadog_checks/tibco_ems/config_models/instance.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class InstanceConfig(BaseModel):
4949
service: Optional[str] = None
5050
tags: Optional[tuple[str, ...]] = None
5151
tibemsadmin: Optional[str] = None
52+
use_ssl: Optional[bool] = None
5253
username: Optional[str] = None
5354

5455
@model_validator(mode='before')

tibco_ems/datadog_checks/tibco_ems/data/conf.yaml.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ instances:
5858
#
5959
# tibemsadmin: <TIBEMSADMIN>
6060

61+
## @param use_ssl - boolean - optional - default: false
62+
## Set to `true` to connect to the Tibco EMS server using SSL (`ssl://host:port`).
63+
## When `false`, the check uses `tcp://host:port`.
64+
#
65+
# use_ssl: false
66+
6167
## @param tags - list of strings - optional
6268
## A list of tags to attach to every metric and service check emitted by this instance.
6369
##

0 commit comments

Comments
 (0)