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.

Files for cloudhealth-cli, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size cloudhealth-cli-0.0.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

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