A Python package to scrape OpenShift/Kubernetes cluster failures
Project description
Cerberus API Client
A Python package to scrape OpenShift/Kubernetes cluster failures stored in SQLite database. It can be used with the 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cerberus-api-client-1.0.0.tar.gz
.
File metadata
- Download URL: cerberus-api-client-1.0.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04ea9dcb771aa459adc8ddd17c34875d726b699d8a70d6e255d6d59cc2b7ff4e |
|
MD5 | e6c01b01f215ed612bec69d6e1ca32ce |
|
BLAKE2b-256 | 5893d6543239f95d0c7ebbd43155b26a856af43899a7a8047f3050e52f354b96 |
File details
Details for the file cerberus_api_client-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: cerberus_api_client-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70d0b9b6c26cfac6e10d89d208bfa5a747c1ac5699b5dc8ea977be304f46f237 |
|
MD5 | af3d171ef4caed3dffb7e47a542a45ef |
|
BLAKE2b-256 | 4bf5e9d345a3efc41ab2489271c5abb2caeaadf5ed73287fcfe7c0961c50fda4 |