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
Hashes for cerberus-api-client-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04ea9dcb771aa459adc8ddd17c34875d726b699d8a70d6e255d6d59cc2b7ff4e |
|
MD5 | e6c01b01f215ed612bec69d6e1ca32ce |
|
BLAKE2b-256 | 5893d6543239f95d0c7ebbd43155b26a856af43899a7a8047f3050e52f354b96 |
Hashes for cerberus_api_client-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70d0b9b6c26cfac6e10d89d208bfa5a747c1ac5699b5dc8ea977be304f46f237 |
|
MD5 | af3d171ef4caed3dffb7e47a542a45ef |
|
BLAKE2b-256 | 4bf5e9d345a3efc41ab2489271c5abb2caeaadf5ed73287fcfe7c0961c50fda4 |