mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 06:26:51 +00:00
1.6 KiB
1.6 KiB
ExporterConfigSplunkHec
Splunk HEC configuration. This can only be configured when the type is splunk-hec.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| token | str | The Splunk HEC `token`. This is a required field. | [optional] |
| source | str | The Splunk HEC `source`. This field is optional. Default: `ThousandEyesOTel` | [optional] [default to 'ThousandEyesOTel'] |
| source_type | str | The Splunk HEC `sourceType`. This field is optional. Default: `ThousandEyesOTel` | [optional] [default to 'ThousandEyesOTel'] |
| index | str | The name of the Splunk HEC index where the event data will be stored. This field is optional. | [optional] |
Example
from thousandeyes_sdk.streaming.models.exporter_config_splunk_hec import ExporterConfigSplunkHec
# TODO update the JSON string below
json = "{}"
# create an instance of ExporterConfigSplunkHec from a JSON string
exporter_config_splunk_hec_instance = ExporterConfigSplunkHec.from_json(json)
# print the JSON string representation of the object
print(ExporterConfigSplunkHec.to_json())
# convert the object into a dict
exporter_config_splunk_hec_dict = exporter_config_splunk_hec_instance.to_dict()
# create an instance of ExporterConfigSplunkHec from a dict
exporter_config_splunk_hec_from_dict = ExporterConfigSplunkHec.from_dict(exporter_config_splunk_hec_dict)