thousandeyes-sdk-python/thousandeyes-sdk-streaming/docs/Filters.md
2026-09-10 16:54:07 +00:00

1.8 KiB

Filters

Controls which test data the integration exports. testTypes is an inclusion filter: when specified, only data from the selected test types is included. metricsFilter and attributesFilter exclude metrics or attributes from the included data. Filter support depends on the stream's signal and data model version: - For metric streams using data model v1 or v2, both metricsFilter and attributesFilter are supported. - For log and trace streams using data model v2, only attributesFilter is supported. metricsFilter is not supported. On create, an omitted testTypes filter includes all test types, while omitted exclusion filters exclude nothing. On update, each omitted filter remains unchanged. Empty exclusion lists clear existing exclusions; testTypes.values must not be empty.

Properties

Name Type Description Notes
test_types FiltersTestTypes [optional]
metrics_filter FiltersMetrics [optional]
attributes_filter FiltersAttributes [optional]

Example

from thousandeyes_sdk.streaming.models.filters import Filters

# TODO update the JSON string below
json = "{}"
# create an instance of Filters from a JSON string
filters_instance = Filters.from_json(json)
# print the JSON string representation of the object
print(Filters.to_json())

# convert the object into a dict
filters_dict = filters_instance.to_dict()
# create an instance of Filters from a dict
filters_from_dict = Filters.from_dict(filters_dict)

[Back to Model list] [Back to API list] [Back to README]