Spring Integration グラフ (integrationgraph)

integrationgraph エンドポイントは、すべての Spring Integration コンポーネントを含むグラフを公開します。

Spring Integration グラフの取得

アプリケーションに関する情報を取得するには、次の curl ベースの例に示すように、GET リクエストを /actuator/integrationgraph に作成します。

$ curl 'http://localhost:8080/actuator/integrationgraph' -i -X GET

結果のレスポンスは次のようになります。

HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 1033

{
  "contentDescriptor" : {
    "providerVersion" : "6.3.1",
    "providerFormatVersion" : 1.2,
    "provider" : "spring-integration"
  },
  "nodes" : [ {
    "nodeId" : 1,
    "componentType" : "null-channel",
    "integrationPatternType" : "null_channel",
    "integrationPatternCategory" : "messaging_channel",
    "properties" : { },
    "name" : "nullChannel",
    "observed" : false
  }, {
    "nodeId" : 2,
    "componentType" : "publish-subscribe-channel",
    "integrationPatternType" : "publish_subscribe_channel",
    "integrationPatternCategory" : "messaging_channel",
    "properties" : { },
    "name" : "errorChannel",
    "observed" : false
  }, {
    "nodeId" : 3,
    "componentType" : "logging-channel-adapter",
    "integrationPatternType" : "outbound_channel_adapter",
    "integrationPatternCategory" : "messaging_endpoint",
    "properties" : { },
    "input" : "errorChannel",
    "name" : "errorLogger",
    "observed" : false
  } ],
  "links" : [ {
    "from" : 2,
    "to" : 3,
    "type" : "input"
  } ]
}

レスポンス構造

レスポンスには、アプリケーション内で使用されるすべての Spring Integration コンポーネントとそれらの間のリンクが含まれます。構造の詳細については、リファレンスドキュメントを参照してください

Spring Integration グラフの再構築

公開されたグラフを再構築するには、次の curl ベースの例に示すように、POST リクエストを /actuator/integrationgraph に作成します。

$ curl 'http://localhost:8080/actuator/integrationgraph' -i -X POST

これにより、204 - No Content レスポンスが発生します。

HTTP/1.1 204 No Content