From: <ipe...@hy...> - 2008-08-19 12:44:17
|
Author: iperumal Date: 2008-08-19 05:44:14 -0700 (Tue, 19 Aug 2008) New Revision: 223 URL: http://svn.hyperic.org/?view=rev&root=HQApi&revision=223 Added: trunk/hqu/hqapi1/examples/escalation/escalationCreateForUpdate.xml trunk/hqu/hqapi1/examples/escalation/escalationEmailAction.xml trunk/hqu/hqapi1/examples/escalation/escalationGetList.sh trunk/hqu/hqapi1/examples/escalation/escalationSyncCreate.sh trunk/hqu/hqapi1/examples/escalation/escalationSyncCreate.xml trunk/hqu/hqapi1/examples/escalation/escalationSyncCreateForUdpate.xml trunk/hqu/hqapi1/examples/escalation/escalationSyncUpdate.sh trunk/hqu/hqapi1/examples/escalation/escalationSyncUpdate.xml trunk/hqu/hqapi1/examples/escalation/escalationUpdate.sh trunk/hqu/hqapi1/examples/escalation/escalationUpdate.xml Modified: trunk/hqu/hqapi1/examples/escalation/escalationCreate.xml trunk/hqu/hqapi1/examples/escalation/escalationDelete.sh Log: Escalation examples - Added more escalations to the create example - Added delete/update/sync-create/sync-update examples Modified: trunk/hqu/hqapi1/examples/escalation/escalationCreate.xml =================================================================== --- trunk/hqu/hqapi1/examples/escalation/escalationCreate.xml 2008-08-18 18:51:08 UTC (rev 222) +++ trunk/hqu/hqapi1/examples/escalation/escalationCreate.xml 2008-08-19 12:44:14 UTC (rev 223) @@ -1,17 +1,24 @@ -<SyncEscalationsRequest> +<SyncEscalationsRequest> + <!-- Escalation with Email Action --> + <Escalation name="Escalation EmailAction NotifyRoles - ApiTest" + description="ApiTest example with EmailAction NotifyRoles" pauseAllowed="true" maxPauseTime="3000" + notifyAll="true" repeat="false"> + <Action wait="72000" actionType="EmailAction" notifyType="notifyRoles" sms="false"> + <Notify name="Super User Role"></Notify> + </Action> + </Escalation> + <Escalation name="Escalation EmailAction NotifyUsers- ApiTest" + description="ApiTest example with EmailAction notifyUsers" pauseAllowed="true" maxPauseTime="3000" + notifyAll="true" repeat="false"> + <Action wait="72000" actionType="EmailAction" notifyType="notifyUsers" sms="true"> + <Notify name="hqadmin"></Notify> + </Action> + </Escalation> + <!-- Escalation with Suppress action --> <Escalation name="Escalation SuppressAction - ApiTest" description="ApiTest example with SuppressAction" pauseAllowed="true" maxPauseTime="3000" notifyAll="true" repeat="false"> - <Action wait="36000" actionType="NoOpAction"> - <SuppressAction typeName="suppressAction"/> - </Action> - </Escalation> - <Escalation name="Escalation EmailAction - ApiTest" - description="ApiTest example with EmailAction" pauseAllowed="true" maxPauseTime="3000" - notifyAll="true" repeat="false"> - <Action wait="72000" actionType="EmailAction" notifyType="notifyRoles" sms="false"> - <Notify name="Super User Role"></Notify> - <EmailAction typeName="EmailAction"/> - </Action> - </Escalation> + <Action wait="36000" actionType="NoOpAction"> + </Action> + </Escalation> </SyncEscalationsRequest> \ No newline at end of file Added: trunk/hqu/hqapi1/examples/escalation/escalationCreateForUpdate.xml =================================================================== --- trunk/hqu/hqapi1/examples/escalation/escalationCreateForUpdate.xml (rev 0) +++ trunk/hqu/hqapi1/examples/escalation/escalationCreateForUpdate.xml 2008-08-19 12:44:14 UTC (rev 223) @@ -0,0 +1,10 @@ +<SyncEscalationsRequest> + <!-- Escalation with Email Action --> + <Escalation name="Escalation EmailAction - CreateUpdate" + description="Escalation EmailAction Create" pauseAllowed="true" maxPauseTime="3000" + notifyAll="true" repeat="false"> + <Action wait="72000" actionType="EmailAction" notifyType="notifyRoles" sms="false"> + <Notify name="Super User Role"></Notify> + </Action> + </Escalation> +</SyncEscalationsRequest> \ No newline at end of file Modified: trunk/hqu/hqapi1/examples/escalation/escalationDelete.sh =================================================================== --- trunk/hqu/hqapi1/examples/escalation/escalationDelete.sh 2008-08-18 18:51:08 UTC (rev 222) +++ trunk/hqu/hqapi1/examples/escalation/escalationDelete.sh 2008-08-19 12:44:14 UTC (rev 223) @@ -1,3 +1,3 @@ #!/bin/sh ## Specify the escalation id -curl -uhqadmin http://localhost:7080/hqu/hqapi1/escalation/delete.hqu?id=10001 \ No newline at end of file +curl -uhqadmin http://localhost:7080/hqu/hqapi1/escalation/delete.hqu?id=10017 \ No newline at end of file Added: trunk/hqu/hqapi1/examples/escalation/escalationEmailAction.xml =================================================================== --- trunk/hqu/hqapi1/examples/escalation/escalationEmailAction.xml (rev 0) +++ trunk/hqu/hqapi1/examples/escalation/escalationEmailAction.xml 2008-08-19 12:44:14 UTC (rev 223) @@ -0,0 +1,10 @@ +<SyncEscalationsRequest> + <Escalation name="Escalation EmailAction - ApiTest" + description="ApiTest example with EmailAction" pauseAllowed="true" maxPauseTime="3000" + notifyAll="true" repeat="false"> + <Action wait="10" actionType="EmailAction" notifyType="notifyRoles" sms="false"> + <Notify name="Super User Role"></Notify> + <EmailAction typeName="EmailAction"/> + </Action> + </Escalation> +</SyncEscalationsRequest> \ No newline at end of file Added: trunk/hqu/hqapi1/examples/escalation/escalationGetList.sh =================================================================== --- trunk/hqu/hqapi1/examples/escalation/escalationGetList.sh (rev 0) +++ trunk/hqu/hqapi1/examples/escalation/escalationGetList.sh 2008-08-19 12:44:14 UTC (rev 223) @@ -0,0 +1,3 @@ +#!/bin/sh + +curl -uhqadmin http://localhost:7080/hqu/hqapi1/escalation/list.hqu \ No newline at end of file Added: trunk/hqu/hqapi1/examples/escalation/escalationSyncCreate.sh =================================================================== --- trunk/hqu/hqapi1/examples/escalation/escalationSyncCreate.sh (rev 0) +++ trunk/hqu/hqapi1/examples/escalation/escalationSyncCreate.sh 2008-08-19 12:44:14 UTC (rev 223) @@ -0,0 +1,3 @@ +#!/bin/sh +DIR=`dirname $0` +curl -uhqadmin http://localhost:7080/hqu/hqapi1/escalation/sync.hqu -Fpostdata=@"$DIR/escalationSyncCreate.xml" Added: trunk/hqu/hqapi1/examples/escalation/escalationSyncCreate.xml =================================================================== --- trunk/hqu/hqapi1/examples/escalation/escalationSyncCreate.xml (rev 0) +++ trunk/hqu/hqapi1/examples/escalation/escalationSyncCreate.xml 2008-08-19 12:44:14 UTC (rev 223) @@ -0,0 +1,9 @@ +<SyncEscalationsRequest> + <!-- Escalation with Email Action --> + <Escalation name="Escalation EmailAction - SyncCreate" + description="Escalation EmailAction Sync Create" pauseAllowed="false" maxPauseTime="3000" notifyAll="true" repeat="false"> + <Action wait="72000" actionType="EmailAction" notifyType="notifyRoles" sms="false"> + <Notify name="Guest Role"></Notify> + </Action> + </Escalation> +</SyncEscalationsRequest> \ No newline at end of file Added: trunk/hqu/hqapi1/examples/escalation/escalationSyncCreateForUdpate.xml =================================================================== --- trunk/hqu/hqapi1/examples/escalation/escalationSyncCreateForUdpate.xml (rev 0) +++ trunk/hqu/hqapi1/examples/escalation/escalationSyncCreateForUdpate.xml 2008-08-19 12:44:14 UTC (rev 223) @@ -0,0 +1,9 @@ +<SyncEscalationsRequest> + <!-- Escalation with Email Action --> + <Escalation name="Escalation EmailAction - SyncCreateForUpdate" + description="Escalation EmailAction SyncCreateForUpdate" pauseAllowed="false" maxPauseTime="3000" notifyAll="true" repeat="false"> + <Action wait="72000" actionType="EmailAction" notifyType="notifyRoles" sms="false"> + <Notify name="Super User Role"></Notify> + </Action> + </Escalation> +</SyncEscalationsRequest> \ No newline at end of file Added: trunk/hqu/hqapi1/examples/escalation/escalationSyncUpdate.sh =================================================================== --- trunk/hqu/hqapi1/examples/escalation/escalationSyncUpdate.sh (rev 0) +++ trunk/hqu/hqapi1/examples/escalation/escalationSyncUpdate.sh 2008-08-19 12:44:14 UTC (rev 223) @@ -0,0 +1,8 @@ +#!/bin/sh +DIR=`dirname $0` + +## Sync Create Escalation +curl -uhqadmin http://localhost:7080/hqu/hqapi1/escalation/sync.hqu -Fpostdata=@"$DIR/escalationSyncCreateForUdpate.xml" + +## Sync Update Escalation +curl -uhqadmin http://localhost:7080/hqu/hqapi1/escalation/sync.hqu -Fpostdata=@"$DIR/escalationSyncUpdate.xml" Added: trunk/hqu/hqapi1/examples/escalation/escalationSyncUpdate.xml =================================================================== --- trunk/hqu/hqapi1/examples/escalation/escalationSyncUpdate.xml (rev 0) +++ trunk/hqu/hqapi1/examples/escalation/escalationSyncUpdate.xml 2008-08-19 12:44:14 UTC (rev 223) @@ -0,0 +1,12 @@ +<SyncEscalationsRequest> + <!-- Escalation with Email Action --> + <Escalation name="Escalation EmailAction - SyncCreateForUpdate" + description="Escalation EmailAction SyncUpdate" pauseAllowed="false" maxPauseTime="3000" notifyAll="true" repeat="false"> + <Action wait="72000" actionType="EmailAction" notifyType="notifyRoles" sms="false"> + <Notify name="Super User Role"></Notify> + </Action> + <Action wait="72000" actionType="EmailAction" notifyType="notifyUsers" sms="true"> + <Notify name="hqadmin"></Notify> + </Action> + </Escalation> +</SyncEscalationsRequest> \ No newline at end of file Added: trunk/hqu/hqapi1/examples/escalation/escalationUpdate.sh =================================================================== --- trunk/hqu/hqapi1/examples/escalation/escalationUpdate.sh (rev 0) +++ trunk/hqu/hqapi1/examples/escalation/escalationUpdate.sh 2008-08-19 12:44:14 UTC (rev 223) @@ -0,0 +1,7 @@ +#!/bin/sh +DIR=`dirname $0` +## Create Escalation +curl -uhqadmin http://localhost:7080/hqu/hqapi1/escalation/create.hqu -Fpostdata=@"$DIR/escalationCreateUpdate.xml" + +## Update Escalation +curl -uhqadmin http://localhost:7080/hqu/hqapi1/escalation/update.hqu -Fpostdata=@"$DIR/escalationUpdate.xml" Added: trunk/hqu/hqapi1/examples/escalation/escalationUpdate.xml =================================================================== --- trunk/hqu/hqapi1/examples/escalation/escalationUpdate.xml (rev 0) +++ trunk/hqu/hqapi1/examples/escalation/escalationUpdate.xml 2008-08-19 12:44:14 UTC (rev 223) @@ -0,0 +1,13 @@ +<SyncEscalationsRequest> + <!-- Escalation with Email Action --> + <Escalation name="Escalation EmailAction - CreateUpdate" + description="Escalation EmailAction Update" pauseAllowed="true" maxPauseTime="3000" + notifyAll="true" repeat="false"> + <Action wait="72000" actionType="EmailAction" notifyType="notifyRoles" sms="true"> + <Notify name="Super User Role"></Notify> + </Action> + <Action wait="72000" actionType="EmailAction" notifyType="notifyUsers" sms="false"> + <Notify name="hqadmin"></Notify> + </Action> + </Escalation> +</SyncEscalationsRequest> \ No newline at end of file |