---
schema_version: "1"
id: 493d5c3e0756a587c7a58bd6c2e773cc815ad368c8972a0a8085859bd6e052ce
title: 取得 Eventing 狀態
collection: tableau
version: next
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/next/zh-tw/server-linux/dm_tools_eventing.md
canonical_url: https://help.tableau.com/v0.0/server-linux/zh-tw/dm_tools_eventing.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 54869da8df900da689e191eb116359e48894490c11a6fbe7f346b1986f5d52d9
description: Use the Eventing API to gauge Tableau Catalog (Metadata API) indexing performance.
---
[跳至主要內容](#main-content)

# 取得 Eventing 狀態

在 Tableau Server 環境中啟用 Tableau Catalog（或 Tableau 中繼資料 API）後，可以使用 Eventing API 評估索引效能。

下面描述的步驟必須由伺服器管理員執行。

## 步驟 1：使用 REST API 進行驗證

若要存取 Eventing API，必須首先針對 Tableau Server 進行驗證並取得權杖。您可以使用 Tableau REST API 來執行此操作。有關詳情，請參閱 REST API 說明中的[「登入和登出（驗證）」](https://help.tableau.com/current/api/rest_api/zh-tw/REST/rest_api_concepts_auth.htm)。

或者，您可以使用管理員認證登入 Tableau Server。

## 步驟 2：發出 GET 請求

發出以下 GET 請求或將 URL 貼上到瀏覽器中：

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

### 回應中的狀態值

Eventing API 會傳回以下值。

- `contentType` 是最近索引的內容類型。
- `queueSize` 是索引佇列中的項目數。佇列大小越大，項目在 Catalog 或中繼資料 API 中顯示所花費的時間就越長。若佇列大小隨時間增加，則可能需要調整背景程式容量以支援非互動式容器和索引流程。有關詳情，請參閱[非互動式微服務容器記憶體](https://help.tableau.com/v0.0/server-linux/zh-tw/dm_catalog_enable.htm#Memory)。
- `checkpointCreatedTime` 是索引項目時的最近記錄時間（UTC 時間）。Eventing API 每五分鐘檢查一次最近索引的項目。

### 回應範例

請求傳回 JSON 文字。若要以更具可讀性的格式檢視 JSON，可以使用 JSON 檢視器或瀏覽器附加元件。

{        

   "contentType": "PublishedDatasource",

   "queueSize": 312,

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

}