panko/ceilometer
Jay Pipes 545200dd22 Add a specialized Event Type model and db table
As the events API gets fleshed out and more robust,
it will become increasingly necessary to ensure that the
database schema modeling events has the ability to quickly
retrieve a list of event types. With the current schema
having a foreign key from event to unique_name (the
monolithic generic string key lookup table), in order to
get a simple list of event types, one needs to do the following:

SELECT DISTINCT e.unique_name FROM event;

Not only is this inefficient, but the readability of the
model and database schema suffers from the generalization of
the unique name field relationship. With this patch, a new
event_type table is added to the schema to allow for quick
and easy lookups of event types like so:

SELECT id, desc FROM event_type;

This will lead to future ability to categorize
event types with ease. Instead of adding columns to the
monolithic unique_name table, we would only need to add a foreign
key relationship to the new event_type table tying the event_type
to a future event_type_class table...

This patch also renames "event_name" to "event_type" everywhere
to avoid confusion.

Change-Id: I6e630ec534f16ba1bb9370d1859ae7640fc6b05b
Partial-Bug: 1211015
2013-11-23 08:57:14 -07:00
..
alarm full pep8 compliance (part 2) 2013-11-21 12:35:01 -05:00
api full pep8 compliance (part 2) 2013-11-21 12:35:01 -05:00
central Merge "Add an insecure option for Keystone client" 2013-11-13 09:13:30 +00:00
collector Add a specialized Event Type model and db table 2013-11-23 08:57:14 -07:00
compute Merge "full pep8 compliance (part 2)" 2013-11-22 10:54:50 +00:00
energy full pep8 compliance (part 2) 2013-11-21 12:35:01 -05:00
image Corrected import order 2013-11-13 14:41:33 +08:00
locale Imported Translations from Transifex 2013-11-20 06:06:09 +00:00
network Corrected import order 2013-11-13 14:41:33 +08:00
objectstore full pep8 compliance (part 2) 2013-11-21 12:35:01 -05:00
openstack Merge "Sync log from oslo" 2013-11-13 13:02:12 +00:00
publisher Merge "full pep8 compliance (part 2)" 2013-11-22 10:54:50 +00:00
storage Add a specialized Event Type model and db table 2013-11-23 08:57:14 -07:00
tests Add a specialized Event Type model and db table 2013-11-23 08:57:14 -07:00
transformer full pep8 compliance (part 2) 2013-11-21 12:35:01 -05:00
volume Corrected import order 2013-11-13 14:41:33 +08:00
__init__.py Remove gettext.install from ceilometer/__init__.py 2013-04-03 22:59:44 +08:00
agent.py Reinitialize pipeline manager for service restart 2013-08-17 23:30:14 +08:00
middleware.py missing resource in middleware notification 2013-08-26 10:06:48 -04:00
notifier.py Corrected import order 2013-11-13 14:41:33 +08:00
nova_client.py Adding region name to service credentials 2013-09-23 13:52:29 -07:00
pipeline.py Corrected import order 2013-11-13 14:41:33 +08:00
plugin.py Apply six for metaclass 2013-10-08 15:22:30 +09:00
sample.py validate counter_type when posting samples 2013-09-11 15:03:09 +00:00
service.py Add an insecure option for Keystone client 2013-10-31 11:27:03 +01:00
utils.py enable sql metadata query 2013-10-25 11:30:59 -04:00