add cinder events
there are a few 'existence of' meters in cinder that we could represent better as events. this patch adds them to the definition. Change-Id: I69dc1c3eb98b9821c4febb021656d0e9ca78af2e Partial-Bug: #1384874
This commit is contained in:
parent
9b220aaa6f
commit
39d51579d4
@ -60,6 +60,42 @@
|
|||||||
audit_period_ending:
|
audit_period_ending:
|
||||||
type: datetime
|
type: datetime
|
||||||
fields: payload.audit_period_ending
|
fields: payload.audit_period_ending
|
||||||
|
- event_type: ['volume.exists', 'volume.create.*', 'volume.delete.*', 'volume.resize.*', 'volume.attach.*', 'volume.detach.*', 'volume.update.*', 'snapshot.exists', 'snapshot.create.*', 'snapshot.delete.*', 'snapshot.update.*']
|
||||||
|
traits: &cinder_traits
|
||||||
|
user_id:
|
||||||
|
fields: payload.user_id
|
||||||
|
project_id:
|
||||||
|
fields: payload.tenant_id
|
||||||
|
availability_zone:
|
||||||
|
fields: payload.availability_zone
|
||||||
|
display_name:
|
||||||
|
fields: payload.display_name
|
||||||
|
replication_status:
|
||||||
|
fields: payload.replication_status
|
||||||
|
status:
|
||||||
|
fields: payload.status
|
||||||
|
created_at:
|
||||||
|
fields: payload.created_at
|
||||||
|
- event_type: ['volume.exists', 'volume.create.*', 'volume.delete.*', 'volume.resize.*', 'volume.attach.*', 'volume.detach.*', 'volume.update.*']
|
||||||
|
traits:
|
||||||
|
<<: *cinder_traits
|
||||||
|
resource_id:
|
||||||
|
fields: payload.volume_id
|
||||||
|
host:
|
||||||
|
fields: payload.host
|
||||||
|
size:
|
||||||
|
fields: payload.size
|
||||||
|
type:
|
||||||
|
fields: payload.volume_type
|
||||||
|
replication_status:
|
||||||
|
fields: payload.replication_status
|
||||||
|
- event_type: ['snapshot.exists', 'snapshot.create.*', 'snapshot.delete.*', 'snapshot.update.*']
|
||||||
|
traits:
|
||||||
|
<<: *cinder_traits
|
||||||
|
resource_id:
|
||||||
|
fields: payload.snapshot_id
|
||||||
|
volume_id:
|
||||||
|
fields: payload.volume_id
|
||||||
- event_type: orchestration.stack.*
|
- event_type: orchestration.stack.*
|
||||||
traits: &orchestration_crud
|
traits: &orchestration_crud
|
||||||
project_id:
|
project_id:
|
||||||
|
Loading…
Reference in New Issue
Block a user