Class GetModelGraph

java.lang.Object
io.fluxzero.common.api.Request
io.fluxzero.common.api.modeling.GetModelGraph
All Implemented Interfaces:
JsonType

public class GetModelGraph extends Request
Resolves one bounded independent-model relationship graph and optionally includes the first page of every selected model stream.

The graph, heads, memberships, and payloads are all observed at one namespace-wide state boundary. Direction and roots are query options of this one capability. When composableOnly is set, descendant relationships without an explicit graph path are not traversed.

  • Constructor Details

    • GetModelGraph

      @ConstructorProperties({"modelIds","boundary","maxDepth","maxModels","maxEventsPerModel","maxBytes","direction","composableOnly"}) public GetModelGraph(List<String> modelIds, ModelReadBoundary boundary, int maxDepth, int maxModels, int maxEventsPerModel, long maxBytes, GetModelGraph.TraversalDirection direction, boolean composableOnly)
    • GetModelGraph

      public GetModelGraph(String rootId, ModelReadBoundary boundary, int maxDepth, int maxModels, int maxEventsPerModel, long maxBytes, boolean composableOnly)
      Creates the ordinary single-root descendant query used by public Graph loads.
  • Method Details

    • ancestors

      public static GetModelGraph ancestors(List<String> modelIds, ModelReadBoundary boundary, int maxDepth, int maxModels, int maxEventsPerModel, long maxBytes)
      Creates a multi-root ancestor query through the same graph capability.
    • toMetric

      public GetModelGraph.Metric toMetric()
      Description copied from interface: JsonType
      Converts this object into a compact metric representation for logging or monitoring.

      Used by the Fluxzero Java SDK to avoid logging large payloads directly while still tracking platform usage.

      Returns:
      a safe and compact object suitable for serialization to the metrics log