test_class.declarator: METRICS = ConnectivityModelFactory.newConnectionMetrics(
              ConnectivityModelFactory.newAddressMetric(Collections.emptySet()),
              ConnectivityModelFactory.newAddressMetric(Collections.emptySet()))
test_class.modifier: private static final
test_class.original_string: private static final ConnectionMetrics METRICS = ConnectivityModelFactory.newConnectionMetrics(
              ConnectivityModelFactory.newAddressMetric(Collections.emptySet()),
              ConnectivityModelFactory.newAddressMetric(Collections.emptySet()));
test_class.type: ConnectionMetrics
test_class.var_name: METRICS
test_class.declarator: EMPTY_SOURCE_METRICS =
              ConnectivityModelFactory.newSourceMetrics(new HashMap<>())
test_class.modifier: private static final
test_class.original_string: private static final SourceMetrics EMPTY_SOURCE_METRICS =
              ConnectivityModelFactory.newSourceMetrics(new HashMap<>());
test_class.type: SourceMetrics
test_class.var_name: EMPTY_SOURCE_METRICS
test_class.declarator: EMPTY_TARGET_METRICS =
              ConnectivityModelFactory.newTargetMetrics(new HashMap<>())
test_class.modifier: private static final
test_class.original_string: private static final TargetMetrics EMPTY_TARGET_METRICS =
              ConnectivityModelFactory.newTargetMetrics(new HashMap<>());
test_class.type: TargetMetrics
test_class.var_name: EMPTY_TARGET_METRICS
test_class.declarator: KNOWN_JSON = JsonObject.newBuilder()
              .set(CommandResponse.JsonFields.TYPE, RetrieveConnectionMetricsResponse.TYPE)
              .set(CommandResponse.JsonFields.STATUS, HttpStatusCode.OK.toInt())
              .set(ConnectivityCommandResponse.JsonFields.JSON_CONNECTION_ID, ID.toString())
              .set(JsonFields.CONTAINS_FAILURES, false)
              .set(JsonFields.CONNECTION_METRICS, Metrics.Json.CONNECTION_METRICS_JSON)
              .set(JsonFields.SOURCE_METRICS, Metrics.SOURCE_METRICS1.toJson())
              .set(JsonFields.TARGET_METRICS, Metrics.TARGET_METRICS1.toJson())
              .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject KNOWN_JSON = JsonObject.newBuilder()
              .set(CommandResponse.JsonFields.TYPE, RetrieveConnectionMetricsResponse.TYPE)
              .set(CommandResponse.JsonFields.STATUS, HttpStatusCode.OK.toInt())
              .set(ConnectivityCommandResponse.JsonFields.JSON_CONNECTION_ID, ID.toString())
              .set(JsonFields.CONTAINS_FAILURES, false)
              .set(JsonFields.CONNECTION_METRICS, Metrics.Json.CONNECTION_METRICS_JSON)
              .set(JsonFields.SOURCE_METRICS, Metrics.SOURCE_METRICS1.toJson())
              .set(JsonFields.TARGET_METRICS, Metrics.TARGET_METRICS1.toJson())
              .build();
test_class.type: JsonObject
test_class.var_name: KNOWN_JSON
test_class.file: signals/commands/connectivity/src/test/java/org/eclipse/ditto/signals/commands/connectivity/query/RetrieveConnectionMetricsResponseTest.java
test_class.identifier: RetrieveConnectionMetricsResponseTest
test_case.body: @Test
      public void toJsonReturnsExpected() {
          final JsonObject actual =
                  RetrieveConnectionMetricsResponse.getBuilder(ID, DittoHeaders.empty())
                          .connectionMetrics(Metrics.CONNECTION_METRICS)
                          .sourceMetrics(Metrics.SOURCE_METRICS1)
                          .targetMetrics(Metrics.TARGET_METRICS1)
                          .build().toJson();
  
          assertThat(actual).isEqualTo(KNOWN_JSON);
      }
