To enable data-collector pass data-collector.yaml
YAML format:
```yaml
data_collector_base_directory: "<base directory for data collection>"
collect_data_function: "<import path for data collection method>"
collect_pod_logs: true|false # bool whether to collect logs if resource is a pod
```
YAML Example `ocp_utilities/data-collector.yaml`:
```yaml
data_collector_base_directory: "collected-info"
collect_data_function: "data_collector.collect_data"
collect_pod_logs: true
```
Either export path to yaml file in `OPENSHIFT_PYTHON_WRAPPER_DATA_COLLECTOR_YAML` or set `data_collector` in your py_config
The environment variable takes precedence over py_config.
To use dynamic base directory, export `OPENSHIFT_PYTHON_WRAPPER_DATA_COLLECTOR_DYNAMIC_BASE_DIR`
Example:
```
data_collector_base_directory = "/data/results/collected-info"
OPENSHIFT_PYTHON_WRAPPER_DATA_COLLECTOR_DYNAMIC_BASE_DIR = "dynamic_collector_test_dir"
Result: /data/results/dynamic_collector_test_dir/collected-info
```
Raw data
{
"_id": null,
"home_page": null,
"name": "openshift-python-wrapper-data-collector",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "Openshift, OCP",
"author": "Meni Yakove",
"author_email": "myakove@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/57/95/9028d39697f067b90c1315f352daea56f04880831cd0ed115c6d11bafd4b/openshift_python_wrapper_data_collector-2.0.8.tar.gz",
"platform": null,
"description": "To enable data-collector pass data-collector.yaml\nYAML format:\n```yaml\n data_collector_base_directory: \"<base directory for data collection>\"\n collect_data_function: \"<import path for data collection method>\"\n collect_pod_logs: true|false # bool whether to collect logs if resource is a pod\n```\nYAML Example `ocp_utilities/data-collector.yaml`:\n```yaml\n data_collector_base_directory: \"collected-info\"\n collect_data_function: \"data_collector.collect_data\"\n collect_pod_logs: true\n```\nEither export path to yaml file in `OPENSHIFT_PYTHON_WRAPPER_DATA_COLLECTOR_YAML` or set `data_collector` in your py_config\nThe environment variable takes precedence over py_config.\n\nTo use dynamic base directory, export `OPENSHIFT_PYTHON_WRAPPER_DATA_COLLECTOR_DYNAMIC_BASE_DIR` \nExample:\n```\ndata_collector_base_directory = \"/data/results/collected-info\"\nOPENSHIFT_PYTHON_WRAPPER_DATA_COLLECTOR_DYNAMIC_BASE_DIR = \"dynamic_collector_test_dir\"\n\nResult: /data/results/dynamic_collector_test_dir/collected-info\n```\n\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Data collector for https://github.com/openshift/openshift-python-wrapper when running with PyTest",
"version": "2.0.8",
"project_urls": {
"Bug Tracker": "https://github.com/RedHatQE/openshift-python-wrapper-data-collector/issues",
"Documentation": "https://github.com/RedHatQE/openshift-python-wrapper-data-collector/blob/main/README.md",
"Download": "https://github.com/RedHatQE/openshift-python-wrapper-data-collector/archive/refs/tags/1.0.4.tar.gz",
"Homepage": "https://github.com/RedHatQE/openshift-python-wrapper-data-collector"
},
"split_keywords": [
"openshift",
" ocp"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "57959028d39697f067b90c1315f352daea56f04880831cd0ed115c6d11bafd4b",
"md5": "40f01ce4d03d521601a663b7e8fce774",
"sha256": "a681e5c8b4309b484d0d1e552cafc88c195794031b88a409c9b1dfe65576c2a5"
},
"downloads": -1,
"filename": "openshift_python_wrapper_data_collector-2.0.8.tar.gz",
"has_sig": false,
"md5_digest": "40f01ce4d03d521601a663b7e8fce774",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 8212,
"upload_time": "2025-01-29T06:39:46",
"upload_time_iso_8601": "2025-01-29T06:39:46.360572Z",
"url": "https://files.pythonhosted.org/packages/57/95/9028d39697f067b90c1315f352daea56f04880831cd0ed115c6d11bafd4b/openshift_python_wrapper_data_collector-2.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-29 06:39:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "RedHatQE",
"github_project": "openshift-python-wrapper-data-collector",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "openshift-python-wrapper-data-collector"
}