25.4.3. 이벤트 추가
API는
POST 요청으로 사용자 정의 이벤트를 이벤트 컬렉션에 추가할 수 있습니다. 새 이벤트에는 description,severity,origin, custom_id 요소가 필요합니다. 사용자 지정 이벤트에는 flood_rate,사용자 ID 및 이벤트와 관련된 모든 리소스의 ID 코드가 포함될 수 있습니다. host 및 storage_domain 요소는 external 상태를 설정하는 external_status 요소를 포함할 수 있습니다.
예 25.6. 이벤트 목록에 사용자 정의 이벤트 추가
POST /ovirt-engine/api/events HTTP/1.1
Accept: application/xml
Content-type: application/xml
<event>
<description>The heat of the host is above 30 Oc</description>
<severity>warning</severity>
<origin>HP Openview</origin>
<custom_id>1</custom_id>
<flood_rate>30</flood_rate>
<host id="f59a29cd-587d-48a3-b72a-db537eb21957" >
<external_status>
<state>warning</state>
</external_status>
</host>
</event>