From 0120d98528e3d0480a4ba6fa85c138b0df84b0e4 Mon Sep 17 00:00:00 2001 From: zhang-shaoman Date: Wed, 7 Dec 2016 11:02:47 +0800 Subject: [PATCH] Add old vm state for compute.instance.update In compute.instance.update event, Nova reports old vm state in payload.old_state, add this field to traits. Change-Id: Id8266fae47b6fd7119000c9da6d71f035a20477a --- etc/ceilometer/event_definitions.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/ceilometer/event_definitions.yaml b/etc/ceilometer/event_definitions.yaml index 00448c8128..d87e1dca86 100644 --- a/etc/ceilometer/event_definitions.yaml +++ b/etc/ceilometer/event_definitions.yaml @@ -47,6 +47,11 @@ deleted_at: type: datetime fields: payload.deleted_at +- event_type: compute.instance.update + traits: + <<: *instance_traits + old_state: + fields: payload.old_state - event_type: compute.instance.exists traits: <<: *instance_traits