Module: CloudCostTracker::Billing

Defined in:
lib/cloud_cost_tracker/billing/rds/servers.rb,
lib/cloud_cost_tracker/models/billing_code.rb,
lib/cloud_cost_tracker/models/billing_record.rb,
lib/cloud_cost_tracker/billing/rds/server_storage.rb,
lib/cloud_cost_tracker/billing/compute/aws/servers.rb,
lib/cloud_cost_tracker/billing/compute/aws/volumes.rb,
lib/cloud_cost_tracker/billing/elasticache/clusters.rb,
lib/cloud_cost_tracker/billing/compute/aws/snapshots.rb,
lib/cloud_cost_tracker/billing/account_billing_policy.rb,
lib/cloud_cost_tracker/billing/resource_billing_policy.rb,
lib/cloud_cost_tracker/billing/storage/aws/directories.rb

Defined Under Namespace

Modules: AWS, Compute, Storage Classes: AccountBillingPolicy, BillingCode, BillingRecord, ResourceBillingPolicy

Constant Summary collapse

PRECISION =

(Should match database migration precision)

10
CONSTANTS_DIR =

Defines a directory for holding YML pricing constants

File.join(File.dirname(__FILE__),'../../../config/billing')
SECONDS_PER_MINUTE =

Some time and size constants

60
SECONDS_PER_HOUR =
SECONDS_PER_MINUTE * 60
SECONDS_PER_DAY =
SECONDS_PER_HOUR * 24
SECONDS_PER_YEAR =
SECONDS_PER_DAY * 365
SECONDS_PER_MONTH =
SECONDS_PER_YEAR / 12
BYTES_PER_KB =
1024
BYTES_PER_MB =
BYTES_PER_KB * 1024
BYTES_PER_GB =
BYTES_PER_MB * 1024