1. Packages
  2. Bytepluscc Provider
  3. API Docs
  4. tls
  5. ScheduleSqlTask
Viewing docs for bytepluscc v0.0.20
published on Thursday, Mar 26, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.20
published on Thursday, Mar 26, 2026 by Byteplus

    定时 SQL 分析任务的资源定义。

    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
    用于存储定时 SQL 分析结果数据的目标日志主题 ID。
    ProcessStartTime int
    调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
    ProcessTimeWindow string
    SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
    Query string
    定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
    RequestCycle Byteplus.ScheduleSqlTaskRequestCycle
    定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
    SourceTopicId string
    待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
    Status int
    完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
    TaskName string
    定时 SQL 分析任务名称。命名规则请参考资源命名规则。
    TaskType int
    任务类型:0 表示日志到日志;1 表示日志到指标。
    Description string
    定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
    DestRegion string
    目标日志主题所属地域。默认为当前地域。
    ProcessEndTime int
    调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
    ProcessSqlDelay int
    每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
    DestTopicId string
    用于存储定时 SQL 分析结果数据的目标日志主题 ID。
    ProcessStartTime int
    调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
    ProcessTimeWindow string
    SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
    Query string
    定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
    RequestCycle ScheduleSqlTaskRequestCycleArgs
    定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
    SourceTopicId string
    待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
    Status int
    完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
    TaskName string
    定时 SQL 分析任务名称。命名规则请参考资源命名规则。
    TaskType int
    任务类型:0 表示日志到日志;1 表示日志到指标。
    Description string
    定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
    DestRegion string
    目标日志主题所属地域。默认为当前地域。
    ProcessEndTime int
    调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
    ProcessSqlDelay int
    每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
    destTopicId String
    用于存储定时 SQL 分析结果数据的目标日志主题 ID。
    processStartTime Integer
    调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
    processTimeWindow String
    SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
    query String
    定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
    requestCycle ScheduleSqlTaskRequestCycle
    定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
    sourceTopicId String
    待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
    status Integer
    完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
    taskName String
    定时 SQL 分析任务名称。命名规则请参考资源命名规则。
    taskType Integer
    任务类型:0 表示日志到日志;1 表示日志到指标。
    description String
    定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
    destRegion String
    目标日志主题所属地域。默认为当前地域。
    processEndTime Integer
    调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
    processSqlDelay Integer
    每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
    destTopicId string
    用于存储定时 SQL 分析结果数据的目标日志主题 ID。
    processStartTime number
    调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
    processTimeWindow string
    SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
    query string
    定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
    requestCycle ScheduleSqlTaskRequestCycle
    定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
    sourceTopicId string
    待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
    status number
    完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
    taskName string
    定时 SQL 分析任务名称。命名规则请参考资源命名规则。
    taskType number
    任务类型:0 表示日志到日志;1 表示日志到指标。
    description string
    定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
    destRegion string
    目标日志主题所属地域。默认为当前地域。
    processEndTime number
    调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
    processSqlDelay number
    每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
    dest_topic_id str
    用于存储定时 SQL 分析结果数据的目标日志主题 ID。
    process_start_time int
    调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
    process_time_window str
    SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
    query str
    定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
    request_cycle ScheduleSqlTaskRequestCycleArgs
    定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
    source_topic_id str
    待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
    status int
    完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
    task_name str
    定时 SQL 分析任务名称。命名规则请参考资源命名规则。
    task_type int
    任务类型:0 表示日志到日志;1 表示日志到指标。
    description str
    定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
    dest_region str
    目标日志主题所属地域。默认为当前地域。
    process_end_time int
    调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
    process_sql_delay int
    每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
    destTopicId String
    用于存储定时 SQL 分析结果数据的目标日志主题 ID。
    processStartTime Number
    调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
    processTimeWindow String
    SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
    query String
    定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
    requestCycle Property Map
    定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
    sourceTopicId String
    待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
    status Number
    完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
    taskName String
    定时 SQL 分析任务名称。命名规则请参考资源命名规则。
    taskType Number
    任务类型:0 表示日志到日志;1 表示日志到指标。
    description String
    定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
    destRegion String
    目标日志主题所属地域。默认为当前地域。
    processEndTime Number
    调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
    processSqlDelay Number
    每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ScheduleSqlTask resource produces the following output properties:

    CreatedTime int
    创建时间(秒级 Unix 时间戳)。
    DestProjectId string
    目标日志项目 ID。
    DestTopicName string
    目标日志主题名称。
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceProjectId string
    源日志项目 ID。
    SourceProjectName string
    源日志项目名称。
    SourceTopicName string
    源日志主题名称。
    TaskId string
    任务 ID。
    UpdatedTime int
    修改时间(秒级 Unix 时间戳)。
    CreatedTime int
    创建时间(秒级 Unix 时间戳)。
    DestProjectId string
    目标日志项目 ID。
    DestTopicName string
    目标日志主题名称。
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceProjectId string
    源日志项目 ID。
    SourceProjectName string
    源日志项目名称。
    SourceTopicName string
    源日志主题名称。
    TaskId string
    任务 ID。
    UpdatedTime int
    修改时间(秒级 Unix 时间戳)。
    createdTime Integer
    创建时间(秒级 Unix 时间戳)。
    destProjectId String
    目标日志项目 ID。
    destTopicName String
    目标日志主题名称。
    id String
    The provider-assigned unique ID for this managed resource.
    sourceProjectId String
    源日志项目 ID。
    sourceProjectName String
    源日志项目名称。
    sourceTopicName String
    源日志主题名称。
    taskId String
    任务 ID。
    updatedTime Integer
    修改时间(秒级 Unix 时间戳)。
    createdTime number
    创建时间(秒级 Unix 时间戳)。
    destProjectId string
    目标日志项目 ID。
    destTopicName string
    目标日志主题名称。
    id string
    The provider-assigned unique ID for this managed resource.
    sourceProjectId string
    源日志项目 ID。
    sourceProjectName string
    源日志项目名称。
    sourceTopicName string
    源日志主题名称。
    taskId string
    任务 ID。
    updatedTime number
    修改时间(秒级 Unix 时间戳)。
    created_time int
    创建时间(秒级 Unix 时间戳)。
    dest_project_id str
    目标日志项目 ID。
    dest_topic_name str
    目标日志主题名称。
    id str
    The provider-assigned unique ID for this managed resource.
    source_project_id str
    源日志项目 ID。
    source_project_name str
    源日志项目名称。
    source_topic_name str
    源日志主题名称。
    task_id str
    任务 ID。
    updated_time int
    修改时间(秒级 Unix 时间戳)。
    createdTime Number
    创建时间(秒级 Unix 时间戳)。
    destProjectId String
    目标日志项目 ID。
    destTopicName String
    目标日志主题名称。
    id String
    The provider-assigned unique ID for this managed resource.
    sourceProjectId String
    源日志项目 ID。
    sourceProjectName String
    源日志项目名称。
    sourceTopicName String
    源日志主题名称。
    taskId String
    任务 ID。
    updatedTime Number
    修改时间(秒级 Unix 时间戳)。

    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
    创建时间(秒级 Unix 时间戳)。
    Description string
    定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
    DestProjectId string
    目标日志项目 ID。
    DestRegion string
    目标日志主题所属地域。默认为当前地域。
    DestTopicId string
    用于存储定时 SQL 分析结果数据的目标日志主题 ID。
    DestTopicName string
    目标日志主题名称。
    ProcessEndTime int
    调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
    ProcessSqlDelay int
    每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
    ProcessStartTime int
    调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
    ProcessTimeWindow string
    SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
    Query string
    定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
    RequestCycle Byteplus.ScheduleSqlTaskRequestCycle
    定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
    SourceProjectId string
    源日志项目 ID。
    SourceProjectName string
    源日志项目名称。
    SourceTopicId string
    待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
    SourceTopicName string
    源日志主题名称。
    Status int
    完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
    TaskId string
    任务 ID。
    TaskName string
    定时 SQL 分析任务名称。命名规则请参考资源命名规则。
    TaskType int
    任务类型:0 表示日志到日志;1 表示日志到指标。
    UpdatedTime int
    修改时间(秒级 Unix 时间戳)。
    CreatedTime int
    创建时间(秒级 Unix 时间戳)。
    Description string
    定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
    DestProjectId string
    目标日志项目 ID。
    DestRegion string
    目标日志主题所属地域。默认为当前地域。
    DestTopicId string
    用于存储定时 SQL 分析结果数据的目标日志主题 ID。
    DestTopicName string
    目标日志主题名称。
    ProcessEndTime int
    调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
    ProcessSqlDelay int
    每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
    ProcessStartTime int
    调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
    ProcessTimeWindow string
    SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
    Query string
    定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
    RequestCycle ScheduleSqlTaskRequestCycleArgs
    定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
    SourceProjectId string
    源日志项目 ID。
    SourceProjectName string
    源日志项目名称。
    SourceTopicId string
    待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
    SourceTopicName string
    源日志主题名称。
    Status int
    完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
    TaskId string
    任务 ID。
    TaskName string
    定时 SQL 分析任务名称。命名规则请参考资源命名规则。
    TaskType int
    任务类型:0 表示日志到日志;1 表示日志到指标。
    UpdatedTime int
    修改时间(秒级 Unix 时间戳)。
    createdTime Integer
    创建时间(秒级 Unix 时间戳)。
    description String
    定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
    destProjectId String
    目标日志项目 ID。
    destRegion String
    目标日志主题所属地域。默认为当前地域。
    destTopicId String
    用于存储定时 SQL 分析结果数据的目标日志主题 ID。
    destTopicName String
    目标日志主题名称。
    processEndTime Integer
    调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
    processSqlDelay Integer
    每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
    processStartTime Integer
    调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
    processTimeWindow String
    SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
    query String
    定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
    requestCycle ScheduleSqlTaskRequestCycle
    定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
    sourceProjectId String
    源日志项目 ID。
    sourceProjectName String
    源日志项目名称。
    sourceTopicId String
    待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
    sourceTopicName String
    源日志主题名称。
    status Integer
    完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
    taskId String
    任务 ID。
    taskName String
    定时 SQL 分析任务名称。命名规则请参考资源命名规则。
    taskType Integer
    任务类型:0 表示日志到日志;1 表示日志到指标。
    updatedTime Integer
    修改时间(秒级 Unix 时间戳)。
    createdTime number
    创建时间(秒级 Unix 时间戳)。
    description string
    定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
    destProjectId string
    目标日志项目 ID。
    destRegion string
    目标日志主题所属地域。默认为当前地域。
    destTopicId string
    用于存储定时 SQL 分析结果数据的目标日志主题 ID。
    destTopicName string
    目标日志主题名称。
    processEndTime number
    调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
    processSqlDelay number
    每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
    processStartTime number
    调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
    processTimeWindow string
    SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
    query string
    定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
    requestCycle ScheduleSqlTaskRequestCycle
    定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
    sourceProjectId string
    源日志项目 ID。
    sourceProjectName string
    源日志项目名称。
    sourceTopicId string
    待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
    sourceTopicName string
    源日志主题名称。
    status number
    完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
    taskId string
    任务 ID。
    taskName string
    定时 SQL 分析任务名称。命名规则请参考资源命名规则。
    taskType number
    任务类型:0 表示日志到日志;1 表示日志到指标。
    updatedTime number
    修改时间(秒级 Unix 时间戳)。
    created_time int
    创建时间(秒级 Unix 时间戳)。
    description str
    定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
    dest_project_id str
    目标日志项目 ID。
    dest_region str
    目标日志主题所属地域。默认为当前地域。
    dest_topic_id str
    用于存储定时 SQL 分析结果数据的目标日志主题 ID。
    dest_topic_name str
    目标日志主题名称。
    process_end_time int
    调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
    process_sql_delay int
    每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
    process_start_time int
    调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
    process_time_window str
    SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
    query str
    定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
    request_cycle ScheduleSqlTaskRequestCycleArgs
    定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
    source_project_id str
    源日志项目 ID。
    source_project_name str
    源日志项目名称。
    source_topic_id str
    待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
    source_topic_name str
    源日志主题名称。
    status int
    完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
    task_id str
    任务 ID。
    task_name str
    定时 SQL 分析任务名称。命名规则请参考资源命名规则。
    task_type int
    任务类型:0 表示日志到日志;1 表示日志到指标。
    updated_time int
    修改时间(秒级 Unix 时间戳)。
    createdTime Number
    创建时间(秒级 Unix 时间戳)。
    description String
    定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
    destProjectId String
    目标日志项目 ID。
    destRegion String
    目标日志主题所属地域。默认为当前地域。
    destTopicId String
    用于存储定时 SQL 分析结果数据的目标日志主题 ID。
    destTopicName String
    目标日志主题名称。
    processEndTime Number
    调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
    processSqlDelay Number
    每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
    processStartTime Number
    调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
    processTimeWindow String
    SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
    query String
    定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
    requestCycle Property Map
    定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
    sourceProjectId String
    源日志项目 ID。
    sourceProjectName String
    源日志项目名称。
    sourceTopicId String
    待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
    sourceTopicName String
    源日志主题名称。
    status Number
    完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
    taskId String
    任务 ID。
    taskName String
    定时 SQL 分析任务名称。命名规则请参考资源命名规则。
    taskType Number
    任务类型:0 表示日志到日志;1 表示日志到指标。
    updatedTime Number
    修改时间(秒级 Unix 时间戳)。

    Supporting Types

    ScheduleSqlTaskRequestCycle, ScheduleSqlTaskRequestCycleArgs

    Time int
    调度的周期或者定期执行的时间点(距离 00:00 的分钟数),取值范围为 1~1440,单位为分钟。
    Type string
    调度周期类型。可选值:Period、Fixed、Cron。
    CronTab string
    Cron 表达式,最小粒度为分钟,24 小时制。例如 0 18 * * * 表示每天 18 点整执行一次。
    CronTimeZone string
    设置 Type 为 Cron 时,还需设置时区。
    Time int
    调度的周期或者定期执行的时间点(距离 00:00 的分钟数),取值范围为 1~1440,单位为分钟。
    Type string
    调度周期类型。可选值:Period、Fixed、Cron。
    CronTab string
    Cron 表达式,最小粒度为分钟,24 小时制。例如 0 18 * * * 表示每天 18 点整执行一次。
    CronTimeZone string
    设置 Type 为 Cron 时,还需设置时区。
    time Integer
    调度的周期或者定期执行的时间点(距离 00:00 的分钟数),取值范围为 1~1440,单位为分钟。
    type String
    调度周期类型。可选值:Period、Fixed、Cron。
    cronTab String
    Cron 表达式,最小粒度为分钟,24 小时制。例如 0 18 * * * 表示每天 18 点整执行一次。
    cronTimeZone String
    设置 Type 为 Cron 时,还需设置时区。
    time number
    调度的周期或者定期执行的时间点(距离 00:00 的分钟数),取值范围为 1~1440,单位为分钟。
    type string
    调度周期类型。可选值:Period、Fixed、Cron。
    cronTab string
    Cron 表达式,最小粒度为分钟,24 小时制。例如 0 18 * * * 表示每天 18 点整执行一次。
    cronTimeZone string
    设置 Type 为 Cron 时,还需设置时区。
    time int
    调度的周期或者定期执行的时间点(距离 00:00 的分钟数),取值范围为 1~1440,单位为分钟。
    type str
    调度周期类型。可选值:Period、Fixed、Cron。
    cron_tab str
    Cron 表达式,最小粒度为分钟,24 小时制。例如 0 18 * * * 表示每天 18 点整执行一次。
    cron_time_zone str
    设置 Type 为 Cron 时,还需设置时区。
    time Number
    调度的周期或者定期执行的时间点(距离 00:00 的分钟数),取值范围为 1~1440,单位为分钟。
    type String
    调度周期类型。可选值:Period、Fixed、Cron。
    cronTab String
    Cron 表达式,最小粒度为分钟,24 小时制。例如 0 18 * * * 表示每天 18 点整执行一次。
    cronTimeZone String
    设置 Type 为 Cron 时,还需设置时区。

    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.20
    published on Thursday, Mar 26, 2026 by Byteplus
      Try Pulumi Cloud free. Your team will thank you.