Insert excerpt |
---|
| _Banners |
---|
| _Banners |
---|
name | analysis |
---|
nopanel | true |
---|
|
HTTP Collector Properties
standard_settingsstandard_settingsName CollectorTick when HTTP Data Source | The HTTP datasource that this collector will collect from. PostPUT
selecte Icon | The Icon to display in controls when this collector is used. |
Timeout (secs) | The number of seconds to wait for a response from the corresponding HTTP datasource before a timeout is recorded. |
Allow Non-Scheduled Collection | If this is turned on, then the collector will run as part of any ad-hoc Analysis Engine run which requires this data. If not, it will only run as part of a scheduled Task Plan under the Analysis Engine. |
Datasource Instance Expression | The datasource to which this collector is connected may list multiple instances from which the data may be accessed. Each HTTP Datasource Instance is identified by a unique string. This expression should evaluate to a string which allows the collector to determine the specific instance to use. If the expression is blank then the collector will assume that there is only one instance and will use that one by default. If there is more than one instance and no expression is provided here then an error will be thrown during analysis since the collector will be unable to determine which source to use. |
Send Message
Define details of the HTTP request sent to the HTTP Datasource to get the data required.
Field | Description |
---|
URL Expression | The URL to be used, without the leading http:// prefix. The URL may contain embedded expressions within { }. If this field is blank, the url field on the httpDatasourceInstance is used directly. For Example, this expression adds to the base url provided by the HTTP Datasource Instance : {_url}/sub1/sub2?param1=3 |
exporter For Example <totalBilled>\totalBilled> <totalCollected>\totalCollected> <monthlyTotals> <\results>The username and password for the HTTP Datasource Instance are available as %USERNAME% and %PASSWORD%.
The data will be encoded using the charset parameter specified by the Content-Type Header if one is present. If no Content-Type Header is set then ISO-8859-1 will be used. If the Content-Type header is set, but does not specify a charset then PhixFlow will use a default character set dependant on the content type. with standard Headers Header addadd HeaderDefine :HTML: response type allows an XPath Expression to be specified in order to retrieve just specified sections of the data into XML structuresString will return the full data as a string value.Please see Response Examples for how the returned data can be used and evaluated in the corresponding stream attribute expressions.
Field | Description |
---|
Return Type | The type of the expected response : XML/HTTP/String |
XPath | The XPath XML or HTML Note that Xpath can only be used with standard addadd properties tab XML and HTML <?xml version ="1.0"?> <root wwww3.org/TR/html4/ h:AD">Ali Dawson</h:data> GP">Gary Parden</h:data> <title name="Non namespace Title">Non namespace Title Text</title> AD">Ali Dawson</td> <td GP">Gary Parden< stream XPath stream h:Note that the namspace prefix used here 'h' must be configured in the HTTP XML Namspaces form
This XPath xpath subelements. i.e<root xmlns:h="http://www.w3.org/TR/html4/"> <main page="PF Main Page" > <h:title h:name="PF Title">PF Title Text <h:datarow> <h:data h:initials="AD">Ali Dawson</h:data> <h:data h:initials="GP">Gary Parden</h:data> </h:datarow> </h:title> </main> </root>
xpaths stream text valuevalue Text element attibutes: in.h$name -> returns 'PF Title'Xpath h$datarowh$datah$initialsADGPh$datarowh$dataAli Dawson,Gary Parden of a $ instead our usual : namespace notation.Note the use of a Note the use of Note that namspaces XPath subelements. i.e<html> <body nodename="Html Body"> <table> <tbody> <tr> <td initials="AD">Ali Dawson</td> <td initials="GP">Gary Parden</td> </tr> </tbody> </table> </body> </html>
stream ADGPAli Dawson,Gary Parden a Note the use of Note the use of phixflow note that i.e . Alternatively, you can use stream attribute expressions.