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.

Source Distribution

cerberus-api-client-1.0.0.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

cerberus_api_client-1.0.0-py2.py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page