cerberus-api-client-1.0.0
توضیحات
A Python package to scrape OpenShift/Kubernetes cluster failures
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cerberus-api-client-1.0.0 |
| نام | cerberus-api-client |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Yashashree Suresh |
| ایمیل نویسنده | ysuresh@redhat.com |
| آدرس صفحه اصلی | https://github.com/openshift-scale/cerberus-api-client |
| آدرس اینترنتی | https://pypi.org/project/cerberus-api-client/ |
| مجوز | mit |
# Cerberus API Client
A Python package to scrape OpenShift/Kubernetes cluster failures stored in SQLite database. It can be used with the [Cerberus](https://github.com/openshift-scale/cerberus) tool.
### Submodules
#### cerberus_api_client.client.custom_query_loopback module
`custom_query_loopback(database, loopback=60, issue="", name="", component="")`
Retrieve the failures satisfying the criteria specified by parameters in the past `loopback` minutes in the json format.
Parameters:
- database: (str) Path where cerberus database is stored.
- loopback: (int) Time in minutes.
- issue: (list) A list of issue types.
- name: (list) A list of component names (e.g. pod names, node names).
- component: (list) A list of component types.
#### cerberus_api_client.client.custom_query_interval module
`custom_query_interval(database, start_time="", finish_time="", issue="", name="", component="")`
Retrieve the failures between `start_time` and `finish_time` that satisfy the criteria specified by parameters in the json format.
Parameters:
- database: (str) Path where cerberus database is stored.
- start_time: (timestamp) Timestamp in `%Y-%m-%d %H:%M:%S` format.
- finish_time: (timestamp) Timestamp in `%Y-%m-%d %H:%M:%S` format.
- issue: (list) A list of issue types.
- name: (list) A list of component names (e.g. pod names, node names).
- component: (list) A list of component types.
نحوه نصب
نصب پکیج whl cerberus-api-client-1.0.0:
pip install cerberus-api-client-1.0.0.whl
نصب پکیج tar.gz cerberus-api-client-1.0.0:
pip install cerberus-api-client-1.0.0.tar.gz