Parameter | Type | Description | Example |
object | Parameters to submit an asynchronous SQL query. | ||
logstore | string | The name of the logstore. | test-logstore |
query | string | The SQL statement to execute. | job: IT | select name, age, gender from log |
from | integer | The start of the query time range. This time is the log time specified when the log was written. The time range defined by the from and to parameters is left-inclusive and right-exclusive. This means the time range includes the start time but excludes the end time. If the from and to values are the same, the time range is invalid and the function returns an error. The value is a UNIX timestamp in seconds since 00:00:00 UTC on January 1, 1970. | 1627268100 |
to | integer | The end of the query time range. This time is the log time specified when the log was written. The time range defined by the from and to parameters is left-inclusive and right-exclusive. This means the time range includes the start time but excludes the end time. If the from and to values are the same, the time range is invalid and the function returns an error. The value is a UNIX timestamp in seconds since 00:00:00 UTC on January 1, 1970. | 1627268200 |
extensions | object | Extensions. | |
maxRunTime | integer | The maximum running time for the request in milliseconds. Maximum value: 600,000 (10 minutes). Default value: 600,000. | 30000 |
powerSql | boolean | Specifies whether to enable enhanced SQL. The default value is false. | true |