2015-05-04 19:52:53 +00:00
|
|
|
from orchestra.contrib.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',
|
2016-06-17 10:00:04 +00:00
|
|
|
'mailer',
|
|
|
|
'issues',
|
2015-04-27 12:24:17 +00:00
|
|
|
),
|
|
|
|
help_text="Prevent inspecting these apps for service accounting."
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2015-04-27 14:54:17 +00:00
|
|
|
ORDERS_METRIC_ERROR = Setting('ORDERS_METRIC_ERROR',
|
2015-04-29 10:51:30 +00:00
|
|
|
0.05,
|
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
|
|
|
)
|
2015-09-10 10:34:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
ORDERS_BILLED_METRIC_CLEANUP_DAYS = Setting('ORDERS_BILLED_METRIC_CLEANUP_DAYS',
|
|
|
|
40,
|
|
|
|
help_text=("Number of days after a billed stored metric is deleted."),
|
|
|
|
)
|