Skip to content

Notifications

TechieGuy12 edited this page Aug 4, 2022 · 1 revision

To send a notification request to an endpoint, the following information can be specified:

Structure

<?xml version="1.0" encoding="UTF-8"?>
<settings>
    <notifications>
        <waittime></waittime>
        <notification>
            <url></url>     
            <method></method>
            <data>
                <headers>
                    <header>
                        <name></name>
                        <value></value>
                    </header>
                </headers>
                <body></body>
                <type></type>            
            </data>
        </notification>
    </notifications>
</settings>
Element Description
url The URL to connect to for the notification.
method The HTTP method to use for the request. Default: POST
data Data to send for the request.

URL

This is the valid URL to the endpoint and is specified using the <url> element.

Method

The <method> element specifies the HTTP method used in the request to the endpoint. The valid values are:

Method
POST
GET
PUT
DELETE

Note: The method names are case-sensitive, so they must be added to the configuration file exactly as shown in the table above.

The default value for the <method> element is POST.

Data

The <data> element contains information that is sent to the endpoint. This element contains the <headers>, <body>, and <type> child elements to provide details about the data sent with the request.

Headers

The <headers> element allows you to specify various headers to include in the request. Each header is specified within a <header> child element, and contains a <name> and <value> pair of elements. For example:

<headers>
    <header>
        <name>HeaderName</name>
        <value>HeaderValue</value>
    </header>
</headers>

Body

The <body> element provides information to send in the request. You can specify any message in the <body> element, or you can use the [message] placeholder to have File Watcher write the change message into the body.

Examples

Generate the checksums for all files located in C:\Temp:

fv.exe -f C:\Temp

Validate that the checksum of a file called notes.txt in C:\Temp matches E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855:

fv.exe -f C:\Temp\notes.txt -ha E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855

Use 32 threads when generating or validating the hashes of files in a directory:

fv.exe -f C:\Temp -t 32

Clone this wiki locally