管道指标示例 - Amazon Personalize

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

管道指标示例

当你将 Amazon Personalize 搜索排名插件应用于 OpenSearch 查询时,你可以通过获取搜索渠道的指标来监控该插件。管道指标包括诸如 personalized_search_ranking 响应处理器的失败请求数量之类的统计信息。

以下代码显示了从 OpenSearch中返回的管道指标的摘录。它仅显示包含两个不同管道统计信息的 pipelines 对象。对于每个管道,您可以在 personalized_search_ranking 响应处理器列表中找到 Amazon Personalize 搜索排名插件指标。有关所有指标的完整示例,请参阅搜索管道指标

{ .... .... "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> } } } ] } } .... .... }