ollionorg / cloudendure-python

A Python 3.7+ client and utilities for CloudEndure
https://2ndWatch.github.io/cloudendure-python/
MIT License
11 stars 10 forks source link

CLI helper functions to audit CloudEndure #117

Closed selpan closed 4 years ago

selpan commented 4 years ago

The following functions have been added to support auditing a CloudEndure project from the CLI:

get_machine_sync_details: Returns all machines in a CE project's with their relevant replicationInfo properties to inspect project health

The following functions use get_machine_sync_details to inspect the following contexts:

get_machines_not_synced: Returns machines in a project whose rescanned_storage_bytes (updating) or backlogged_storage_bytes (lagged) is greater than 0.

get_machines_not_started: Returns machines in a project whose replication_status is not STARTED. An example is if a machine needed to be PAUSED from within the console.

get_stale_machines: Returns machines in a project which have not been seen for 24 hours (by default)

All of the functions assume full project inspection and any machine filtering for detailed information would be done downstream by controller scripts.