Cisco Cisco Prime Network Services Controller 3.0 Guide Du Développeur

Page de 103
Page 88 
OL-28369-01 
eventSendHeartbeat 
The following example shows how to send an event that indicates the current session is still active. 
Request Syntax 
<xs:element name="eventSendHeartbeat" type="eventSendHeartbeat" 
substitutionGroup="externalMethod"/> 
<xs:complexType name="eventSendHeartbeat" mixed="true"> 
<xs:attribute name="cookie" type="xs:string"/> 
<xs:attribute name="response" type="YesOrNo"/> 
</xs:complexType> 
Response Syntax 
<xs:element name="eventSendHeartbeat" type="eventSendHeartbeat" 
substitutionGroup="externalMethod"/> 
<xs:complexType name="eventSendHeartbeat" mixed="true"> 
<xs:attribute name="outSystemTime" type="dateTime"/> 
<xs:attribute name="cookie" type="xs:string"/> 
<xs:attribute name="response" type="YesOrNo"/> 
<xs:attribute name="errorCode" type="xs:unsignedInt"/> 
<xs:attribute name="errorDescr" type="xs:string"/> 
<xs:attribute name="invocationResult" type="xs:string"/> 
</xs:complexType> 
Example 
Request 
When the client application subscribes to an event or events using eventSubscribeApps or eventSubscribe, the 
Prime Network Services Controller sends eventSendHeartbeat periodically (default 120 seconds). 
Response 
<eventSendHeartbeat cookie="0/0/0/2a76" 
commCookie="" 
srcExtSys="0.0.0.0" 
destExtSys="0.0.0.0" 
srcSvc="" 
destSvc="" 
response="yes" 
outSystemTime="2010-11-12T20:38:19.630"> 
</eventSendHeartbeat> 
eventSubscribe 
The following example shows how to send a subscribe request for activity. 
Request Syntax 
<xs:element name="eventSubscribe" type="eventSubscribe" 
substitutionGroup="externalMethod"/> 
<xs:complexType name="eventSubscribe" mixed="true"> 
<xs:all> 
<xs:element name="inFilter" type="filterFilter" minOccurs="0"/> 
</xs:all> 
<xs:attribute name="cookie" type="xs:string"/> 
<xs:attribute name="response" type="YesOrNo"/> 
</xs:complexType> 
Response Syntax 
<xs:element name="eventSubscribe" type="eventSubscribe"