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