

如需與 Amazon Timestream for LiveAnalytics 類似的功能，請考慮使用 Amazon Timestream for InfluxDB。它提供簡化的資料擷取和單一位數毫秒查詢回應時間，以進行即時分析。[在這裡](https://docs.aws.amazon.com//timestream/latest/developerguide/timestream-for-influxdb.html)進一步了解。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 案例
<a name="scheduledqueries-patterns-scenario"></a>

下列範例使用 中概述的 DevOps 監控案例[排程查詢範例結構描述](scheduledqueries-common-schema-example.md)。

這些範例提供排程查詢定義，您可以在其中插入適當的組態，以便接收排程查詢的執行狀態通知、接收執行排程查詢期間所遇到錯誤的報告，以及排程查詢用來執行其操作的 IAM 角色。

您可以在填寫上述選項、[建立目標 ](https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.create-table.html) （或衍生） 資料表，以及透過 CLI AWS 執行 之後建立這些排程查詢。例如，假設排程查詢定義存放在 檔案 中`scheduled_query_example.json`。您可以使用 CLI 命令建立查詢。

```
aws timestream-query create-scheduled-query --cli-input-json  file://scheduled_query_example.json --profile aws_profile --region us-east-1
```

在上述命令中，使用 --profile 選項傳遞的設定檔必須具有建立排程查詢的適當許可。如需[政策和許可的詳細說明，請參閱排程查詢的身分型](https://docs.aws.amazon.com/timestream/latest/developerguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-sheduledqueries)政策。