Murat Parlakisik | 638c65f | 2017-05-31 11:10:24 +0300 | [diff] [blame^] | 1 | # Monitoring models |
| 2 | from django.db import models |
| 3 | from django.core.validators import URLValidator |
| 4 | from core.models import Service, PlCoreBase, Slice, Instance, Tenant, TenantWithContainer, Node, Image, User, Flavor, ServiceDependency, ServiceMonitoringAgentInfo |
| 5 | from core.models.plcorebase import StrippedCharField |
| 6 | import os |
| 7 | from django.db import models, transaction |
| 8 | from django.forms.models import model_to_dict |
| 9 | from django.db.models import Q |
| 10 | from operator import itemgetter, attrgetter, methodcaller |
| 11 | import traceback |
| 12 | from xos.exceptions import * |
| 13 | from core.models import SlicePrivilege, SitePrivilege |
| 14 | from sets import Set |
| 15 | from urlparse import urlparse |
| 16 | |
| 17 | class ConfigurationError(Exception): |
| 18 | pass |
| 19 | |
| 20 | |
| 21 | CEILOMETER_KIND = "ceilometer" |
| 22 | #Ensure the length of name for 'kind' attribute is below 30 |
| 23 | CEILOMETER_PUBLISH_TENANT_KIND = "ceilo-publish-tenant" |
| 24 | CEILOMETER_PUBLISH_TENANT_OS_KIND = "ceilo-os-publish-tenant" |
| 25 | CEILOMETER_PUBLISH_TENANT_ONOS_KIND = "ceilo-onos-publish-tenant" |
| 26 | CEILOMETER_PUBLISH_TENANT_USER_KIND = "ceilo-user-publish-tenant" |