Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cerberus-api-client, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size cerberus_api_client-1.0.0-py2.py3-none-any.whl (7.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size cerberus-api-client-1.0.0.tar.gz (6.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page