published on Thursday, Apr 2, 2026 by Byteplus
published on Thursday, Apr 2, 2026 by Byteplus
Resource definition for the scheduled SQL analysis task.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
tLSScheduleSqlTaskDemo:
type: bytepluscc:tls:ScheduleSqlTask
name: TLSScheduleSqlTaskDemo
properties:
description: testdesc
destRegion: cn-beijing
destTopicId: 42fedbb3-2c2a-4822-bc30-9c5cc****
processEndTime: 0
processSqlDelay: 60
taskType: 0
processStartTime: 1.773072e+09
processTimeWindow: '@m-15m,@m'
query: '* | SELECT * limit 10'
requestCycle:
cron_tab: 0 19 * * *
cron_time_zone: GMT+08:00
time: 2
type: Fixed
sourceTopicId: 22fca26e-a776-4925-a3ca-a9bb6d***
status: 1
taskName: test
Create ScheduleSqlTask Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScheduleSqlTask(name: string, args: ScheduleSqlTaskArgs, opts?: CustomResourceOptions);@overload
def ScheduleSqlTask(resource_name: str,
args: ScheduleSqlTaskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScheduleSqlTask(resource_name: str,
opts: Optional[ResourceOptions] = None,
source_topic_id: Optional[str] = None,
dest_topic_id: Optional[str] = None,
process_start_time: Optional[int] = None,
process_time_window: Optional[str] = None,
query: Optional[str] = None,
request_cycle: Optional[ScheduleSqlTaskRequestCycleArgs] = None,
status: Optional[int] = None,
task_name: Optional[str] = None,
task_type: Optional[int] = None,
dest_region: Optional[str] = None,
process_end_time: Optional[int] = None,
process_sql_delay: Optional[int] = None,
description: Optional[str] = None)func NewScheduleSqlTask(ctx *Context, name string, args ScheduleSqlTaskArgs, opts ...ResourceOption) (*ScheduleSqlTask, error)public ScheduleSqlTask(string name, ScheduleSqlTaskArgs args, CustomResourceOptions? opts = null)
public ScheduleSqlTask(String name, ScheduleSqlTaskArgs args)
public ScheduleSqlTask(String name, ScheduleSqlTaskArgs args, CustomResourceOptions options)
type: bytepluscc:tls:ScheduleSqlTask
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ScheduleSqlTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ScheduleSqlTaskArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ScheduleSqlTaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduleSqlTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScheduleSqlTaskArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var scheduleSqlTaskResource = new Bytepluscc.Tls.ScheduleSqlTask("scheduleSqlTaskResource", new()
{
SourceTopicId = "string",
DestTopicId = "string",
ProcessStartTime = 0,
ProcessTimeWindow = "string",
Query = "string",
RequestCycle = new Bytepluscc.Tls.Inputs.ScheduleSqlTaskRequestCycleArgs
{
Time = 0,
Type = "string",
CronTab = "string",
CronTimeZone = "string",
},
Status = 0,
TaskName = "string",
TaskType = 0,
DestRegion = "string",
ProcessEndTime = 0,
ProcessSqlDelay = 0,
Description = "string",
});
example, err := tls.NewScheduleSqlTask(ctx, "scheduleSqlTaskResource", &tls.ScheduleSqlTaskArgs{
SourceTopicId: pulumi.String("string"),
DestTopicId: pulumi.String("string"),
ProcessStartTime: pulumi.Int(0),
ProcessTimeWindow: pulumi.String("string"),
Query: pulumi.String("string"),
RequestCycle: &tls.ScheduleSqlTaskRequestCycleArgs{
Time: pulumi.Int(0),
Type: pulumi.String("string"),
CronTab: pulumi.String("string"),
CronTimeZone: pulumi.String("string"),
},
Status: pulumi.Int(0),
TaskName: pulumi.String("string"),
TaskType: pulumi.Int(0),
DestRegion: pulumi.String("string"),
ProcessEndTime: pulumi.Int(0),
ProcessSqlDelay: pulumi.Int(0),
Description: pulumi.String("string"),
})
var scheduleSqlTaskResource = new ScheduleSqlTask("scheduleSqlTaskResource", ScheduleSqlTaskArgs.builder()
.sourceTopicId("string")
.destTopicId("string")
.processStartTime(0)
.processTimeWindow("string")
.query("string")
.requestCycle(ScheduleSqlTaskRequestCycleArgs.builder()
.time(0)
.type("string")
.cronTab("string")
.cronTimeZone("string")
.build())
.status(0)
.taskName("string")
.taskType(0)
.destRegion("string")
.processEndTime(0)
.processSqlDelay(0)
.description("string")
.build());
schedule_sql_task_resource = bytepluscc.tls.ScheduleSqlTask("scheduleSqlTaskResource",
source_topic_id="string",
dest_topic_id="string",
process_start_time=0,
process_time_window="string",
query="string",
request_cycle={
"time": 0,
"type": "string",
"cron_tab": "string",
"cron_time_zone": "string",
},
status=0,
task_name="string",
task_type=0,
dest_region="string",
process_end_time=0,
process_sql_delay=0,
description="string")
const scheduleSqlTaskResource = new bytepluscc.tls.ScheduleSqlTask("scheduleSqlTaskResource", {
sourceTopicId: "string",
destTopicId: "string",
processStartTime: 0,
processTimeWindow: "string",
query: "string",
requestCycle: {
time: 0,
type: "string",
cronTab: "string",
cronTimeZone: "string",
},
status: 0,
taskName: "string",
taskType: 0,
destRegion: "string",
processEndTime: 0,
processSqlDelay: 0,
description: "string",
});
type: bytepluscc:tls:ScheduleSqlTask
properties:
description: string
destRegion: string
destTopicId: string
processEndTime: 0
processSqlDelay: 0
processStartTime: 0
processTimeWindow: string
query: string
requestCycle:
cronTab: string
cronTimeZone: string
time: 0
type: string
sourceTopicId: string
status: 0
taskName: string
taskType: 0
ScheduleSqlTask Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ScheduleSqlTask resource accepts the following input properties:
- Dest
Topic stringId - Target log topic ID for storing scheduled SQL analysis result data.
- Process
Start intTime - Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
- Process
Time stringWindow - SQL time window, which is the time range for log retrieval and analysis when scheduled SQL analysis tasks run, in left-closed, right-open format. Maximum is 24 hours, minimum is 1 minute.
- Query string
- The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax.
- Request
Cycle Byteplus.Schedule Sql Task Request Cycle - Scheduling period for the scheduled SQL analysis task. The scheduling period determines the scheduling time for each instance. It is recommended that the scheduling period is not less than the SQL time window.
- Source
Topic stringId - ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
- Status int
- Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately.
- Task
Name string - Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
- Task
Type int - Task type: 0 means log to log; 1 means log to metric.
- Description string
- Brief description of the scheduled SQL analysis task. Characters <>, ', , and \ are not supported. Length: 0–64 characters.
- Dest
Region string - Region of the target log topic. The default is the current region.
- Process
End intTime - End time for scheduling the scheduled SQL analysis task, in seconds-level timestamp format. If not configured, the scheduled SQL analysis task runs continuously. After the end time is reached, the log service will no longer create instances or execute scheduled SQL analysis, but the task status remains running until manually paused.
- Process
Sql intDelay - Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
- Dest
Topic stringId - Target log topic ID for storing scheduled SQL analysis result data.
- Process
Start intTime - Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
- Process
Time stringWindow - SQL time window, which is the time range for log retrieval and analysis when scheduled SQL analysis tasks run, in left-closed, right-open format. Maximum is 24 hours, minimum is 1 minute.
- Query string
- The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax.
- Request
Cycle ScheduleSql Task Request Cycle Args - Scheduling period for the scheduled SQL analysis task. The scheduling period determines the scheduling time for each instance. It is recommended that the scheduling period is not less than the SQL time window.
- Source
Topic stringId - ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
- Status int
- Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately.
- Task
Name string - Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
- Task
Type int - Task type: 0 means log to log; 1 means log to metric.
- Description string
- Brief description of the scheduled SQL analysis task. Characters <>, ', , and \ are not supported. Length: 0–64 characters.
- Dest
Region string - Region of the target log topic. The default is the current region.
- Process
End intTime - End time for scheduling the scheduled SQL analysis task, in seconds-level timestamp format. If not configured, the scheduled SQL analysis task runs continuously. After the end time is reached, the log service will no longer create instances or execute scheduled SQL analysis, but the task status remains running until manually paused.
- Process
Sql intDelay - Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
- dest
Topic StringId - Target log topic ID for storing scheduled SQL analysis result data.
- process
Start IntegerTime - Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
- process
Time StringWindow - SQL time window, which is the time range for log retrieval and analysis when scheduled SQL analysis tasks run, in left-closed, right-open format. Maximum is 24 hours, minimum is 1 minute.
- query String
- The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax.
- request
Cycle ScheduleSql Task Request Cycle - Scheduling period for the scheduled SQL analysis task. The scheduling period determines the scheduling time for each instance. It is recommended that the scheduling period is not less than the SQL time window.
- source
Topic StringId - ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
- status Integer
- Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately.
- task
Name String - Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
- task
Type Integer - Task type: 0 means log to log; 1 means log to metric.
- description String
- Brief description of the scheduled SQL analysis task. Characters <>, ', , and \ are not supported. Length: 0–64 characters.
- dest
Region String - Region of the target log topic. The default is the current region.
- process
End IntegerTime - End time for scheduling the scheduled SQL analysis task, in seconds-level timestamp format. If not configured, the scheduled SQL analysis task runs continuously. After the end time is reached, the log service will no longer create instances or execute scheduled SQL analysis, but the task status remains running until manually paused.
- process
Sql IntegerDelay - Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
- dest
Topic stringId - Target log topic ID for storing scheduled SQL analysis result data.
- process
Start numberTime - Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
- process
Time stringWindow - SQL time window, which is the time range for log retrieval and analysis when scheduled SQL analysis tasks run, in left-closed, right-open format. Maximum is 24 hours, minimum is 1 minute.
- query string
- The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax.
- request
Cycle ScheduleSql Task Request Cycle - Scheduling period for the scheduled SQL analysis task. The scheduling period determines the scheduling time for each instance. It is recommended that the scheduling period is not less than the SQL time window.
- source
Topic stringId - ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
- status number
- Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately.
- task
Name string - Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
- task
Type number - Task type: 0 means log to log; 1 means log to metric.
- description string
- Brief description of the scheduled SQL analysis task. Characters <>, ', , and \ are not supported. Length: 0–64 characters.
- dest
Region string - Region of the target log topic. The default is the current region.
- process
End numberTime - End time for scheduling the scheduled SQL analysis task, in seconds-level timestamp format. If not configured, the scheduled SQL analysis task runs continuously. After the end time is reached, the log service will no longer create instances or execute scheduled SQL analysis, but the task status remains running until manually paused.
- process
Sql numberDelay - Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
- dest_
topic_ strid - Target log topic ID for storing scheduled SQL analysis result data.
- process_
start_ inttime - Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
- process_
time_ strwindow - SQL time window, which is the time range for log retrieval and analysis when scheduled SQL analysis tasks run, in left-closed, right-open format. Maximum is 24 hours, minimum is 1 minute.
- query str
- The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax.
- request_
cycle ScheduleSql Task Request Cycle Args - Scheduling period for the scheduled SQL analysis task. The scheduling period determines the scheduling time for each instance. It is recommended that the scheduling period is not less than the SQL time window.
- source_
topic_ strid - ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
- status int
- Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately.
- task_
name str - Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
- task_
type int - Task type: 0 means log to log; 1 means log to metric.
- description str
- Brief description of the scheduled SQL analysis task. Characters <>, ', , and \ are not supported. Length: 0–64 characters.
- dest_
region str - Region of the target log topic. The default is the current region.
- process_
end_ inttime - End time for scheduling the scheduled SQL analysis task, in seconds-level timestamp format. If not configured, the scheduled SQL analysis task runs continuously. After the end time is reached, the log service will no longer create instances or execute scheduled SQL analysis, but the task status remains running until manually paused.
- process_
sql_ intdelay - Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
- dest
Topic StringId - Target log topic ID for storing scheduled SQL analysis result data.
- process
Start NumberTime - Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
- process
Time StringWindow - SQL time window, which is the time range for log retrieval and analysis when scheduled SQL analysis tasks run, in left-closed, right-open format. Maximum is 24 hours, minimum is 1 minute.
- query String
- The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax.
- request
Cycle Property Map - Scheduling period for the scheduled SQL analysis task. The scheduling period determines the scheduling time for each instance. It is recommended that the scheduling period is not less than the SQL time window.
- source
Topic StringId - ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
- status Number
- Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately.
- task
Name String - Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
- task
Type Number - Task type: 0 means log to log; 1 means log to metric.
- description String
- Brief description of the scheduled SQL analysis task. Characters <>, ', , and \ are not supported. Length: 0–64 characters.
- dest
Region String - Region of the target log topic. The default is the current region.
- process
End NumberTime - End time for scheduling the scheduled SQL analysis task, in seconds-level timestamp format. If not configured, the scheduled SQL analysis task runs continuously. After the end time is reached, the log service will no longer create instances or execute scheduled SQL analysis, but the task status remains running until manually paused.
- process
Sql NumberDelay - Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduleSqlTask resource produces the following output properties:
- Created
Time int - Creation time (seconds-level Unix timestamp).
- Dest
Project stringId - Target log project ID.
- Dest
Topic stringName - Target log topic name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Source
Project stringId - Source log project ID.
- Source
Project stringName - Source log project name.
- Source
Topic stringName - Source log topic name.
- Task
Id string - Task ID.
- Updated
Time int - Modification time (seconds-level Unix timestamp).
- Created
Time int - Creation time (seconds-level Unix timestamp).
- Dest
Project stringId - Target log project ID.
- Dest
Topic stringName - Target log topic name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Source
Project stringId - Source log project ID.
- Source
Project stringName - Source log project name.
- Source
Topic stringName - Source log topic name.
- Task
Id string - Task ID.
- Updated
Time int - Modification time (seconds-level Unix timestamp).
- created
Time Integer - Creation time (seconds-level Unix timestamp).
- dest
Project StringId - Target log project ID.
- dest
Topic StringName - Target log topic name.
- id String
- The provider-assigned unique ID for this managed resource.
- source
Project StringId - Source log project ID.
- source
Project StringName - Source log project name.
- source
Topic StringName - Source log topic name.
- task
Id String - Task ID.
- updated
Time Integer - Modification time (seconds-level Unix timestamp).
- created
Time number - Creation time (seconds-level Unix timestamp).
- dest
Project stringId - Target log project ID.
- dest
Topic stringName - Target log topic name.
- id string
- The provider-assigned unique ID for this managed resource.
- source
Project stringId - Source log project ID.
- source
Project stringName - Source log project name.
- source
Topic stringName - Source log topic name.
- task
Id string - Task ID.
- updated
Time number - Modification time (seconds-level Unix timestamp).
- created_
time int - Creation time (seconds-level Unix timestamp).
- dest_
project_ strid - Target log project ID.
- dest_
topic_ strname - Target log topic name.
- id str
- The provider-assigned unique ID for this managed resource.
- source_
project_ strid - Source log project ID.
- source_
project_ strname - Source log project name.
- source_
topic_ strname - Source log topic name.
- task_
id str - Task ID.
- updated_
time int - Modification time (seconds-level Unix timestamp).
- created
Time Number - Creation time (seconds-level Unix timestamp).
- dest
Project StringId - Target log project ID.
- dest
Topic StringName - Target log topic name.
- id String
- The provider-assigned unique ID for this managed resource.
- source
Project StringId - Source log project ID.
- source
Project StringName - Source log project name.
- source
Topic StringName - Source log topic name.
- task
Id String - Task ID.
- updated
Time Number - Modification time (seconds-level Unix timestamp).
Look up Existing ScheduleSqlTask Resource
Get an existing ScheduleSqlTask resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ScheduleSqlTaskState, opts?: CustomResourceOptions): ScheduleSqlTask@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_time: Optional[int] = None,
description: Optional[str] = None,
dest_project_id: Optional[str] = None,
dest_region: Optional[str] = None,
dest_topic_id: Optional[str] = None,
dest_topic_name: Optional[str] = None,
process_end_time: Optional[int] = None,
process_sql_delay: Optional[int] = None,
process_start_time: Optional[int] = None,
process_time_window: Optional[str] = None,
query: Optional[str] = None,
request_cycle: Optional[ScheduleSqlTaskRequestCycleArgs] = None,
source_project_id: Optional[str] = None,
source_project_name: Optional[str] = None,
source_topic_id: Optional[str] = None,
source_topic_name: Optional[str] = None,
status: Optional[int] = None,
task_id: Optional[str] = None,
task_name: Optional[str] = None,
task_type: Optional[int] = None,
updated_time: Optional[int] = None) -> ScheduleSqlTaskfunc GetScheduleSqlTask(ctx *Context, name string, id IDInput, state *ScheduleSqlTaskState, opts ...ResourceOption) (*ScheduleSqlTask, error)public static ScheduleSqlTask Get(string name, Input<string> id, ScheduleSqlTaskState? state, CustomResourceOptions? opts = null)public static ScheduleSqlTask get(String name, Output<String> id, ScheduleSqlTaskState state, CustomResourceOptions options)resources: _: type: bytepluscc:tls:ScheduleSqlTask get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created
Time int - Creation time (seconds-level Unix timestamp).
- Description string
- Brief description of the scheduled SQL analysis task. Characters <>, ', , and \ are not supported. Length: 0–64 characters.
- Dest
Project stringId - Target log project ID.
- Dest
Region string - Region of the target log topic. The default is the current region.
- Dest
Topic stringId - Target log topic ID for storing scheduled SQL analysis result data.
- Dest
Topic stringName - Target log topic name.
- Process
End intTime - End time for scheduling the scheduled SQL analysis task, in seconds-level timestamp format. If not configured, the scheduled SQL analysis task runs continuously. After the end time is reached, the log service will no longer create instances or execute scheduled SQL analysis, but the task status remains running until manually paused.
- Process
Sql intDelay - Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
- Process
Start intTime - Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
- Process
Time stringWindow - SQL time window, which is the time range for log retrieval and analysis when scheduled SQL analysis tasks run, in left-closed, right-open format. Maximum is 24 hours, minimum is 1 minute.
- Query string
- The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax.
- Request
Cycle Byteplus.Schedule Sql Task Request Cycle - Scheduling period for the scheduled SQL analysis task. The scheduling period determines the scheduling time for each instance. It is recommended that the scheduling period is not less than the SQL time window.
- Source
Project stringId - Source log project ID.
- Source
Project stringName - Source log project name.
- Source
Topic stringId - ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
- Source
Topic stringName - Source log topic name.
- Status int
- Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately.
- Task
Id string - Task ID.
- Task
Name string - Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
- Task
Type int - Task type: 0 means log to log; 1 means log to metric.
- Updated
Time int - Modification time (seconds-level Unix timestamp).
- Created
Time int - Creation time (seconds-level Unix timestamp).
- Description string
- Brief description of the scheduled SQL analysis task. Characters <>, ', , and \ are not supported. Length: 0–64 characters.
- Dest
Project stringId - Target log project ID.
- Dest
Region string - Region of the target log topic. The default is the current region.
- Dest
Topic stringId - Target log topic ID for storing scheduled SQL analysis result data.
- Dest
Topic stringName - Target log topic name.
- Process
End intTime - End time for scheduling the scheduled SQL analysis task, in seconds-level timestamp format. If not configured, the scheduled SQL analysis task runs continuously. After the end time is reached, the log service will no longer create instances or execute scheduled SQL analysis, but the task status remains running until manually paused.
- Process
Sql intDelay - Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
- Process
Start intTime - Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
- Process
Time stringWindow - SQL time window, which is the time range for log retrieval and analysis when scheduled SQL analysis tasks run, in left-closed, right-open format. Maximum is 24 hours, minimum is 1 minute.
- Query string
- The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax.
- Request
Cycle ScheduleSql Task Request Cycle Args - Scheduling period for the scheduled SQL analysis task. The scheduling period determines the scheduling time for each instance. It is recommended that the scheduling period is not less than the SQL time window.
- Source
Project stringId - Source log project ID.
- Source
Project stringName - Source log project name.
- Source
Topic stringId - ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
- Source
Topic stringName - Source log topic name.
- Status int
- Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately.
- Task
Id string - Task ID.
- Task
Name string - Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
- Task
Type int - Task type: 0 means log to log; 1 means log to metric.
- Updated
Time int - Modification time (seconds-level Unix timestamp).
- created
Time Integer - Creation time (seconds-level Unix timestamp).
- description String
- Brief description of the scheduled SQL analysis task. Characters <>, ', , and \ are not supported. Length: 0–64 characters.
- dest
Project StringId - Target log project ID.
- dest
Region String - Region of the target log topic. The default is the current region.
- dest
Topic StringId - Target log topic ID for storing scheduled SQL analysis result data.
- dest
Topic StringName - Target log topic name.
- process
End IntegerTime - End time for scheduling the scheduled SQL analysis task, in seconds-level timestamp format. If not configured, the scheduled SQL analysis task runs continuously. After the end time is reached, the log service will no longer create instances or execute scheduled SQL analysis, but the task status remains running until manually paused.
- process
Sql IntegerDelay - Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
- process
Start IntegerTime - Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
- process
Time StringWindow - SQL time window, which is the time range for log retrieval and analysis when scheduled SQL analysis tasks run, in left-closed, right-open format. Maximum is 24 hours, minimum is 1 minute.
- query String
- The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax.
- request
Cycle ScheduleSql Task Request Cycle - Scheduling period for the scheduled SQL analysis task. The scheduling period determines the scheduling time for each instance. It is recommended that the scheduling period is not less than the SQL time window.
- source
Project StringId - Source log project ID.
- source
Project StringName - Source log project name.
- source
Topic StringId - ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
- source
Topic StringName - Source log topic name.
- status Integer
- Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately.
- task
Id String - Task ID.
- task
Name String - Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
- task
Type Integer - Task type: 0 means log to log; 1 means log to metric.
- updated
Time Integer - Modification time (seconds-level Unix timestamp).
- created
Time number - Creation time (seconds-level Unix timestamp).
- description string
- Brief description of the scheduled SQL analysis task. Characters <>, ', , and \ are not supported. Length: 0–64 characters.
- dest
Project stringId - Target log project ID.
- dest
Region string - Region of the target log topic. The default is the current region.
- dest
Topic stringId - Target log topic ID for storing scheduled SQL analysis result data.
- dest
Topic stringName - Target log topic name.
- process
End numberTime - End time for scheduling the scheduled SQL analysis task, in seconds-level timestamp format. If not configured, the scheduled SQL analysis task runs continuously. After the end time is reached, the log service will no longer create instances or execute scheduled SQL analysis, but the task status remains running until manually paused.
- process
Sql numberDelay - Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
- process
Start numberTime - Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
- process
Time stringWindow - SQL time window, which is the time range for log retrieval and analysis when scheduled SQL analysis tasks run, in left-closed, right-open format. Maximum is 24 hours, minimum is 1 minute.
- query string
- The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax.
- request
Cycle ScheduleSql Task Request Cycle - Scheduling period for the scheduled SQL analysis task. The scheduling period determines the scheduling time for each instance. It is recommended that the scheduling period is not less than the SQL time window.
- source
Project stringId - Source log project ID.
- source
Project stringName - Source log project name.
- source
Topic stringId - ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
- source
Topic stringName - Source log topic name.
- status number
- Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately.
- task
Id string - Task ID.
- task
Name string - Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
- task
Type number - Task type: 0 means log to log; 1 means log to metric.
- updated
Time number - Modification time (seconds-level Unix timestamp).
- created_
time int - Creation time (seconds-level Unix timestamp).
- description str
- Brief description of the scheduled SQL analysis task. Characters <>, ', , and \ are not supported. Length: 0–64 characters.
- dest_
project_ strid - Target log project ID.
- dest_
region str - Region of the target log topic. The default is the current region.
- dest_
topic_ strid - Target log topic ID for storing scheduled SQL analysis result data.
- dest_
topic_ strname - Target log topic name.
- process_
end_ inttime - End time for scheduling the scheduled SQL analysis task, in seconds-level timestamp format. If not configured, the scheduled SQL analysis task runs continuously. After the end time is reached, the log service will no longer create instances or execute scheduled SQL analysis, but the task status remains running until manually paused.
- process_
sql_ intdelay - Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
- process_
start_ inttime - Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
- process_
time_ strwindow - SQL time window, which is the time range for log retrieval and analysis when scheduled SQL analysis tasks run, in left-closed, right-open format. Maximum is 24 hours, minimum is 1 minute.
- query str
- The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax.
- request_
cycle ScheduleSql Task Request Cycle Args - Scheduling period for the scheduled SQL analysis task. The scheduling period determines the scheduling time for each instance. It is recommended that the scheduling period is not less than the SQL time window.
- source_
project_ strid - Source log project ID.
- source_
project_ strname - Source log project name.
- source_
topic_ strid - ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
- source_
topic_ strname - Source log topic name.
- status int
- Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately.
- task_
id str - Task ID.
- task_
name str - Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
- task_
type int - Task type: 0 means log to log; 1 means log to metric.
- updated_
time int - Modification time (seconds-level Unix timestamp).
- created
Time Number - Creation time (seconds-level Unix timestamp).
- description String
- Brief description of the scheduled SQL analysis task. Characters <>, ', , and \ are not supported. Length: 0–64 characters.
- dest
Project StringId - Target log project ID.
- dest
Region String - Region of the target log topic. The default is the current region.
- dest
Topic StringId - Target log topic ID for storing scheduled SQL analysis result data.
- dest
Topic StringName - Target log topic name.
- process
End NumberTime - End time for scheduling the scheduled SQL analysis task, in seconds-level timestamp format. If not configured, the scheduled SQL analysis task runs continuously. After the end time is reached, the log service will no longer create instances or execute scheduled SQL analysis, but the task status remains running until manually paused.
- process
Sql NumberDelay - Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
- process
Start NumberTime - Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
- process
Time StringWindow - SQL time window, which is the time range for log retrieval and analysis when scheduled SQL analysis tasks run, in left-closed, right-open format. Maximum is 24 hours, minimum is 1 minute.
- query String
- The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax.
- request
Cycle Property Map - Scheduling period for the scheduled SQL analysis task. The scheduling period determines the scheduling time for each instance. It is recommended that the scheduling period is not less than the SQL time window.
- source
Project StringId - Source log project ID.
- source
Project StringName - Source log project name.
- source
Topic StringId - ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
- source
Topic StringName - Source log topic name.
- status Number
- Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately.
- task
Id String - Task ID.
- task
Name String - Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
- task
Type Number - Task type: 0 means log to log; 1 means log to metric.
- updated
Time Number - Modification time (seconds-level Unix timestamp).
Supporting Types
ScheduleSqlTaskRequestCycle, ScheduleSqlTaskRequestCycleArgs
- Time int
- Scheduling period or the time point for periodic execution (minutes from 00:00). Range: 1–1440 minutes.
- Type string
- Scheduling period type. Options: Period, Fixed, Cron.
- Cron
Tab string - Cron expression, with a minimum granularity of minutes, using 24-hour format. For example, 0 18 * * * means execution at 18:00 every day.
- Cron
Time stringZone - If Type is set to Cron, you must also set the time zone.
- Time int
- Scheduling period or the time point for periodic execution (minutes from 00:00). Range: 1–1440 minutes.
- Type string
- Scheduling period type. Options: Period, Fixed, Cron.
- Cron
Tab string - Cron expression, with a minimum granularity of minutes, using 24-hour format. For example, 0 18 * * * means execution at 18:00 every day.
- Cron
Time stringZone - If Type is set to Cron, you must also set the time zone.
- time Integer
- Scheduling period or the time point for periodic execution (minutes from 00:00). Range: 1–1440 minutes.
- type String
- Scheduling period type. Options: Period, Fixed, Cron.
- cron
Tab String - Cron expression, with a minimum granularity of minutes, using 24-hour format. For example, 0 18 * * * means execution at 18:00 every day.
- cron
Time StringZone - If Type is set to Cron, you must also set the time zone.
- time number
- Scheduling period or the time point for periodic execution (minutes from 00:00). Range: 1–1440 minutes.
- type string
- Scheduling period type. Options: Period, Fixed, Cron.
- cron
Tab string - Cron expression, with a minimum granularity of minutes, using 24-hour format. For example, 0 18 * * * means execution at 18:00 every day.
- cron
Time stringZone - If Type is set to Cron, you must also set the time zone.
- time int
- Scheduling period or the time point for periodic execution (minutes from 00:00). Range: 1–1440 minutes.
- type str
- Scheduling period type. Options: Period, Fixed, Cron.
- cron_
tab str - Cron expression, with a minimum granularity of minutes, using 24-hour format. For example, 0 18 * * * means execution at 18:00 every day.
- cron_
time_ strzone - If Type is set to Cron, you must also set the time zone.
- time Number
- Scheduling period or the time point for periodic execution (minutes from 00:00). Range: 1–1440 minutes.
- type String
- Scheduling period type. Options: Period, Fixed, Cron.
- cron
Tab String - Cron expression, with a minimum granularity of minutes, using 24-hour format. For example, 0 18 * * * means execution at 18:00 every day.
- cron
Time StringZone - If Type is set to Cron, you must also set the time zone.
Import
$ pulumi import bytepluscc:tls/scheduleSqlTask:ScheduleSqlTask example "task_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Thursday, Apr 2, 2026 by Byteplus
