Spring 整合圖 (integrationgraph)

integrationgraph 端點暴露了一個包含所有 Spring Integration 元件的圖。

檢索 Spring Integration 圖

要檢索應用程式資訊,請向 /actuator/integrationgraph 傳送 GET 請求,如以下基於 curl 的示例所示:

$ curl 'https://: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" : "7.0.0",
    "providerFormatVersion" : 1.2,
    "provider" : "spring-integration"
  },
  "links" : [ {
    "from" : 2,
    "to" : 3,
    "type" : "input"
  } ],
  "nodes" : [ {
    "nodeId" : 1,
    "name" : "nullChannel",
    "componentType" : "null-channel",
    "integrationPatternCategory" : "messaging_channel",
    "integrationPatternType" : "null_channel",
    "observed" : false,
    "properties" : { }
  }, {
    "nodeId" : 2,
    "name" : "errorChannel",
    "componentType" : "publish-subscribe-channel",
    "integrationPatternCategory" : "messaging_channel",
    "integrationPatternType" : "publish_subscribe_channel",
    "observed" : false,
    "properties" : { }
  }, {
    "nodeId" : 3,
    "name" : "errorLogger",
    "input" : "errorChannel",
    "componentType" : "logging-channel-adapter",
    "integrationPatternCategory" : "messaging_endpoint",
    "integrationPatternType" : "outbound_channel_adapter",
    "observed" : false,
    "properties" : { }
  } ]
}

響應結構

響應包含應用程式中使用的所有 Spring Integration 元件,以及它們之間的連結。有關結構更詳細的資訊,請參閱參考文件

重建 Spring Integration 圖

要重建暴露的圖,請向 /actuator/integrationgraph 傳送 POST 請求,如以下基於 curl 的示例所示:

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

這將導致一個 204 - No Content 響應。

HTTP/1.1 204 No Content
© . This site is unofficial and not affiliated with VMware.