Class PingResult

  • public class PingResult
    extends Object
    • Constructor Detail

      • PingResult

        public PingResult​(Map<ServiceType,​List<EndpointPingReport>> endpoints,
                          String sdk,
                          String id)
        Creates the new ping report.

        Note that this is internal API and should not be called at the application level.

        endpoints - the health of each individual endpoint.
        sdk - the sdk identifier.
        id - the report ID.
    • Method Detail

      • id

        public String id()
        The ID of this report.
        the ID, either automatically generated or the one provided by the user.
      • version

        public int version()
        The version of this report (useful when exporting to JSON).
        the version format of this report.
      • sdk

        public String sdk()
        The identifier of this SDK (useful when exporting to JSON).
        the identifier of this SDK.
      • exportToJson

        public String exportToJson()
        Exports this report into the standard JSON format which is consistent across different SDKs.
        the report encoded as JSON.
      • hashCode

        public int hashCode()
        hashCode in class Object