Skip to main content

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.

Release files for cerberus-api-client 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cerberus-api-client 1.0.0
File Size Uploaded
cerberus-api-client-1.0.0.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cerberus-api-client 1.0.0
File Interpreter ABI Platform
cerberus_api_client-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 13.5 kB

Release files / cerberus-api-client-1.0.0.tar.gz

Download URL cerberus-api-client-1.0.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
04ea9dcb771aa459adc8ddd17c34875d726b699d8a70d6e255d6d59cc2b7ff4e
BLAKE2b-256 checksum
How to use checksums
5893d6543239f95d0c7ebbd43155b26a856af43899a7a8047f3050e52f354b96
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / cerberus_api_client-1.0.0-py2.py3-none-any.whl

Download URL cerberus_api_client-1.0.0-py2.py3-none-any.whl
Size 7.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
70d0b9b6c26cfac6e10d89d208bfa5a747c1ac5699b5dc8ea977be304f46f237
BLAKE2b-256 checksum
How to use checksums
4bf5e9d345a3efc41ab2489271c5abb2caeaadf5ed73287fcfe7c0961c50fda4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page