test_case.class_method_signature: RetrieveConnectionMetricsResponseTest.toJsonReturnsExpected()
test_case.full_signature: @Test public void toJsonReturnsExpected()
test_case.identifier: toJsonReturnsExpected
test_case.invocations: toJson build targetMetrics sourceMetrics connectionMetrics getBuilder empty isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toJsonReturnsExpected()
focal_class.declarator: TYPE = ConnectivityCommandResponse.TYPE_PREFIX + RetrieveConnectionMetrics.NAME
focal_class.modifier: public static final
focal_class.original_string: public static final String TYPE = ConnectivityCommandResponse.TYPE_PREFIX + RetrieveConnectionMetrics.NAME;
focal_class.type: String
focal_class.var_name: TYPE
focal_class.declarator: connectionId
focal_class.modifier: private final
focal_class.original_string: private final ConnectionId connectionId;
focal_class.type: ConnectionId
focal_class.var_name: connectionId
focal_class.declarator: jsonObject
focal_class.modifier: private final
focal_class.original_string: private final JsonObject jsonObject;
focal_class.type: JsonObject
focal_class.var_name: jsonObject
focal_class.file: signals/commands/connectivity/src/main/java/org/eclipse/ditto/signals/commands/connectivity/query/RetrieveConnectionMetricsResponse.java
focal_class.identifier: RetrieveConnectionMetricsResponse
focal_class.interfaces: implements ConnectivityQueryCommandResponse<RetrieveConnectionMetricsResponse>
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.RetrieveConnectionMetricsResponse(final ConnectionId connectionId, final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: private  RetrieveConnectionMetricsResponse(final ConnectionId connectionId, final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.identifier: RetrieveConnectionMetricsResponse
focal_class.modifiers: private
focal_class.parameters: (final ConnectionId connectionId, final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.signature:  RetrieveConnectionMetricsResponse(final ConnectionId connectionId, final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.of(final ConnectionId connectionId, final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: public static RetrieveConnectionMetricsResponse of(final ConnectionId connectionId, final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final ConnectionId connectionId, final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.return: RetrieveConnectionMetricsResponse
focal_class.signature: RetrieveConnectionMetricsResponse of(final ConnectionId connectionId, final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.fromJson(final String jsonString,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: public static RetrieveConnectionMetricsResponse fromJson(final String jsonString,
              final DittoHeaders dittoHeaders)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final String jsonString,
              final DittoHeaders dittoHeaders)
focal_class.return: RetrieveConnectionMetricsResponse
focal_class.signature: RetrieveConnectionMetricsResponse fromJson(final String jsonString,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.fromJson(final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: public static RetrieveConnectionMetricsResponse fromJson(final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.return: RetrieveConnectionMetricsResponse
focal_class.signature: RetrieveConnectionMetricsResponse fromJson(final JsonObject jsonObject,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.getContainsFailure()
focal_class.full_signature: public Optional<Boolean> getContainsFailure()
focal_class.identifier: getContainsFailure
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Optional<Boolean>
focal_class.signature: Optional<Boolean> getContainsFailure()
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.getConnectionMetrics()
focal_class.full_signature: public ConnectionMetrics getConnectionMetrics()
focal_class.identifier: getConnectionMetrics
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ConnectionMetrics
focal_class.signature: ConnectionMetrics getConnectionMetrics()
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.getSourceMetrics()
focal_class.full_signature: public SourceMetrics getSourceMetrics()
focal_class.identifier: getSourceMetrics
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: SourceMetrics
focal_class.signature: SourceMetrics getSourceMetrics()
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.getTargetMetrics()
focal_class.full_signature: public TargetMetrics getTargetMetrics()
focal_class.identifier: getTargetMetrics
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: TargetMetrics
focal_class.signature: TargetMetrics getTargetMetrics()
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.full_signature: @Override protected void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.identifier: appendPayload
focal_class.modifiers: @Override protected
focal_class.parameters: (final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.return: void
focal_class.signature: void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.getConnectionEntityId()
focal_class.full_signature: @Override public ConnectionId getConnectionEntityId()
focal_class.identifier: getConnectionEntityId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ConnectionId
focal_class.signature: ConnectionId getConnectionEntityId()
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.getEntity(final JsonSchemaVersion schemaVersion)
focal_class.full_signature: @Override public JsonValue getEntity(final JsonSchemaVersion schemaVersion)
focal_class.identifier: getEntity
focal_class.modifiers: @Override public
focal_class.parameters: (final JsonSchemaVersion schemaVersion)
focal_class.return: JsonValue
focal_class.signature: JsonValue getEntity(final JsonSchemaVersion schemaVersion)
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.getResourcePath()
focal_class.full_signature: @Override public JsonPointer getResourcePath()
focal_class.identifier: getResourcePath
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: JsonPointer
focal_class.signature: JsonPointer getResourcePath()
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.setEntity(final JsonValue entity)
focal_class.full_signature: @Override public RetrieveConnectionMetricsResponse setEntity(final JsonValue entity)
focal_class.identifier: setEntity
focal_class.modifiers: @Override public
focal_class.parameters: (final JsonValue entity)
focal_class.return: RetrieveConnectionMetricsResponse
focal_class.signature: RetrieveConnectionMetricsResponse setEntity(final JsonValue entity)
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.full_signature: @Override public RetrieveConnectionMetricsResponse setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.identifier: setDittoHeaders
focal_class.modifiers: @Override public
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: RetrieveConnectionMetricsResponse
focal_class.signature: RetrieveConnectionMetricsResponse setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.canEqual(@Nullable final Object other)
focal_class.full_signature: @Override protected boolean canEqual(@Nullable final Object other)
focal_class.identifier: canEqual
focal_class.modifiers: @Override protected
focal_class.parameters: (@Nullable final Object other)
focal_class.return: boolean
focal_class.signature: boolean canEqual(@Nullable final Object other)
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.getBuilder(final ConnectionId connectionId, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static Builder getBuilder(final ConnectionId connectionId, final DittoHeaders dittoHeaders)
focal_class.identifier: getBuilder
focal_class.modifiers: public static
focal_class.parameters: (final ConnectionId connectionId, final DittoHeaders dittoHeaders)
focal_class.return: Builder
focal_class.signature: Builder getBuilder(final ConnectionId connectionId, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.equals(final Object o)
focal_class.full_signature: @Override public boolean equals(final Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object o)
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: RetrieveConnectionMetricsResponse.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.superclass: extends AbstractCommandResponse<RetrieveConnectionMetricsResponse>
focal_method.body: public static Builder getBuilder(final ConnectionId connectionId, final DittoHeaders dittoHeaders){
          return new Builder(connectionId, dittoHeaders);
      }
focal_method.class_method_signature: RetrieveConnectionMetricsResponse.getBuilder(final ConnectionId connectionId, final DittoHeaders dittoHeaders)
focal_method.full_signature: public static Builder getBuilder(final ConnectionId connectionId, final DittoHeaders dittoHeaders)
focal_method.identifier: getBuilder
focal_method.modifiers: public static
focal_method.parameters: (final ConnectionId connectionId, final DittoHeaders dittoHeaders)
focal_method.return: Builder
focal_method.signature: Builder getBuilder(final ConnectionId connectionId, final DittoHeaders dittoHeaders)