# Path: statusboard/settings.py
# DEFAULTS = {
#     # Number of incidents in index (1 = today, 0 = deactivate)
#     "INCIDENT_DAYS_IN_INDEX": 7,
#     # Show or not all the open incidents in index
#     "OPEN_INCIDENT_IN_INDEX": True,
#     # Automatic refresth the home page in seconds (disable with 0)
#     "AUTO_REFRESH_INDEX_SECONDS": 0,
#     # Default favicon
#     "FAVICON_DEFAULT": static(
#         "statusboard/favicons/statusboard-icon-default.ico"
#     ),
#     # Favicons for index
#     "FAVICON_INDEX_DICT": {
#         0: static("statusboard/favicons/statusboard-icon-operational.ico"),
#         1: static("statusboard/favicons/statusboard-icon-performance.ico"),
#         2: static("statusboard/favicons/statusboard-icon-partial.ico"),
#         3: static("statusboard/favicons/statusboard-icon-major.ico"),
#     },
# }
# class Settings(object):
#     def __getattr__(self, name):


from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django.dispatch import receiver
from model_utils.models import TimeStampedModel
from .settings import statusconf
# Copyright (C) 2017 Emanuele Di Giacomo <emanuele@digiacomo.cc>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from __future__ import unicode_literals





SERVICE_STATUSES = (
    (0, _("Operational")),
    (1, _("Performance issues")),
    (2, _("Partial outage")),

# Path: statusboard/settings.py
# DEFAULTS = {
#     # Number of incidents in index (1 = today, 0 = deactivate)
#     "INCIDENT_DAYS_IN_INDEX": 7,
#     # Show or not all the open incidents in index
#     "OPEN_INCIDENT_IN_INDEX": True,
#     # Automatic refresth the home page in seconds (disable with 0)
#     "AUTO_REFRESH_INDEX_SECONDS": 0,
#     # Default favicon
#     "FAVICON_DEFAULT": static(
#         "statusboard/favicons/statusboard-icon-default.ico"
#     ),
#     # Favicons for index
#     "FAVICON_INDEX_DICT": {
#         0: static("statusboard/favicons/statusboard-icon-operational.ico"),
#         1: static("statusboard/favicons/statusboard-icon-performance.ico"),
#         2: static("statusboard/favicons/statusboard-icon-partial.ico"),
#         3: static("statusboard/favicons/statusboard-icon-major.ico"),
#     },
# }
# class Settings(object):
#     def __getattr__(self, name):


# Path: statusboard/models.py
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django.dispatch import receiver
from model_utils.models import TimeStampedModel
from .settings import statusconf

# Copyright (C) 2017 Emanuele Di Giacomo <emanuele@digiacomo.cc>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from __future__ import unicode_literals





SERVICE_STATUSES = (
    (0, _("Operational")),
    (1, _("Performance issues")),
    (2, _("Partial outage")),

    (3, _("Major outage")),