Class HttpSource
java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.Source
org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.HttpSource
- All Implemented Interfaces:
Serializable
Represents a source that retrieves data by making an HTTP request.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpSource(String type, List<Compute> computes, boolean forceSerialization, HttpMethod method, String url, String path, String header, String body, String authenticationToken, ResultContent resultContent, String key, ExecuteForEachEntryOf executeForEachEntryOf) Builder for creating instances ofHttpSource. -
Method Summary
Modifier and TypeMethodDescriptionaccept(ISourceProcessor sourceProcessor) Accepts a source processor to perform processing on the source.copy()Creates a copy of the source.toString()voidupdate(UnaryOperator<String> updater) Updates the source based on the provided updater function.Methods inherited from class org.sentrysoftware.metricshub.engine.connector.model.monitor.task.source.Source
getEntryConcatMethod, getExecuteForEachEntryOf, getSleepExecuteForEachEntryOf, isExecuteForEachEntryOf
-
Constructor Details
-
HttpSource
public HttpSource(String type, List<Compute> computes, boolean forceSerialization, HttpMethod method, String url, String path, String header, String body, String authenticationToken, ResultContent resultContent, String key, ExecuteForEachEntryOf executeForEachEntryOf) Builder for creating instances ofHttpSource.- Parameters:
type- The type of the source.computes- List of computations to be applied to the source.forceSerialization- Flag indicating whether to force serialization.method- The HTTP method for the request.url- The URL for the HTTP request.path- The Path for the HTTP request.header- The header for the HTTP request.body- The body of the HTTP request.authenticationToken- The authentication token for the HTTP request.resultContent- The type of content to retrieve from the HTTP response.key- The key associated with the source.executeForEachEntryOf- The execution context for each entry of the source.
-
-
Method Details