Class RequestMetrics


  • public class RequestMetrics
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      RequestMetrics​(java.lang.String requestId, long requestDurationMS)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ClientTelemetryPayload payload()
      Constructs the JSON payload to be sent in the X-Stripe-Client-Telemetry header.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • requestId

        @SerializedName("request_id")
        public java.lang.String requestId
      • requestDurationMs

        @SerializedName("request_duration_ms")
        public long requestDurationMs
    • Constructor Detail

      • RequestMetrics

        public RequestMetrics​(java.lang.String requestId,
                              long requestDurationMS)
    • Method Detail

      • payload

        public ClientTelemetryPayload payload()
        Constructs the JSON payload to be sent in the X-Stripe-Client-Telemetry header.