Expanded event_definitions to UsageHandler required traits.

Otherwise the CUF Yagi handler will not be able to create and
publish the CUF records.

Change-Id: Iaac5aaee7d6c17ee58a26f9a64d8fd7148b44b80
This commit is contained in:
Sandy Walsh 2015-02-25 11:03:01 -08:00
parent 74fd693f51
commit 5b17594ce2
2 changed files with 23 additions and 0 deletions

View File

@ -57,12 +57,20 @@
fields: payload.instance_type
state:
fields: payload.state
state_description:
fields: payload.state_description
bandwidth_in:
fields: payload.bandwidth.public.bw_in
bandwidth_out:
fields: payload.bandwidth.public.bw_out
os_architecture:
fields: payload.image_meta.'org.openstack__1__architecture'
os_version:
fields: payload.image_meta.'org.openstack__1__os_version'
os_distro:
fields: payload.image_meta.'org.openstack__1__os_distro'
rax_options:
fields: payload.image_meta.'com.rackspace__1__options'
launched_at:
type: datetime
fields: payload.launched_at
@ -71,6 +79,9 @@
fields:
- payload.deleted_at
- payload.terminated_at
display_name:
fields: payload.display_name
- event_type: compute.instance.exists
traits:
<<: *instance_traits

View File

@ -1,3 +1,4 @@
---
- event_type: compute.instance.*
traits: &instance_traits
tenant_id:
@ -56,12 +57,20 @@
fields: payload.instance_type
state:
fields: payload.state
state_description:
fields: payload.state_description
bandwidth_in:
fields: payload.bandwidth.public.bw_in
bandwidth_out:
fields: payload.bandwidth.public.bw_out
os_architecture:
fields: payload.image_meta.'org.openstack__1__architecture'
os_version:
fields: payload.image_meta.'org.openstack__1__os_version'
os_distro:
fields: payload.image_meta.'org.openstack__1__os_distro'
rax_options:
fields: payload.image_meta.'com.rackspace__1__options'
launched_at:
type: datetime
fields: payload.launched_at
@ -70,6 +79,9 @@
fields:
- payload.deleted_at
- payload.terminated_at
display_name:
fields: payload.display_name
- event_type: compute.instance.exists
traits:
<<: *instance_traits