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.
  • Field Summary

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

    Modifier and Type
    Method
    Description
    void
    Executes the HTTP request carrying the serialized JSON payload.
  • Field Details

  • Method Details

    • execute

      void execute(String json) throws Exception
      Executes the HTTP request carrying the serialized JSON payload.
      Parameters:
      json - the JSON payload to transmit
      Throws:
      Exception - if transmission fails