Class ApiClientMetadata

java.lang.Object
com.netflix.genie.common.internal.dtos.ClientMetadata
com.netflix.genie.common.internal.dtos.ApiClientMetadata
All Implemented Interfaces:
Serializable

public class ApiClientMetadata extends ClientMetadata
Data class to hold information about a Genie client whether it is an API client or an Agent.
Since:
4.0.0
See Also:
  • Constructor Details

    • ApiClientMetadata

      public ApiClientMetadata(@Nullable String hostname, @Nullable String userAgent)
      Constructor.
      Parameters:
      hostname - The hostname of the client that sent the API request
      userAgent - The user agent string
  • Method Details

    • getUserAgent

      public Optional<String> getUserAgent()
      Get the user agent string for the client.
      Returns:
      The user agent string if there is one wrapped in an Optional