Interface Submitter
- All Known Implementing Classes:
HttpClientSubmitter, NetSubmitter
public interface Submitter
Interface to execute HTTP POST requests sending the JSON telemetry body to the server.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents the response received from executing a request. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default base URL for metrics collection. -
Method Summary
Modifier and TypeMethodDescriptionExecutes the HTTP request and returns the response context.
-
Field Details
-
DEFAULT_BASE_URL
-
-
Method Details
-
execute
Executes the HTTP request and returns the response context.- Parameters:
path- the target path or URLjson- the JSON payloadcompressed- whether to compress the payload using GZIP- Returns:
- the response context
- Throws:
Exception- if a non-recoverable error occurs
-