All Products
Search
Document Center

Simple Log Service:ScheduledSQLConfiguration

Last Updated:Nov 28, 2024
ParameterTypeDescriptionExample
object

The detailed configurations of the Scheduled SQL job.

scriptstring

The query statement of the Scheduled SQL job.

* | select *
sqlTypestring

The type of the query statement.

searchQuery
destEndpointstring

The endpoint.

cn-hangzhou-intranet.log.aliyuncs.com
destProjectstring

The destination project.

project-demo
sourceLogstorestring

The source Logstore.

source-logstore-demo
destLogstorestring

The destination Logstore.

dest-logstore-demo
roleArnstring

The Alibaba Cloud Resource Name (ARN) of the Resource Access Management (RAM) role that is assigned to the Scheduled SQL job.

acs:ram::123456789:role/aliyunlogetlrole
destRoleArnstring

The ARN of the RAM role that is assumed to write data to the destination Logstore.

acs:ram::123456789:role/aliyunlogetlrole
fromTimeExprstring

The start time of the SQL time window.

@m-1m
toTimeExprstring

The end time of the SQL time window.

@m
maxRunTimeInSecondslong

The maximum timeout period of SQL analysis. Unit: seconds. Valid values: 60 to 1800.

600
resourcePoolstring

The type of the resource pool. The value enhanced specifies an enhanced resource pool.

enhanced
maxRetrieslong

The maximum number of SQL timeouts allowed. Valid values: 1 to 100.

20
fromTimelong

The beginning of the time range to query. For more information, see Process and store data from a Logstore to a Metricstore .

1712592000
toTimelong

The end of the time range to query. For more information, see Process and store data from a Logstore to a Metricstore .

0
dataFormatstring

The data format. Valid values: log2log, log2metric, and metric2metric.

log2log
parametersobject

The SQL configurations. For more information, see Process and store data from a Logstore to a Metricstore .

{ addLabels: "{}", hashLabels: "[]", labelKeys: "[\"your label1\",\"your label2\"]", metricKeys: "[\"your Indicator1\",\"your Indicator2\"]", metricName: "", timeKey: "" }