

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# パイプラインメトリクスの例
<a name="monitor-response"></a>

Amazon Personalize Search Ranking プラグインを OpenSearch クエリに適用すると、検索パイプラインのメトリックスを取得してプラグインを監視できます。パイプラインメトリックスには、`personalized_search_ranking` レスポンスプロセッサの失敗したリクエスト数などの統計が含まれます。

 次のコードは、OpenSearch から返されるパイプラインメトリクスを抜粋したものです。2 つの異なるパイプラインの統計を含む `pipelines` オブジェクトのみが表示されます。パイプラインごとに、Amazon Personalize Search Ranking プラグインのメトリックスが `personalized_search_ranking` レスポンスプロセッサリストに表示されます。すべてのメトリクスの詳細な例については、「[検索パイプラインメトリクス](https://opensearch.org/docs/latest/search-plugins/search-pipelines/search-pipeline-metrics/)」を参照してください。

```
{
....
....
  "pipelines": {
    "pipelineA": {
      "request": {
        "count": 0,
        "time_in_millis": 0,
        "current": 0,
        "failed": 0
      },
      "response": {
        "count": 6,
        "time_in_millis": 2246,
        "current": 0,
        "failed": 0
      },
      "request_processors": [],
      "response_processors": [
        {
          personalized_search_ranking": {
            "type": "personalized_search_ranking",
            "stats": {
              "count": <number of requests>,
              "time_in_millis": <time>,
              "current": 0,
              "failed": <number of failed requests>
            }
          }
        }
      ]
    },
    "pipelineB": {
      "request": {
        "count": 0,
        "time_in_millis": 0,
        "current": 0,
        "failed": 0
      },
      "response": {
        "count": 8,
        "time_in_millis": 2248,
        "current": 0,
        "failed": 0
      },
      "request_processors": [],
      "response_processors": [
        {
          "personalized_search_ranking": {
            "type": "personalized_search_ranking",
            "stats": {
              "count": <number of requests>,
              "time_in_millis": <time>,
              "current": 0,
              "failed": <number of failed requests>
            }
          }
        }
      ]
    }
  }
....
....
}
```