isitfit
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: isitfit | ||
| Version: 0.20.5 | ||
| Version: 0.20.6 | ||
| Summary: Command-line tool to calculate excess AWS cloud resource capacity | ||
@@ -5,0 +5,0 @@ Home-page: https://gitlab.com/autofitcloud/isitfit |
@@ -1,1 +0,1 @@ | ||
| isitfit_version='0.20.5' | ||
| isitfit_version='0.20.6' |
@@ -49,2 +49,10 @@ """ | ||
| h_rev = datadog.api.Hosts.search(count=MAX_COUNT) | ||
| if 'status' in h_rev: | ||
| if h_rev['status']=='error': | ||
| msg = "Datadog API/APP keys configured wrong?" | ||
| if 'errors' in h_rev: msg += " Got error: %s"%", ".join(h_rev['errors']) | ||
| from isitfit.cli.click_descendents import IsitfitCliError | ||
| raise IsitfitCliError(msg) | ||
| # alternatively, can use host_name here. | ||
@@ -274,2 +282,4 @@ # Note the similar field used in self.hosts_search below. | ||
| def is_configured(self): | ||
| from isitfit.utils import ping_matomo | ||
| # check not None and not empty string | ||
@@ -280,2 +290,3 @@ if os.getenv('DATADOG_API_KEY', None): | ||
| logger.info("Datadog env vars available") | ||
| ping_matomo("/cost/setting?datadog.is_configured=True") | ||
| self.print_configured = False | ||
@@ -286,2 +297,3 @@ return True | ||
| logger.info("Datadog env vars missing. Set DATADOG_API_KEY and DATADOG_APP_KEY to get memory data from Datadog.") | ||
| ping_matomo("/cost/setting?datadog.is_configured=False") | ||
| self.print_configured = False | ||
@@ -288,0 +300,0 @@ |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: isitfit | ||
| Version: 0.20.5 | ||
| Version: 0.20.6 | ||
| Summary: Command-line tool to calculate excess AWS cloud resource capacity | ||
@@ -5,0 +5,0 @@ Home-page: https://gitlab.com/autofitcloud/isitfit |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
377146
0.13%8642
0.1%