published on Thursday, Mar 26, 2026 by Byteplus
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:
- Dest
Topic stringId - 用于存储定时 SQL 分析结果数据的目标日志主题 ID。
- Process
Start intTime - 调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
- Process
Time stringWindow - SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
- Query string
- 定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
- Request
Cycle Byteplus.Schedule Sql Task Request Cycle - 定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
- Source
Topic stringId - 待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
- Status int
- 完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
- Task
Name string - 定时 SQL 分析任务名称。命名规则请参考资源命名规则。
- Task
Type int - 任务类型:0 表示日志到日志;1 表示日志到指标。
- Description string
- 定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
- Dest
Region string - 目标日志主题所属地域。默认为当前地域。
- Process
End intTime - 调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
- Process
Sql intDelay - 每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
- Dest
Topic stringId - 用于存储定时 SQL 分析结果数据的目标日志主题 ID。
- Process
Start intTime - 调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
- Process
Time stringWindow - SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
- Query string
- 定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
- Request
Cycle ScheduleSql Task Request Cycle Args - 定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
- Source
Topic stringId - 待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
- Status int
- 完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
- Task
Name string - 定时 SQL 分析任务名称。命名规则请参考资源命名规则。
- Task
Type int - 任务类型:0 表示日志到日志;1 表示日志到指标。
- Description string
- 定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
- Dest
Region string - 目标日志主题所属地域。默认为当前地域。
- Process
End intTime - 调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
- Process
Sql intDelay - 每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
- dest
Topic StringId - 用于存储定时 SQL 分析结果数据的目标日志主题 ID。
- process
Start IntegerTime - 调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
- process
Time StringWindow - SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
- query String
- 定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
- request
Cycle ScheduleSql Task Request Cycle - 定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
- source
Topic StringId - 待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
- status Integer
- 完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
- task
Name String - 定时 SQL 分析任务名称。命名规则请参考资源命名规则。
- task
Type Integer - 任务类型:0 表示日志到日志;1 表示日志到指标。
- description String
- 定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
- dest
Region String - 目标日志主题所属地域。默认为当前地域。
- process
End IntegerTime - 调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
- process
Sql IntegerDelay - 每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
- dest
Topic stringId - 用于存储定时 SQL 分析结果数据的目标日志主题 ID。
- process
Start numberTime - 调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
- process
Time stringWindow - SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
- query string
- 定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
- request
Cycle ScheduleSql Task Request Cycle - 定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
- source
Topic stringId - 待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
- status number
- 完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
- task
Name string - 定时 SQL 分析任务名称。命名规则请参考资源命名规则。
- task
Type number - 任务类型:0 表示日志到日志;1 表示日志到指标。
- description string
- 定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
- dest
Region string - 目标日志主题所属地域。默认为当前地域。
- process
End numberTime - 调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
- process
Sql numberDelay - 每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
- dest_
topic_ strid - 用于存储定时 SQL 分析结果数据的目标日志主题 ID。
- process_
start_ inttime - 调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
- process_
time_ strwindow - SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
- query str
- 定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
- request_
cycle ScheduleSql Task Request Cycle Args - 定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
- source_
topic_ strid - 待进行定时 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_ inttime - 调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
- process_
sql_ intdelay - 每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
- dest
Topic StringId - 用于存储定时 SQL 分析结果数据的目标日志主题 ID。
- process
Start NumberTime - 调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
- process
Time StringWindow - SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
- query String
- 定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
- request
Cycle Property Map - 定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
- source
Topic StringId - 待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
- status Number
- 完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
- task
Name String - 定时 SQL 分析任务名称。命名规则请参考资源命名规则。
- task
Type Number - 任务类型:0 表示日志到日志;1 表示日志到指标。
- description String
- 定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
- dest
Region String - 目标日志主题所属地域。默认为当前地域。
- process
End NumberTime - 调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
- process
Sql NumberDelay - 每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduleSqlTask resource produces the following output properties:
- Created
Time int - 创建时间(秒级 Unix 时间戳)。
- Dest
Project stringId - 目标日志项目 ID。
- Dest
Topic stringName - 目标日志主题名称。
- Id string
- The provider-assigned unique ID for this managed resource.
- Source
Project stringId - 源日志项目 ID。
- Source
Project stringName - 源日志项目名称。
- Source
Topic stringName - 源日志主题名称。
- Task
Id string - 任务 ID。
- Updated
Time int - 修改时间(秒级 Unix 时间戳)。
- Created
Time int - 创建时间(秒级 Unix 时间戳)。
- Dest
Project stringId - 目标日志项目 ID。
- Dest
Topic stringName - 目标日志主题名称。
- Id string
- The provider-assigned unique ID for this managed resource.
- Source
Project stringId - 源日志项目 ID。
- Source
Project stringName - 源日志项目名称。
- Source
Topic stringName - 源日志主题名称。
- Task
Id string - 任务 ID。
- Updated
Time int - 修改时间(秒级 Unix 时间戳)。
- created
Time Integer - 创建时间(秒级 Unix 时间戳)。
- dest
Project StringId - 目标日志项目 ID。
- dest
Topic StringName - 目标日志主题名称。
- id String
- The provider-assigned unique ID for this managed resource.
- source
Project StringId - 源日志项目 ID。
- source
Project StringName - 源日志项目名称。
- source
Topic StringName - 源日志主题名称。
- task
Id String - 任务 ID。
- updated
Time Integer - 修改时间(秒级 Unix 时间戳)。
- created
Time number - 创建时间(秒级 Unix 时间戳)。
- dest
Project stringId - 目标日志项目 ID。
- dest
Topic stringName - 目标日志主题名称。
- id string
- The provider-assigned unique ID for this managed resource.
- source
Project stringId - 源日志项目 ID。
- source
Project stringName - 源日志项目名称。
- source
Topic stringName - 源日志主题名称。
- task
Id string - 任务 ID。
- updated
Time number - 修改时间(秒级 Unix 时间戳)。
- created_
time int - 创建时间(秒级 Unix 时间戳)。
- dest_
project_ strid - 目标日志项目 ID。
- dest_
topic_ strname - 目标日志主题名称。
- id str
- The provider-assigned unique ID for this managed resource.
- source_
project_ strid - 源日志项目 ID。
- source_
project_ strname - 源日志项目名称。
- source_
topic_ strname - 源日志主题名称。
- task_
id str - 任务 ID。
- updated_
time int - 修改时间(秒级 Unix 时间戳)。
- created
Time Number - 创建时间(秒级 Unix 时间戳)。
- dest
Project StringId - 目标日志项目 ID。
- dest
Topic StringName - 目标日志主题名称。
- id String
- The provider-assigned unique ID for this managed resource.
- source
Project StringId - 源日志项目 ID。
- source
Project StringName - 源日志项目名称。
- source
Topic StringName - 源日志主题名称。
- task
Id String - 任务 ID。
- updated
Time 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) -> 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 - 创建时间(秒级 Unix 时间戳)。
- Description string
- 定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
- Dest
Project stringId - 目标日志项目 ID。
- Dest
Region string - 目标日志主题所属地域。默认为当前地域。
- Dest
Topic stringId - 用于存储定时 SQL 分析结果数据的目标日志主题 ID。
- Dest
Topic stringName - 目标日志主题名称。
- Process
End intTime - 调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
- Process
Sql intDelay - 每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
- Process
Start intTime - 调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
- Process
Time stringWindow - SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
- Query string
- 定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
- Request
Cycle Byteplus.Schedule Sql Task Request Cycle - 定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
- Source
Project stringId - 源日志项目 ID。
- Source
Project stringName - 源日志项目名称。
- Source
Topic stringId - 待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
- Source
Topic stringName - 源日志主题名称。
- Status int
- 完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
- Task
Id string - 任务 ID。
- Task
Name string - 定时 SQL 分析任务名称。命名规则请参考资源命名规则。
- Task
Type int - 任务类型:0 表示日志到日志;1 表示日志到指标。
- Updated
Time int - 修改时间(秒级 Unix 时间戳)。
- Created
Time int - 创建时间(秒级 Unix 时间戳)。
- Description string
- 定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
- Dest
Project stringId - 目标日志项目 ID。
- Dest
Region string - 目标日志主题所属地域。默认为当前地域。
- Dest
Topic stringId - 用于存储定时 SQL 分析结果数据的目标日志主题 ID。
- Dest
Topic stringName - 目标日志主题名称。
- Process
End intTime - 调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
- Process
Sql intDelay - 每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
- Process
Start intTime - 调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
- Process
Time stringWindow - SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
- Query string
- 定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
- Request
Cycle ScheduleSql Task Request Cycle Args - 定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
- Source
Project stringId - 源日志项目 ID。
- Source
Project stringName - 源日志项目名称。
- Source
Topic stringId - 待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
- Source
Topic stringName - 源日志主题名称。
- Status int
- 完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
- Task
Id string - 任务 ID。
- Task
Name string - 定时 SQL 分析任务名称。命名规则请参考资源命名规则。
- Task
Type int - 任务类型:0 表示日志到日志;1 表示日志到指标。
- Updated
Time int - 修改时间(秒级 Unix 时间戳)。
- created
Time Integer - 创建时间(秒级 Unix 时间戳)。
- description String
- 定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
- dest
Project StringId - 目标日志项目 ID。
- dest
Region String - 目标日志主题所属地域。默认为当前地域。
- dest
Topic StringId - 用于存储定时 SQL 分析结果数据的目标日志主题 ID。
- dest
Topic StringName - 目标日志主题名称。
- process
End IntegerTime - 调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
- process
Sql IntegerDelay - 每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
- process
Start IntegerTime - 调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
- process
Time StringWindow - SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
- query String
- 定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
- request
Cycle ScheduleSql Task Request Cycle - 定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
- source
Project StringId - 源日志项目 ID。
- source
Project StringName - 源日志项目名称。
- source
Topic StringId - 待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
- source
Topic StringName - 源日志主题名称。
- status Integer
- 完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
- task
Id String - 任务 ID。
- task
Name String - 定时 SQL 分析任务名称。命名规则请参考资源命名规则。
- task
Type Integer - 任务类型:0 表示日志到日志;1 表示日志到指标。
- updated
Time Integer - 修改时间(秒级 Unix 时间戳)。
- created
Time number - 创建时间(秒级 Unix 时间戳)。
- description string
- 定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
- dest
Project stringId - 目标日志项目 ID。
- dest
Region string - 目标日志主题所属地域。默认为当前地域。
- dest
Topic stringId - 用于存储定时 SQL 分析结果数据的目标日志主题 ID。
- dest
Topic stringName - 目标日志主题名称。
- process
End numberTime - 调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
- process
Sql numberDelay - 每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
- process
Start numberTime - 调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
- process
Time stringWindow - SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
- query string
- 定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
- request
Cycle ScheduleSql Task Request Cycle - 定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
- source
Project stringId - 源日志项目 ID。
- source
Project stringName - 源日志项目名称。
- source
Topic stringId - 待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
- source
Topic stringName - 源日志主题名称。
- status number
- 完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
- task
Id string - 任务 ID。
- task
Name string - 定时 SQL 分析任务名称。命名规则请参考资源命名规则。
- task
Type number - 任务类型:0 表示日志到日志;1 表示日志到指标。
- updated
Time number - 修改时间(秒级 Unix 时间戳)。
- created_
time int - 创建时间(秒级 Unix 时间戳)。
- description str
- 定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
- dest_
project_ strid - 目标日志项目 ID。
- dest_
region str - 目标日志主题所属地域。默认为当前地域。
- dest_
topic_ strid - 用于存储定时 SQL 分析结果数据的目标日志主题 ID。
- dest_
topic_ strname - 目标日志主题名称。
- process_
end_ inttime - 调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
- process_
sql_ intdelay - 每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
- process_
start_ inttime - 调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
- process_
time_ strwindow - SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
- query str
- 定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
- request_
cycle ScheduleSql Task Request Cycle Args - 定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
- source_
project_ strid - 源日志项目 ID。
- source_
project_ strname - 源日志项目名称。
- source_
topic_ strid - 待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
- source_
topic_ strname - 源日志主题名称。
- status int
- 完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
- task_
id str - 任务 ID。
- task_
name str - 定时 SQL 分析任务名称。命名规则请参考资源命名规则。
- task_
type int - 任务类型:0 表示日志到日志;1 表示日志到指标。
- updated_
time int - 修改时间(秒级 Unix 时间戳)。
- created
Time Number - 创建时间(秒级 Unix 时间戳)。
- description String
- 定时 SQL 分析任务的简单描述。不支持<>、'、\、\。长度范围为 0~64 个字符。
- dest
Project StringId - 目标日志项目 ID。
- dest
Region String - 目标日志主题所属地域。默认为当前地域。
- dest
Topic StringId - 用于存储定时 SQL 分析结果数据的目标日志主题 ID。
- dest
Topic StringName - 目标日志主题名称。
- process
End NumberTime - 调度定时 SQL 分析任务的结束时间,格式为秒级时间戳。如果不配置,表示持续运行定时 SQL 分析任务。到达结束时间后,日志服务不会再创建实例及执行定时 SQL 分析,但任务状态仍为运行中,直至手动暂停任务。
- process
Sql NumberDelay - 每次调度的延迟时间。取值范围为 0~120,单位为秒。如果不配置,则表示 0,即无延时。
- process
Start NumberTime - 调度定时 SQL 分析任务的开始时间,即创建第一个实例的时间。格式为秒级时间戳。
- process
Time StringWindow - SQL 时间窗口,即定时 SQL 分析任务运行时,日志检索与分析的时间范围,左闭右开格式。最大为 24 小时,最小为 1 分钟。
- query String
- 定时 SQL 分析任务定期执行的检索与分析语句,应符合日志服务的检索与分析语法。
- request
Cycle Property Map - 定时 SQL 分析任务的调度周期。调度周期决定每个实例的调度时间。建议调度周期不小于 SQL 时间窗口。
- source
Project StringId - 源日志项目 ID。
- source
Project StringName - 源日志项目名称。
- source
Topic StringId - 待进行定时 SQL 分析的原始日志所在的日志主题 ID。仅支持当前地域的日志主题。
- source
Topic StringName - 源日志主题名称。
- status Number
- 完成任务配置后是否立即启动定时 SQL 分析任务。可选值:0 关闭;1 立即启动。
- task
Id String - 任务 ID。
- task
Name String - 定时 SQL 分析任务名称。命名规则请参考资源命名规则。
- task
Type Number - 任务类型:0 表示日志到日志;1 表示日志到指标。
- updated
Time Number - 修改时间(秒级 Unix 时间戳)。
Supporting Types
ScheduleSqlTaskRequestCycle, ScheduleSqlTaskRequestCycleArgs
- Time int
- 调度的周期或者定期执行的时间点(距离 00:00 的分钟数),取值范围为 1~1440,单位为分钟。
- Type string
- 调度周期类型。可选值:Period、Fixed、Cron。
- Cron
Tab string - Cron 表达式,最小粒度为分钟,24 小时制。例如 0 18 * * * 表示每天 18 点整执行一次。
- Cron
Time stringZone - 设置 Type 为 Cron 时,还需设置时区。
- Time int
- 调度的周期或者定期执行的时间点(距离 00:00 的分钟数),取值范围为 1~1440,单位为分钟。
- Type string
- 调度周期类型。可选值:Period、Fixed、Cron。
- Cron
Tab string - Cron 表达式,最小粒度为分钟,24 小时制。例如 0 18 * * * 表示每天 18 点整执行一次。
- Cron
Time stringZone - 设置 Type 为 Cron 时,还需设置时区。
- time Integer
- 调度的周期或者定期执行的时间点(距离 00:00 的分钟数),取值范围为 1~1440,单位为分钟。
- type String
- 调度周期类型。可选值:Period、Fixed、Cron。
- cron
Tab String - Cron 表达式,最小粒度为分钟,24 小时制。例如 0 18 * * * 表示每天 18 点整执行一次。
- cron
Time StringZone - 设置 Type 为 Cron 时,还需设置时区。
- time number
- 调度的周期或者定期执行的时间点(距离 00:00 的分钟数),取值范围为 1~1440,单位为分钟。
- type string
- 调度周期类型。可选值:Period、Fixed、Cron。
- cron
Tab string - Cron 表达式,最小粒度为分钟,24 小时制。例如 0 18 * * * 表示每天 18 点整执行一次。
- cron
Time stringZone - 设置 Type 为 Cron 时,还需设置时区。
- time int
- 调度的周期或者定期执行的时间点(距离 00:00 的分钟数),取值范围为 1~1440,单位为分钟。
- type str
- 调度周期类型。可选值:Period、Fixed、Cron。
- cron_
tab str - Cron 表达式,最小粒度为分钟,24 小时制。例如 0 18 * * * 表示每天 18 点整执行一次。
- cron_
time_ strzone - 设置 Type 为 Cron 时,还需设置时区。
- time Number
- 调度的周期或者定期执行的时间点(距离 00:00 的分钟数),取值范围为 1~1440,单位为分钟。
- type String
- 调度周期类型。可选值:Period、Fixed、Cron。
- cron
Tab String - Cron 表达式,最小粒度为分钟,24 小时制。例如 0 18 * * * 表示每天 18 点整执行一次。
- cron
Time StringZone - 设置 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
byteplusccTerraform Provider.
published on Thursday, Mar 26, 2026 by Byteplus
