Adding an Alerter

Adds an alerter to a Web Intelligence document.

Request

POST <webiURL>/documents/{documentId}/alerters

Where:

  • {documentId}: the identifier of the Web Intelligence document retrieved from the list of documents

Request body:

<alerter>
    <name>
    <description>
    <rule>
        <action>
Note You must provide an action when creating a new alerter. An empty alerter will result in an error.
Response

Response type : application/xml or application/json

The response is a message stating the success or failure of the request.

Example

POST <webiURL>/documens/1223/alerters

Request body:

<name>ciomplexalerter</name>
    <description>Adda complexe alerter using Raylight</description>
    <rule>
        <conditions>
            <condition expressionId="DP0.DO93" operator="Greater">
                <operand>10</operand>
                <operand>20</operand>
            </condition>
            <condition expressionId="DP0.DO93" operator="Greater">
                <target expressionId="DP0.DO93" />
            </condition>
        </conditions>
        <action>
            <data>
                <formula type="HyperLink">my hyperlink</formula>
                <format type="Custom" sample="1 234,57">
                    <template positive="STANDARD"/>
                </format>
            </data>
            <style>
                <border>
                    <top thickness="Medium" rgb="#800000" style="Plain"/>
                    <bottom thickness="Medium" rgb="#800000" style="Plain"/>
                    <left thickness="Medium" rgb="#800000" style="Plain"/>
                    <right thickness="Medium" rgb="#800000" style="Plain"/>
                </border>
                <background width="0" height="0">
                    <color rgb="#00ff00"/>
                    <image src="bores://00002">
                        <alignment horizontal="Left" vertical="Top"/>
                    </image>
                </background>
                <font size="12" face="Arial" italic="false" bold="false" strikethrough="true" 
                    underline="true" rgb="#ff6600"/>
                <alignment horizontal="Center" vertical="Center"/>
            </style>
        </action>
    </rule>
    <rule>
        <expression>=&quot;hello&quot;</expression>
    </rule>
</alerter>
Note The font size is expressed in "point".

Response:

<success>
    <message>The resource of type 'Alerter' with identifier '2' has been successfully created.</message>
    <id>2</id>
</success>