1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. tls
  5. ScheduleSqlTask
Viewing docs for bytepluscc v0.0.21
published on Thursday, Apr 2, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.21
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:

    DestTopicId string
    Target log topic ID for storing scheduled SQL analysis result data.
    ProcessStartTime int
    Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
    ProcessTimeWindow string
    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.
    RequestCycle Byteplus.ScheduleSqlTaskRequestCycle
    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.
    SourceTopicId string
    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.
    TaskName string
    Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
    TaskType 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.
    DestRegion string
    Region of the target log topic. The default is the current region.
    ProcessEndTime int
    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.
    ProcessSqlDelay int
    Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
    DestTopicId string
    Target log topic ID for storing scheduled SQL analysis result data.
    ProcessStartTime int
    Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
    ProcessTimeWindow string
    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.
    RequestCycle ScheduleSqlTaskRequestCycleArgs
    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.
    SourceTopicId string
    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.
    TaskName string
    Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
    TaskType 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.
    DestRegion string
    Region of the target log topic. The default is the current region.
    ProcessEndTime int
    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.
    ProcessSqlDelay int
    Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
    destTopicId String
    Target log topic ID for storing scheduled SQL analysis result data.
    processStartTime Integer
    Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
    processTimeWindow String
    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.
    requestCycle ScheduleSqlTaskRequestCycle
    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.
    sourceTopicId String
    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.
    taskName String
    Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
    taskType 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.
    destRegion String
    Region of the target log topic. The default is the current region.
    processEndTime Integer
    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.
    processSqlDelay Integer
    Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
    destTopicId string
    Target log topic ID for storing scheduled SQL analysis result data.
    processStartTime number
    Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
    processTimeWindow string
    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.
    requestCycle ScheduleSqlTaskRequestCycle
    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.
    sourceTopicId string
    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.
    taskName string
    Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
    taskType 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.
    destRegion string
    Region of the target log topic. The default is the current region.
    processEndTime number
    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.
    processSqlDelay number
    Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
    dest_topic_id str
    Target log topic ID for storing scheduled SQL analysis result data.
    process_start_time int
    Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
    process_time_window str
    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 ScheduleSqlTaskRequestCycleArgs
    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_id str
    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_time int
    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_delay int
    Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
    destTopicId String
    Target log topic ID for storing scheduled SQL analysis result data.
    processStartTime Number
    Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
    processTimeWindow String
    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.
    requestCycle 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.
    sourceTopicId String
    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.
    taskName String
    Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
    taskType 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.
    destRegion String
    Region of the target log topic. The default is the current region.
    processEndTime Number
    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.
    processSqlDelay Number
    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:

    CreatedTime int
    Creation time (seconds-level Unix timestamp).
    DestProjectId string
    Target log project ID.
    DestTopicName string
    Target log topic name.
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceProjectId string
    Source log project ID.
    SourceProjectName string
    Source log project name.
    SourceTopicName string
    Source log topic name.
    TaskId string
    Task ID.
    UpdatedTime int
    Modification time (seconds-level Unix timestamp).
    CreatedTime int
    Creation time (seconds-level Unix timestamp).
    DestProjectId string
    Target log project ID.
    DestTopicName string
    Target log topic name.
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceProjectId string
    Source log project ID.
    SourceProjectName string
    Source log project name.
    SourceTopicName string
    Source log topic name.
    TaskId string
    Task ID.
    UpdatedTime int
    Modification time (seconds-level Unix timestamp).
    createdTime Integer
    Creation time (seconds-level Unix timestamp).
    destProjectId String
    Target log project ID.
    destTopicName String
    Target log topic name.
    id String
    The provider-assigned unique ID for this managed resource.
    sourceProjectId String
    Source log project ID.
    sourceProjectName String
    Source log project name.
    sourceTopicName String
    Source log topic name.
    taskId String
    Task ID.
    updatedTime Integer
    Modification time (seconds-level Unix timestamp).
    createdTime number
    Creation time (seconds-level Unix timestamp).
    destProjectId string
    Target log project ID.
    destTopicName string
    Target log topic name.
    id string
    The provider-assigned unique ID for this managed resource.
    sourceProjectId string
    Source log project ID.
    sourceProjectName string
    Source log project name.
    sourceTopicName string
    Source log topic name.
    taskId string
    Task ID.
    updatedTime number
    Modification time (seconds-level Unix timestamp).
    created_time int
    Creation time (seconds-level Unix timestamp).
    dest_project_id str
    Target log project ID.
    dest_topic_name str
    Target log topic name.
    id str
    The provider-assigned unique ID for this managed resource.
    source_project_id str
    Source log project ID.
    source_project_name str
    Source log project name.
    source_topic_name str
    Source log topic name.
    task_id str
    Task ID.
    updated_time int
    Modification time (seconds-level Unix timestamp).
    createdTime Number
    Creation time (seconds-level Unix timestamp).
    destProjectId String
    Target log project ID.
    destTopicName String
    Target log topic name.
    id String
    The provider-assigned unique ID for this managed resource.
    sourceProjectId String
    Source log project ID.
    sourceProjectName String
    Source log project name.
    sourceTopicName String
    Source log topic name.
    taskId String
    Task ID.
    updatedTime 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) -> ScheduleSqlTask
    func 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.
    The following state arguments are supported:
    CreatedTime 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.
    DestProjectId string
    Target log project ID.
    DestRegion string
    Region of the target log topic. The default is the current region.
    DestTopicId string
    Target log topic ID for storing scheduled SQL analysis result data.
    DestTopicName string
    Target log topic name.
    ProcessEndTime int
    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.
    ProcessSqlDelay int
    Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
    ProcessStartTime int
    Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
    ProcessTimeWindow string
    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.
    RequestCycle Byteplus.ScheduleSqlTaskRequestCycle
    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.
    SourceProjectId string
    Source log project ID.
    SourceProjectName string
    Source log project name.
    SourceTopicId string
    ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
    SourceTopicName string
    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.
    TaskId string
    Task ID.
    TaskName string
    Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
    TaskType int
    Task type: 0 means log to log; 1 means log to metric.
    UpdatedTime int
    Modification time (seconds-level Unix timestamp).
    CreatedTime 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.
    DestProjectId string
    Target log project ID.
    DestRegion string
    Region of the target log topic. The default is the current region.
    DestTopicId string
    Target log topic ID for storing scheduled SQL analysis result data.
    DestTopicName string
    Target log topic name.
    ProcessEndTime int
    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.
    ProcessSqlDelay int
    Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
    ProcessStartTime int
    Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
    ProcessTimeWindow string
    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.
    RequestCycle ScheduleSqlTaskRequestCycleArgs
    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.
    SourceProjectId string
    Source log project ID.
    SourceProjectName string
    Source log project name.
    SourceTopicId string
    ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
    SourceTopicName string
    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.
    TaskId string
    Task ID.
    TaskName string
    Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
    TaskType int
    Task type: 0 means log to log; 1 means log to metric.
    UpdatedTime int
    Modification time (seconds-level Unix timestamp).
    createdTime 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.
    destProjectId String
    Target log project ID.
    destRegion String
    Region of the target log topic. The default is the current region.
    destTopicId String
    Target log topic ID for storing scheduled SQL analysis result data.
    destTopicName String
    Target log topic name.
    processEndTime Integer
    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.
    processSqlDelay Integer
    Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
    processStartTime Integer
    Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
    processTimeWindow String
    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.
    requestCycle ScheduleSqlTaskRequestCycle
    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.
    sourceProjectId String
    Source log project ID.
    sourceProjectName String
    Source log project name.
    sourceTopicId String
    ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
    sourceTopicName String
    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.
    taskId String
    Task ID.
    taskName String
    Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
    taskType Integer
    Task type: 0 means log to log; 1 means log to metric.
    updatedTime Integer
    Modification time (seconds-level Unix timestamp).
    createdTime 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.
    destProjectId string
    Target log project ID.
    destRegion string
    Region of the target log topic. The default is the current region.
    destTopicId string
    Target log topic ID for storing scheduled SQL analysis result data.
    destTopicName string
    Target log topic name.
    processEndTime number
    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.
    processSqlDelay number
    Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
    processStartTime number
    Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
    processTimeWindow string
    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.
    requestCycle ScheduleSqlTaskRequestCycle
    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.
    sourceProjectId string
    Source log project ID.
    sourceProjectName string
    Source log project name.
    sourceTopicId string
    ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
    sourceTopicName string
    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.
    taskId string
    Task ID.
    taskName string
    Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
    taskType number
    Task type: 0 means log to log; 1 means log to metric.
    updatedTime 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_id str
    Target log project ID.
    dest_region str
    Region of the target log topic. The default is the current region.
    dest_topic_id str
    Target log topic ID for storing scheduled SQL analysis result data.
    dest_topic_name str
    Target log topic name.
    process_end_time int
    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_delay int
    Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
    process_start_time int
    Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
    process_time_window str
    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 ScheduleSqlTaskRequestCycleArgs
    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_id str
    Source log project ID.
    source_project_name str
    Source log project name.
    source_topic_id str
    ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
    source_topic_name str
    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).
    createdTime 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.
    destProjectId String
    Target log project ID.
    destRegion String
    Region of the target log topic. The default is the current region.
    destTopicId String
    Target log topic ID for storing scheduled SQL analysis result data.
    destTopicName String
    Target log topic name.
    processEndTime Number
    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.
    processSqlDelay Number
    Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay.
    processStartTime Number
    Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp.
    processTimeWindow String
    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.
    requestCycle 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.
    sourceProjectId String
    Source log project ID.
    sourceProjectName String
    Source log project name.
    sourceTopicId String
    ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported.
    sourceTopicName String
    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.
    taskId String
    Task ID.
    taskName String
    Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions.
    taskType Number
    Task type: 0 means log to log; 1 means log to metric.
    updatedTime 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.
    CronTab string
    Cron expression, with a minimum granularity of minutes, using 24-hour format. For example, 0 18 * * * means execution at 18:00 every day.
    CronTimeZone string
    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.
    CronTab string
    Cron expression, with a minimum granularity of minutes, using 24-hour format. For example, 0 18 * * * means execution at 18:00 every day.
    CronTimeZone string
    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.
    cronTab String
    Cron expression, with a minimum granularity of minutes, using 24-hour format. For example, 0 18 * * * means execution at 18:00 every day.
    cronTimeZone String
    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.
    cronTab string
    Cron expression, with a minimum granularity of minutes, using 24-hour format. For example, 0 18 * * * means execution at 18:00 every day.
    cronTimeZone string
    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_zone str
    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.
    cronTab String
    Cron expression, with a minimum granularity of minutes, using 24-hour format. For example, 0 18 * * * means execution at 18:00 every day.
    cronTimeZone String
    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 bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.21
    published on Thursday, Apr 2, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.