volcengine.tls.ScheduleSqlTask
Explore with Pulumi AI
Provides a resource to manage tls schedule sql task
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.tls.ScheduleSqlTask("foo", {
description: "tf-test",
destRegion: "cn-beijing",
destTopicId: "b966e41a-d6a6-4999-bd75-39962xxxxxx",
processEndTime: 1751295600,
processSqlDelay: 60,
processStartTime: 1751212980,
processTimeWindow: "@m-15m,@m",
query: "* | SELECT * limit 10000",
requestCycle: {
cronTab: "0 10 * * *",
cronTimeZone: "GMT+08:00",
time: 1,
type: "CronTab",
},
status: 1,
taskName: "tf-test",
topicId: "8ba48bd7-2493-4300-b1d0-cb760bxxxxxx",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.tls.ScheduleSqlTask("foo",
description="tf-test",
dest_region="cn-beijing",
dest_topic_id="b966e41a-d6a6-4999-bd75-39962xxxxxx",
process_end_time=1751295600,
process_sql_delay=60,
process_start_time=1751212980,
process_time_window="@m-15m,@m",
query="* | SELECT * limit 10000",
request_cycle=volcengine.tls.ScheduleSqlTaskRequestCycleArgs(
cron_tab="0 10 * * *",
cron_time_zone="GMT+08:00",
time=1,
type="CronTab",
),
status=1,
task_name="tf-test",
topic_id="8ba48bd7-2493-4300-b1d0-cb760bxxxxxx")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tls.NewScheduleSqlTask(ctx, "foo", &tls.ScheduleSqlTaskArgs{
Description: pulumi.String("tf-test"),
DestRegion: pulumi.String("cn-beijing"),
DestTopicId: pulumi.String("b966e41a-d6a6-4999-bd75-39962xxxxxx"),
ProcessEndTime: pulumi.Int(1751295600),
ProcessSqlDelay: pulumi.Int(60),
ProcessStartTime: pulumi.Int(1751212980),
ProcessTimeWindow: pulumi.String("@m-15m,@m"),
Query: pulumi.String("* | SELECT * limit 10000"),
RequestCycle: &tls.ScheduleSqlTaskRequestCycleArgs{
CronTab: pulumi.String("0 10 * * *"),
CronTimeZone: pulumi.String("GMT+08:00"),
Time: pulumi.Int(1),
Type: pulumi.String("CronTab"),
},
Status: pulumi.Int(1),
TaskName: pulumi.String("tf-test"),
TopicId: pulumi.String("8ba48bd7-2493-4300-b1d0-cb760bxxxxxx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Tls.ScheduleSqlTask("foo", new()
{
Description = "tf-test",
DestRegion = "cn-beijing",
DestTopicId = "b966e41a-d6a6-4999-bd75-39962xxxxxx",
ProcessEndTime = 1751295600,
ProcessSqlDelay = 60,
ProcessStartTime = 1751212980,
ProcessTimeWindow = "@m-15m,@m",
Query = "* | SELECT * limit 10000",
RequestCycle = new Volcengine.Tls.Inputs.ScheduleSqlTaskRequestCycleArgs
{
CronTab = "0 10 * * *",
CronTimeZone = "GMT+08:00",
Time = 1,
Type = "CronTab",
},
Status = 1,
TaskName = "tf-test",
TopicId = "8ba48bd7-2493-4300-b1d0-cb760bxxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tls.ScheduleSqlTask;
import com.pulumi.volcengine.tls.ScheduleSqlTaskArgs;
import com.pulumi.volcengine.tls.inputs.ScheduleSqlTaskRequestCycleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new ScheduleSqlTask("foo", ScheduleSqlTaskArgs.builder()
.description("tf-test")
.destRegion("cn-beijing")
.destTopicId("b966e41a-d6a6-4999-bd75-39962xxxxxx")
.processEndTime(1751295600)
.processSqlDelay(60)
.processStartTime(1751212980)
.processTimeWindow("@m-15m,@m")
.query("* | SELECT * limit 10000")
.requestCycle(ScheduleSqlTaskRequestCycleArgs.builder()
.cronTab("0 10 * * *")
.cronTimeZone("GMT+08:00")
.time(1)
.type("CronTab")
.build())
.status(1)
.taskName("tf-test")
.topicId("8ba48bd7-2493-4300-b1d0-cb760bxxxxxx")
.build());
}
}
resources:
foo:
type: volcengine:tls:ScheduleSqlTask
properties:
description: tf-test
destRegion: cn-beijing
destTopicId: b966e41a-d6a6-4999-bd75-39962xxxxxx
processEndTime: 1.7512956e+09
processSqlDelay: 60
processStartTime: 1.75121298e+09
processTimeWindow: '@m-15m,@m'
query: '* | SELECT * limit 10000'
requestCycle:
cronTab: 0 10 * * *
cronTimeZone: GMT+08:00
time: 1
type: CronTab
status: 1
taskName: tf-test
topicId: 8ba48bd7-2493-4300-b1d0-cb760bxxxxxx
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,
dest_topic_id: Optional[str] = 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,
status: Optional[int] = None,
task_name: Optional[str] = None,
topic_id: Optional[str] = None,
description: Optional[str] = None,
dest_region: Optional[str] = None,
process_end_time: Optional[int] = 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: volcengine: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 Volcengine.Tls.ScheduleSqlTask("scheduleSqlTaskResource", new()
{
DestTopicId = "string",
ProcessSqlDelay = 0,
ProcessStartTime = 0,
ProcessTimeWindow = "string",
Query = "string",
RequestCycle = new Volcengine.Tls.Inputs.ScheduleSqlTaskRequestCycleArgs
{
Time = 0,
Type = "string",
CronTab = "string",
CronTimeZone = "string",
},
Status = 0,
TaskName = "string",
TopicId = "string",
Description = "string",
DestRegion = "string",
ProcessEndTime = 0,
});
example, err := tls.NewScheduleSqlTask(ctx, "scheduleSqlTaskResource", &tls.ScheduleSqlTaskArgs{
DestTopicId: pulumi.String("string"),
ProcessSqlDelay: pulumi.Int(0),
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"),
TopicId: pulumi.String("string"),
Description: pulumi.String("string"),
DestRegion: pulumi.String("string"),
ProcessEndTime: pulumi.Int(0),
})
var scheduleSqlTaskResource = new ScheduleSqlTask("scheduleSqlTaskResource", ScheduleSqlTaskArgs.builder()
.destTopicId("string")
.processSqlDelay(0)
.processStartTime(0)
.processTimeWindow("string")
.query("string")
.requestCycle(ScheduleSqlTaskRequestCycleArgs.builder()
.time(0)
.type("string")
.cronTab("string")
.cronTimeZone("string")
.build())
.status(0)
.taskName("string")
.topicId("string")
.description("string")
.destRegion("string")
.processEndTime(0)
.build());
schedule_sql_task_resource = volcengine.tls.ScheduleSqlTask("scheduleSqlTaskResource",
dest_topic_id="string",
process_sql_delay=0,
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",
topic_id="string",
description="string",
dest_region="string",
process_end_time=0)
const scheduleSqlTaskResource = new volcengine.tls.ScheduleSqlTask("scheduleSqlTaskResource", {
destTopicId: "string",
processSqlDelay: 0,
processStartTime: 0,
processTimeWindow: "string",
query: "string",
requestCycle: {
time: 0,
type: "string",
cronTab: "string",
cronTimeZone: "string",
},
status: 0,
taskName: "string",
topicId: "string",
description: "string",
destRegion: "string",
processEndTime: 0,
});
type: volcengine: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
status: 0
taskName: string
topicId: string
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 - The target log topic ID used for storing the result data of timed SQL analysis.
- Process
Sql intDelay - The delay time of each scheduling. The value range is from 0 to 120, and the unit is seconds.
- Process
Start intTime - The start time of the scheduled SQL analysis task, that is, the time when the first instance is created. The format is a timestamp at the second level.
- Process
Time stringWindow - SQL time window, which refers to the time range for log retrieval and analysis when a timed SQL analysis task is running, is in a left-closed and right-open format.
- Query string
- The retrieval and analysis statements for the regular execution of timed SQL analysis tasks should conform to the retrieval and analysis syntax of the log service.
- Request
Cycle ScheduleSql Task Request Cycle - The scheduling cycle of timed SQL analysis tasks.
- Status int
- Whether to start the scheduled SQL analysis task immediately after completing the task configuration.
- Task
Name string - The Name of timed SQL analysis task.
- Topic
Id string - The log topic ID where the original log to be analyzed for scheduled SQL is located.
- Description string
- A simple description of the timed SQL analysis task.
- Dest
Region string - The region to which the target log topic belongs. The default is the current region.
- Process
End intTime - Schedule the end time of the timed SQL analysis task in the format of a second-level timestamp.
- Dest
Topic stringId - The target log topic ID used for storing the result data of timed SQL analysis.
- Process
Sql intDelay - The delay time of each scheduling. The value range is from 0 to 120, and the unit is seconds.
- Process
Start intTime - The start time of the scheduled SQL analysis task, that is, the time when the first instance is created. The format is a timestamp at the second level.
- Process
Time stringWindow - SQL time window, which refers to the time range for log retrieval and analysis when a timed SQL analysis task is running, is in a left-closed and right-open format.
- Query string
- The retrieval and analysis statements for the regular execution of timed SQL analysis tasks should conform to the retrieval and analysis syntax of the log service.
- Request
Cycle ScheduleSql Task Request Cycle Args - The scheduling cycle of timed SQL analysis tasks.
- Status int
- Whether to start the scheduled SQL analysis task immediately after completing the task configuration.
- Task
Name string - The Name of timed SQL analysis task.
- Topic
Id string - The log topic ID where the original log to be analyzed for scheduled SQL is located.
- Description string
- A simple description of the timed SQL analysis task.
- Dest
Region string - The region to which the target log topic belongs. The default is the current region.
- Process
End intTime - Schedule the end time of the timed SQL analysis task in the format of a second-level timestamp.
- dest
Topic StringId - The target log topic ID used for storing the result data of timed SQL analysis.
- process
Sql IntegerDelay - The delay time of each scheduling. The value range is from 0 to 120, and the unit is seconds.
- process
Start IntegerTime - The start time of the scheduled SQL analysis task, that is, the time when the first instance is created. The format is a timestamp at the second level.
- process
Time StringWindow - SQL time window, which refers to the time range for log retrieval and analysis when a timed SQL analysis task is running, is in a left-closed and right-open format.
- query String
- The retrieval and analysis statements for the regular execution of timed SQL analysis tasks should conform to the retrieval and analysis syntax of the log service.
- request
Cycle ScheduleSql Task Request Cycle - The scheduling cycle of timed SQL analysis tasks.
- status Integer
- Whether to start the scheduled SQL analysis task immediately after completing the task configuration.
- task
Name String - The Name of timed SQL analysis task.
- topic
Id String - The log topic ID where the original log to be analyzed for scheduled SQL is located.
- description String
- A simple description of the timed SQL analysis task.
- dest
Region String - The region to which the target log topic belongs. The default is the current region.
- process
End IntegerTime - Schedule the end time of the timed SQL analysis task in the format of a second-level timestamp.
- dest
Topic stringId - The target log topic ID used for storing the result data of timed SQL analysis.
- process
Sql numberDelay - The delay time of each scheduling. The value range is from 0 to 120, and the unit is seconds.
- process
Start numberTime - The start time of the scheduled SQL analysis task, that is, the time when the first instance is created. The format is a timestamp at the second level.
- process
Time stringWindow - SQL time window, which refers to the time range for log retrieval and analysis when a timed SQL analysis task is running, is in a left-closed and right-open format.
- query string
- The retrieval and analysis statements for the regular execution of timed SQL analysis tasks should conform to the retrieval and analysis syntax of the log service.
- request
Cycle ScheduleSql Task Request Cycle - The scheduling cycle of timed SQL analysis tasks.
- status number
- Whether to start the scheduled SQL analysis task immediately after completing the task configuration.
- task
Name string - The Name of timed SQL analysis task.
- topic
Id string - The log topic ID where the original log to be analyzed for scheduled SQL is located.
- description string
- A simple description of the timed SQL analysis task.
- dest
Region string - The region to which the target log topic belongs. The default is the current region.
- process
End numberTime - Schedule the end time of the timed SQL analysis task in the format of a second-level timestamp.
- dest_
topic_ strid - The target log topic ID used for storing the result data of timed SQL analysis.
- process_
sql_ intdelay - The delay time of each scheduling. The value range is from 0 to 120, and the unit is seconds.
- process_
start_ inttime - The start time of the scheduled SQL analysis task, that is, the time when the first instance is created. The format is a timestamp at the second level.
- process_
time_ strwindow - SQL time window, which refers to the time range for log retrieval and analysis when a timed SQL analysis task is running, is in a left-closed and right-open format.
- query str
- The retrieval and analysis statements for the regular execution of timed SQL analysis tasks should conform to the retrieval and analysis syntax of the log service.
- request_
cycle ScheduleSql Task Request Cycle Args - The scheduling cycle of timed SQL analysis tasks.
- status int
- Whether to start the scheduled SQL analysis task immediately after completing the task configuration.
- task_
name str - The Name of timed SQL analysis task.
- topic_
id str - The log topic ID where the original log to be analyzed for scheduled SQL is located.
- description str
- A simple description of the timed SQL analysis task.
- dest_
region str - The region to which the target log topic belongs. The default is the current region.
- process_
end_ inttime - Schedule the end time of the timed SQL analysis task in the format of a second-level timestamp.
- dest
Topic StringId - The target log topic ID used for storing the result data of timed SQL analysis.
- process
Sql NumberDelay - The delay time of each scheduling. The value range is from 0 to 120, and the unit is seconds.
- process
Start NumberTime - The start time of the scheduled SQL analysis task, that is, the time when the first instance is created. The format is a timestamp at the second level.
- process
Time StringWindow - SQL time window, which refers to the time range for log retrieval and analysis when a timed SQL analysis task is running, is in a left-closed and right-open format.
- query String
- The retrieval and analysis statements for the regular execution of timed SQL analysis tasks should conform to the retrieval and analysis syntax of the log service.
- request
Cycle Property Map - The scheduling cycle of timed SQL analysis tasks.
- status Number
- Whether to start the scheduled SQL analysis task immediately after completing the task configuration.
- task
Name String - The Name of timed SQL analysis task.
- topic
Id String - The log topic ID where the original log to be analyzed for scheduled SQL is located.
- description String
- A simple description of the timed SQL analysis task.
- dest
Region String - The region to which the target log topic belongs. The default is the current region.
- process
End NumberTime - Schedule the end time of the timed SQL analysis task in the format of a second-level timestamp.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScheduleSqlTask resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
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,
description: Optional[str] = None,
dest_region: Optional[str] = None,
dest_topic_id: 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,
status: Optional[int] = None,
task_name: Optional[str] = None,
topic_id: Optional[str] = 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: volcengine: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.
- Description string
- A simple description of the timed SQL analysis task.
- Dest
Region string - The region to which the target log topic belongs. The default is the current region.
- Dest
Topic stringId - The target log topic ID used for storing the result data of timed SQL analysis.
- Process
End intTime - Schedule the end time of the timed SQL analysis task in the format of a second-level timestamp.
- Process
Sql intDelay - The delay time of each scheduling. The value range is from 0 to 120, and the unit is seconds.
- Process
Start intTime - The start time of the scheduled SQL analysis task, that is, the time when the first instance is created. The format is a timestamp at the second level.
- Process
Time stringWindow - SQL time window, which refers to the time range for log retrieval and analysis when a timed SQL analysis task is running, is in a left-closed and right-open format.
- Query string
- The retrieval and analysis statements for the regular execution of timed SQL analysis tasks should conform to the retrieval and analysis syntax of the log service.
- Request
Cycle ScheduleSql Task Request Cycle - The scheduling cycle of timed SQL analysis tasks.
- Status int
- Whether to start the scheduled SQL analysis task immediately after completing the task configuration.
- Task
Name string - The Name of timed SQL analysis task.
- Topic
Id string - The log topic ID where the original log to be analyzed for scheduled SQL is located.
- Description string
- A simple description of the timed SQL analysis task.
- Dest
Region string - The region to which the target log topic belongs. The default is the current region.
- Dest
Topic stringId - The target log topic ID used for storing the result data of timed SQL analysis.
- Process
End intTime - Schedule the end time of the timed SQL analysis task in the format of a second-level timestamp.
- Process
Sql intDelay - The delay time of each scheduling. The value range is from 0 to 120, and the unit is seconds.
- Process
Start intTime - The start time of the scheduled SQL analysis task, that is, the time when the first instance is created. The format is a timestamp at the second level.
- Process
Time stringWindow - SQL time window, which refers to the time range for log retrieval and analysis when a timed SQL analysis task is running, is in a left-closed and right-open format.
- Query string
- The retrieval and analysis statements for the regular execution of timed SQL analysis tasks should conform to the retrieval and analysis syntax of the log service.
- Request
Cycle ScheduleSql Task Request Cycle Args - The scheduling cycle of timed SQL analysis tasks.
- Status int
- Whether to start the scheduled SQL analysis task immediately after completing the task configuration.
- Task
Name string - The Name of timed SQL analysis task.
- Topic
Id string - The log topic ID where the original log to be analyzed for scheduled SQL is located.
- description String
- A simple description of the timed SQL analysis task.
- dest
Region String - The region to which the target log topic belongs. The default is the current region.
- dest
Topic StringId - The target log topic ID used for storing the result data of timed SQL analysis.
- process
End IntegerTime - Schedule the end time of the timed SQL analysis task in the format of a second-level timestamp.
- process
Sql IntegerDelay - The delay time of each scheduling. The value range is from 0 to 120, and the unit is seconds.
- process
Start IntegerTime - The start time of the scheduled SQL analysis task, that is, the time when the first instance is created. The format is a timestamp at the second level.
- process
Time StringWindow - SQL time window, which refers to the time range for log retrieval and analysis when a timed SQL analysis task is running, is in a left-closed and right-open format.
- query String
- The retrieval and analysis statements for the regular execution of timed SQL analysis tasks should conform to the retrieval and analysis syntax of the log service.
- request
Cycle ScheduleSql Task Request Cycle - The scheduling cycle of timed SQL analysis tasks.
- status Integer
- Whether to start the scheduled SQL analysis task immediately after completing the task configuration.
- task
Name String - The Name of timed SQL analysis task.
- topic
Id String - The log topic ID where the original log to be analyzed for scheduled SQL is located.
- description string
- A simple description of the timed SQL analysis task.
- dest
Region string - The region to which the target log topic belongs. The default is the current region.
- dest
Topic stringId - The target log topic ID used for storing the result data of timed SQL analysis.
- process
End numberTime - Schedule the end time of the timed SQL analysis task in the format of a second-level timestamp.
- process
Sql numberDelay - The delay time of each scheduling. The value range is from 0 to 120, and the unit is seconds.
- process
Start numberTime - The start time of the scheduled SQL analysis task, that is, the time when the first instance is created. The format is a timestamp at the second level.
- process
Time stringWindow - SQL time window, which refers to the time range for log retrieval and analysis when a timed SQL analysis task is running, is in a left-closed and right-open format.
- query string
- The retrieval and analysis statements for the regular execution of timed SQL analysis tasks should conform to the retrieval and analysis syntax of the log service.
- request
Cycle ScheduleSql Task Request Cycle - The scheduling cycle of timed SQL analysis tasks.
- status number
- Whether to start the scheduled SQL analysis task immediately after completing the task configuration.
- task
Name string - The Name of timed SQL analysis task.
- topic
Id string - The log topic ID where the original log to be analyzed for scheduled SQL is located.
- description str
- A simple description of the timed SQL analysis task.
- dest_
region str - The region to which the target log topic belongs. The default is the current region.
- dest_
topic_ strid - The target log topic ID used for storing the result data of timed SQL analysis.
- process_
end_ inttime - Schedule the end time of the timed SQL analysis task in the format of a second-level timestamp.
- process_
sql_ intdelay - The delay time of each scheduling. The value range is from 0 to 120, and the unit is seconds.
- process_
start_ inttime - The start time of the scheduled SQL analysis task, that is, the time when the first instance is created. The format is a timestamp at the second level.
- process_
time_ strwindow - SQL time window, which refers to the time range for log retrieval and analysis when a timed SQL analysis task is running, is in a left-closed and right-open format.
- query str
- The retrieval and analysis statements for the regular execution of timed SQL analysis tasks should conform to the retrieval and analysis syntax of the log service.
- request_
cycle ScheduleSql Task Request Cycle Args - The scheduling cycle of timed SQL analysis tasks.
- status int
- Whether to start the scheduled SQL analysis task immediately after completing the task configuration.
- task_
name str - The Name of timed SQL analysis task.
- topic_
id str - The log topic ID where the original log to be analyzed for scheduled SQL is located.
- description String
- A simple description of the timed SQL analysis task.
- dest
Region String - The region to which the target log topic belongs. The default is the current region.
- dest
Topic StringId - The target log topic ID used for storing the result data of timed SQL analysis.
- process
End NumberTime - Schedule the end time of the timed SQL analysis task in the format of a second-level timestamp.
- process
Sql NumberDelay - The delay time of each scheduling. The value range is from 0 to 120, and the unit is seconds.
- process
Start NumberTime - The start time of the scheduled SQL analysis task, that is, the time when the first instance is created. The format is a timestamp at the second level.
- process
Time StringWindow - SQL time window, which refers to the time range for log retrieval and analysis when a timed SQL analysis task is running, is in a left-closed and right-open format.
- query String
- The retrieval and analysis statements for the regular execution of timed SQL analysis tasks should conform to the retrieval and analysis syntax of the log service.
- request
Cycle Property Map - The scheduling cycle of timed SQL analysis tasks.
- status Number
- Whether to start the scheduled SQL analysis task immediately after completing the task configuration.
- task
Name String - The Name of timed SQL analysis task.
- topic
Id String - The log topic ID where the original log to be analyzed for scheduled SQL is located.
Supporting Types
ScheduleSqlTaskRequestCycle, ScheduleSqlTaskRequestCycleArgs
- Time int
- The scheduling cycle or the time point of regular execution (the number of minutes away from 00:00), with a value range of 1 to 1440, and the unit is minutes.
- Type string
- The type of Scheduling cycle.
- Cron
Tab string - Cron expression. The log service specifies the timed execution of alarm tasks through the Cron expression. The minimum granularity of Cron expressions is minutes, 24 hours. For example, 0 18 * * * indicates that an alarm task is executed exactly at 18:00 every day.
- Cron
Time stringZone - When setting the Type to Cron, the time zone also needs to be set.
- Time int
- The scheduling cycle or the time point of regular execution (the number of minutes away from 00:00), with a value range of 1 to 1440, and the unit is minutes.
- Type string
- The type of Scheduling cycle.
- Cron
Tab string - Cron expression. The log service specifies the timed execution of alarm tasks through the Cron expression. The minimum granularity of Cron expressions is minutes, 24 hours. For example, 0 18 * * * indicates that an alarm task is executed exactly at 18:00 every day.
- Cron
Time stringZone - When setting the Type to Cron, the time zone also needs to be set.
- time Integer
- The scheduling cycle or the time point of regular execution (the number of minutes away from 00:00), with a value range of 1 to 1440, and the unit is minutes.
- type String
- The type of Scheduling cycle.
- cron
Tab String - Cron expression. The log service specifies the timed execution of alarm tasks through the Cron expression. The minimum granularity of Cron expressions is minutes, 24 hours. For example, 0 18 * * * indicates that an alarm task is executed exactly at 18:00 every day.
- cron
Time StringZone - When setting the Type to Cron, the time zone also needs to be set.
- time number
- The scheduling cycle or the time point of regular execution (the number of minutes away from 00:00), with a value range of 1 to 1440, and the unit is minutes.
- type string
- The type of Scheduling cycle.
- cron
Tab string - Cron expression. The log service specifies the timed execution of alarm tasks through the Cron expression. The minimum granularity of Cron expressions is minutes, 24 hours. For example, 0 18 * * * indicates that an alarm task is executed exactly at 18:00 every day.
- cron
Time stringZone - When setting the Type to Cron, the time zone also needs to be set.
- time int
- The scheduling cycle or the time point of regular execution (the number of minutes away from 00:00), with a value range of 1 to 1440, and the unit is minutes.
- type str
- The type of Scheduling cycle.
- cron_
tab str - Cron expression. The log service specifies the timed execution of alarm tasks through the Cron expression. The minimum granularity of Cron expressions is minutes, 24 hours. For example, 0 18 * * * indicates that an alarm task is executed exactly at 18:00 every day.
- cron_
time_ strzone - When setting the Type to Cron, the time zone also needs to be set.
- time Number
- The scheduling cycle or the time point of regular execution (the number of minutes away from 00:00), with a value range of 1 to 1440, and the unit is minutes.
- type String
- The type of Scheduling cycle.
- cron
Tab String - Cron expression. The log service specifies the timed execution of alarm tasks through the Cron expression. The minimum granularity of Cron expressions is minutes, 24 hours. For example, 0 18 * * * indicates that an alarm task is executed exactly at 18:00 every day.
- cron
Time StringZone - When setting the Type to Cron, the time zone also needs to be set.
Import
ScheduleSqlTask can be imported using the id, e.g.
$ pulumi import volcengine:tls/scheduleSqlTask:ScheduleSqlTask default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.