|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
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 |
| maxConcurrency |
integer |
并发 |
1 |
| forceComplete |
boolean |
确保计算结果精确 |
true |
| usingExactlyOnce |
boolean |
使用 exactly-once 协议写数据 |
|
| parameters |
object |
SQL 配置。更多信息请参见从 Logstore 到 MetricStore 。 |
{ addLabels: "{}", hashLabels: "[]", labelKeys: "[\"your label1\",\"your label2\"]", metricKeys: "[\"your Indicator1\",\"your Indicator2\"]", metricName: "", timeKey: "" } |
该文章对您有帮助吗?