2014-05-08 16:59:35 +00:00
|
|
|
from django.conf import settings
|
|
|
|
|
|
|
|
|
2015-03-29 16:10:07 +00:00
|
|
|
# Pluggable backend for bill generation.
|
2014-09-08 10:03:42 +00:00
|
|
|
ORDERS_BILLING_BACKEND = getattr(settings, 'ORDERS_BILLING_BACKEND',
|
|
|
|
'orchestra.apps.orders.billing.BillsBackend')
|
2014-09-08 14:23:06 +00:00
|
|
|
|
|
|
|
|
2015-03-29 16:10:07 +00:00
|
|
|
# Pluggable service class
|
2014-09-17 10:32:29 +00:00
|
|
|
ORDERS_SERVICE_MODEL = getattr(settings, 'ORDERS_SERVICE_MODEL', 'services.Service')
|
2014-10-01 21:03:16 +00:00
|
|
|
|
|
|
|
|
2015-03-29 16:10:07 +00:00
|
|
|
# Prevent inspecting these apps for service accounting
|
2014-10-01 21:03:16 +00:00
|
|
|
ORDERS_EXCLUDED_APPS = getattr(settings, 'ORDERS_EXCLUDED_APPS', (
|
|
|
|
'orders',
|
|
|
|
'admin',
|
|
|
|
'contenttypes',
|
|
|
|
'auth',
|
|
|
|
'migrations',
|
|
|
|
'sessions',
|
|
|
|
'orchestration',
|
|
|
|
'bills',
|
2014-11-18 13:59:21 +00:00
|
|
|
'services',
|
2014-10-01 21:03:16 +00:00
|
|
|
))
|
2015-03-29 16:10:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Only account for significative changes
|
|
|
|
# metric_storage new value: lastvalue*(1+threshold) > currentvalue or lastvalue*threshold < currentvalue
|
|
|
|
ORDERS_METRIC_THRESHOLD = getattr(settings, 'ORDERS_METRIC_THRESHOLD', 0.4)
|