Cisco Cisco Elastic Services Controller 1.0 Developer's Guide

Page of 73
 
5.2.1.4.3  Event Notifications 
Disabling monitor for each VM succeeds with a notification: 
<?xml version="1.0" encoding="UTF-8"?> 
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0"> 
  <eventTime>2015-05-19T21:21:00.262+00:00</eventTime> 
  <escEvent xmlns="http://www.cisco.com/esc/esc"> 
    <status>SUCCESS</status> 
    <status_message>Unset Monitoring VM successfully.</status_message> 
    <svcname>CIRROS_HEZH</svcname> 
    <svcversion>1.6</svcversion> 
    <depname>dep</depname> 
    <tenant>hezh-yesc-0520</tenant> 
    <svcid>90044227-1475-45c2-83ff-aed132f77256</svcid> 
    <depid>187bc0b5-9d0b-4c01-8353-89454a6a1da6</depid> 
    <vm_group>CSR</vm_group> 
    <vm_source> 
      <vmid>5283bcab-c1c3-4699-9bbe-cf143b26c6aa</vmid> 
      <hostid>c64e652a4561392ae20ae702eceae53e417302e0d2d63e41d66a15cc</hostid> 
    </vm_source> 
    <vm_target> 
  </vm_target> 
    <event> 
      <type>VM_MONITOR_UNSET</type> 
    </event> 
  </escEvent> 
</notification> 
 
When all VMs have done unsseting monitors, there is a final notification: 
<?xml version="1.0" encoding="UTF-8"?> 
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0"> 
  <eventTime>2015-05-19T21:21:00.527+00:00</eventTime> 
  <escEvent xmlns="http://www.cisco.com/esc/esc"> 
    <status>SUCCESS</status> 
    <status_message>Service group suspension completed 
successfully</status_message> 
    <svcname>CIRROS_HEZH</svcname> 
    <svcversion>1.6</svcversion> 
    <depname>dep</depname> 
    <tenant>hezh-yesc-0520</tenant> 
    <svcid>90044227-1475-45c2-83ff-aed132f77256</svcid> 
    <depid>187bc0b5-9d0b-4c01-8353-89454a6a1da6</depid> 
    <vm_source> 
  </vm_source> 
    <vm_target> 
  </vm_target> 
    <event> 
      <type>SERVICE_MONITOR_UNSET</type> 
    </event> 
  </escEvent> 
</notification> 
 
If there are errors during disabling the monitors of the service, there will be a final notification indicating 
the error: 
<?xml version="1.0" encoding="UTF-8"?> 
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0"> 
  <eventTime>2015-05-19T21:21:00.527+00:00</eventTime> 
  <escEvent xmlns="http://www.cisco.com/esc/esc"> 
    <status>FAILURE</status> 
    <status_message>Service group disable monitor failed</status_message> 
    <svcname>CIRROS_HEZH</svcname> 
    <svcversion>1.6</svcversion> 
    <depname>dep</depname> 
    <tenant>hezh-yesc-0520</tenant>