|
名稱 |
類型 |
描述 |
樣本值 |
|---|---|---|---|
|
object |
定時 SQL 配置詳細 |
||
| script |
string |
定時 SQL 分析語句 |
* | select * |
| sqlType |
string |
SQL 類型 |
searchQuery |
| destEndpoint |
string |
目標 Endpoint |
cn-hangzhou-intranet.log.aliyuncs.com |
| destProject |
string |
目標 Project |
project-demo |
| sourceLogstore |
string |
源庫 |
source-logstore-demo |
| destLogstore |
string |
目標庫 |
dest-logstore-demo |
| roleArn |
string |
執行 SQL 授權角色 ARN |
acs:ram::123456789:role/aliyunlogetlrole |
| destRoleArn |
string |
寫目標授權角色 ARN |
acs:ram::123456789:role/aliyunlogetlrole |
| fromTimeExpr |
string |
SQL 時間視窗開始 |
@m-1m |
| toTimeExpr |
string |
SQL 時間視窗結束 |
@m |
| maxRunTimeInSeconds |
integer |
SQL 逾時最長時間,單位:秒,取值範圍 60~1800。 |
600 |
| resourcePool |
string |
資源集區類型(enhanced 表示增強型) |
enhanced |
| maxRetries |
integer |
SQL 逾時最大次數,取值範圍 1~100。 |
20 |
| fromTime |
integer |
開始時間。更多資訊請參見從 Logstore 到 MetricStore 。 |
1712592000 |
| toTime |
integer |
結束時間。更多資訊請參見從 Logstore 到 MetricStore 。 |
0 |
| dataFormat |
string |
支援三種配置:log2log、log2metric、metric2metric。 |
log2log |
| parameters |
object |
SQL 配置。更多資訊請參見從 Logstore 到 MetricStore 。 |
{ addLabels: "{}", hashLabels: "[]", labelKeys: "[\"your label1\",\"your label2\"]", metricKeys: "[\"your Indicator1\",\"your Indicator2\"]", metricName: "", timeKey: "" } |