Operator HTTPGetJSONContent
This operator is deprecated. Use HTTPRequest operator instead.
Periodically connects to an HTTP endpoint to GET JSON content as a single tuple. The JSON content is assigned to the jsonString attribute in the output tuple which must be of type rstring.
Summary
- Ports
- This operator has 0 input ports and 1 output port.
- Windowing
- This operator does not accept any windowing configurations.
- Parameters
- This operator supports 7 parameters.
Required: url
Optional: acceptAllCertificates, contentAttribute, extraHeaders, initDelay, iterations, period
- Metrics
- This operator reports 1 metric.
Properties
- Implementation
- Java
- Assignments
- Java operators do not support output assignments.
- Ports (0)
-
Content of the HTTP GET request as an JSON attribute. Each successful HTTP request that returns a content results in a submitted tuple with an rstring attribute containing the returned content.
- Properties
-
- Optional: false
Required: url
Optional: acceptAllCertificates, contentAttribute, extraHeaders, initDelay, iterations, period
- acceptAllCertificates
-
Accept all SSL certificates, even those that are self-signed. Setting this option will allow potentially insecure connections. Default is false.
- Properties
-
- Type: boolean
- Cardinality: 1
- Optional: true
- contentAttribute
-
Output attribute to assign content to.
- Properties
-
- Type: rstring
- Cardinality: 1
- Optional: true
- ExpressionMode: Attribute
- extraHeaders
-
Extra headers to send with request, format is "Header-Name: value"
- initDelay
-
Delay in seconds before the operator starts producing tuples.
- Properties
-
- Type: int64
- Cardinality: 1
- Optional: true
- iterations
-
The number of tuples to submit. Negative value or zero means continually fetch and submit tuples.
- Properties
-
- Type: int32
- Cardinality: 1
- Optional: true
- period
-
Polling period in seconds. Tuples will be fetched every period seconds.
- Properties
-
- Type: float64
- Cardinality: 1
- Optional: true
- url
-
URL to HTTP GET content from.
- Properties
-
- Type: rstring
- Cardinality: 1
- Optional: false
- nFailedRequests - Counter
-
Number of HTTP requests that failed, did not return response 200.
- Operator class library