2015-04-26 13:53:00 +00:00
|
|
|
from orchestra.settings import Setting
|
2014-05-08 16:59:35 +00:00
|
|
|
|
|
|
|
|
2015-04-27 14:54:17 +00:00
|
|
|
ORDERS_BILLING_BACKEND = Setting('ORDERS_BILLING_BACKEND',
|
|
|
|
'orchestra.contrib.orders.billing.BillsBackend',
|
2015-04-27 12:24:17 +00:00
|
|
|
validators=[Setting.validate_import_class],
|
|
|
|
help_text="Pluggable backend for bill generation.",
|
2015-03-31 12:39:08 +00:00
|
|
|
)
|
2014-09-08 14:23:06 +00:00
|
|
|
|
|
|
|
|
2015-04-27 14:54:17 +00:00
|
|
|
ORDERS_SERVICE_MODEL = Setting('ORDERS_SERVICE_MODEL',
|
|
|
|
'services.Service',
|
2015-04-27 12:24:17 +00:00
|
|
|
validators=[Setting.validate_model_label],
|
2015-04-27 14:54:17 +00:00
|
|
|
help_text="Pluggable service class.",
|
2015-03-31 12:39:08 +00:00
|
|
|
)
|
2014-10-01 21:03:16 +00:00
|
|
|
|
|
|
|
|
2015-04-27 14:54:17 +00:00
|
|
|
ORDERS_EXCLUDED_APPS = Setting('ORDERS_EXCLUDED_APPS',
|
|
|
|
(
|
2015-04-27 12:24:17 +00:00
|
|
|
'orders',
|
|
|
|
'admin',
|
|
|
|
'contenttypes',
|
|
|
|
'auth',
|
|
|
|
'migrations',
|
|
|
|
'sessions',
|
|
|
|
'orchestration',
|
|
|
|
'bills',
|
|
|
|
'services',
|
|
|
|
),
|
|
|
|
help_text="Prevent inspecting these apps for service accounting."
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2015-04-27 14:54:17 +00:00
|
|
|
ORDERS_METRIC_ERROR = Setting('ORDERS_METRIC_ERROR',
|
|
|
|
0.01,
|
2015-04-27 12:24:17 +00:00
|
|
|
help_text=("Only account for significative changes.<br>"
|
2015-04-27 14:54:17 +00:00
|
|
|
"metric_storage new value: <tt>lastvalue*(1+threshold) > currentvalue or lastvalue*threshold < currentvalue</tt>."),
|
2015-03-31 12:39:08 +00:00
|
|
|
)
|