Skip to main content

CloudHealthi CLI

Project description

cloudhealth-fluent

Overview

This is a fluent API that allows users to export CloudHealth data to Excel.

#Quickstart

$ pip install cloudhealth-fluent

Here's a quick example that shows all the features of the fluent API.

from cloudhealth import CloudHealth
c = CloudHealth(ApiKey='CLOUDHEALTH API KEY')
data = c.new().with_measures(['cost', 'ec2_cost_compute', 'ec2_cost_transfer']) \
         .with_select_filter(('AWS-Account',
                              ['012345678901'])) \
         .with_report('olap_reports/cost/current/instance') \
         .with_time('daily') \
         .with_dimension('time') \
         .with_dimension('EC2-Instance-Types') \
         .get_report()
    c.build_data(data)
    c.write_excel('report.xlsx')

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

cloudhealth-cli-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file cloudhealth-cli-0.0.1.tar.gz.

File metadata

  • Download URL: cloudhealth-cli-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for cloudhealth-cli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 87f41186ca1dcdc514f41793278803bf4f1aebc3c2ebf606aeb2df6f5d781b1f
MD5 ce4aa0a56a61bac4d0ec5c8f3ee0def5
BLAKE2b-256 60280d9a30d2d47b8ff12f174fa458b4315f676607350a4ae2d9084f4c915280

See more details on using hashes here.

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