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 Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Represents the response received from executing a request.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The default base URL for metrics collection.
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(String path, String json, boolean compressed)
    Executes the HTTP request and returns the response context.
  • Field Details

  • Method Details

    • execute

      Submitter.Response execute(String path, String json, boolean compressed) throws Exception
      Executes the HTTP request and returns the response context.
      Parameters:
      path - the target path or URL
      json - the JSON payload
      compressed - whether to compress the payload using GZIP
      Returns:
      the response context
      Throws:
      Exception - if a non-recoverable error occurs