---
schema_version: "1"
id: 8f3b494af750816d26bbd36de13be05d248c13974e7cda7c9d7b5540632df5f0
title: 获取事件状态
collection: tableau
version: next
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/next/zh-cn/server/dm_tools_eventing.md
canonical_url: https://help.tableau.com/v0.0/server/zh-cn/dm_tools_eventing.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 56125e5bf9ac5a8a4927aed74071e7c7db406a452cee4d4b2b13b3880f7a80a2
description: Use the Eventing API to gauge Tableau Catalog (Metadata API) indexing performance.
---
[跳转到主要内容](#main-content)

# 获取事件状态

在 Tableau Server 环境中启用 Tableau Catalog（或 Tableau 元数据 API）后，可以使用事件 API 来衡量索引性能。

下面描述的步骤必须由服务器管理员执行。

## 步骤 1：使用 REST API 进行身份验证

若要访问事件 API，必须首先针对 Tableau Server 进行身份验证并获取令牌。可以使用 Tableau REST API 执行此操作。有关详细信息，请参见 REST API 帮助中的[登录和注销（身份验证）](https://help.tableau.com/current/api/rest_api/zh-cn/REST/rest_api_concepts_auth.htm)。

或者，您可以使用管理员凭据登录到 Tableau Server。

## 步骤 2：发出 GET 请求

发出以下 GET 请求或将 URL 粘贴到浏览器中：

http://my\_tableau\_server/api/metadata/v1/control/eventing/status

### 响应中的状态值

事件 API 返回以下值。

- `contentType` 是最近编制索引的内容类型。
- `queueSize` 是索引队列中的项数。队列大小越大，项目在 Catalog 或元数据 API 中显示的时间越长。如果队列大小随时间而增加，您可能需要调整后台程序容量以支持非交互式容器和索引过程。有关详细信息，请参见[用于非交互式微服务容器的内存](https://help.tableau.com/v0.0/server/zh-cn/dm_catalog_enable.htm#Memory)。
- `checkpointCreatedTime` 是最后一次记录的项目索引时间（UTC 格式）。事件 API 每五分钟检查一次是否有最后的索引项。

### 示例响应

请求返回 JSON 文本。若要以更具可读性的形式查看 JSON，可以使用 JSON 查看器或浏览器加载项。

{        

   "contentType": "PublishedDatasource",

   "queueSize": 312,

   "checkpointCreatedTime": "2020-07-29T23:50:25.763Z"

}