import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource definition for the scheduled SQL analysis task. * * ## Import * * ```sh * $ pulumi import volcenginecc:tls/scheduleSqlTask:ScheduleSqlTask example "task_id" * ``` */ export declare class ScheduleSqlTask extends pulumi.CustomResource { /** * Get an existing ScheduleSqlTask resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ScheduleSqlTaskState, opts?: pulumi.CustomResourceOptions): ScheduleSqlTask; /** * Returns true if the given object is an instance of ScheduleSqlTask. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ScheduleSqlTask; /** * Creation time (seconds-level Unix timestamp). */ readonly createdTime: pulumi.Output; /** * Brief description of the scheduled SQL analysis task. Characters <>, ', \, and \ are not supported. Length: 0–64 characters. */ readonly description: pulumi.Output; /** * Target log project ID. */ readonly destProjectId: pulumi.Output; /** * Region of the target log topic. The default is the current region. */ readonly destRegion: pulumi.Output; /** * Target log topic ID for storing scheduled SQL analysis result data. */ readonly destTopicId: pulumi.Output; /** * Target log topic name. */ readonly destTopicName: pulumi.Output; /** * 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. */ readonly processEndTime: pulumi.Output; /** * Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay. */ readonly processSqlDelay: pulumi.Output; /** * Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp. */ readonly processStartTime: pulumi.Output; /** * 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. */ readonly processTimeWindow: pulumi.Output; /** * The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax. */ readonly query: pulumi.Output; /** * 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. */ readonly requestCycle: pulumi.Output; /** * Source log project ID. */ readonly sourceProjectId: pulumi.Output; /** * Source log project name. */ readonly sourceProjectName: pulumi.Output; /** * ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported. */ readonly sourceTopicId: pulumi.Output; /** * Source log topic name. */ readonly sourceTopicName: pulumi.Output; /** * Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately. */ readonly status: pulumi.Output; /** * Task ID. */ readonly taskId: pulumi.Output; /** * Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions. */ readonly taskName: pulumi.Output; /** * Task type: 0 means log to log; 1 means log to metric. */ readonly taskType: pulumi.Output; /** * Modification time (seconds-level Unix timestamp). */ readonly updatedTime: pulumi.Output; /** * Create a ScheduleSqlTask resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ScheduleSqlTaskArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ScheduleSqlTask resources. */ export interface ScheduleSqlTaskState { /** * Creation time (seconds-level Unix timestamp). */ createdTime?: pulumi.Input; /** * Brief description of the scheduled SQL analysis task. Characters <>, ', \, and \ are not supported. Length: 0–64 characters. */ description?: pulumi.Input; /** * Target log project ID. */ destProjectId?: pulumi.Input; /** * Region of the target log topic. The default is the current region. */ destRegion?: pulumi.Input; /** * Target log topic ID for storing scheduled SQL analysis result data. */ destTopicId?: pulumi.Input; /** * Target log topic name. */ destTopicName?: pulumi.Input; /** * 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. */ processEndTime?: pulumi.Input; /** * Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay. */ processSqlDelay?: pulumi.Input; /** * Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp. */ processStartTime?: pulumi.Input; /** * 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. */ processTimeWindow?: pulumi.Input; /** * The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax. */ query?: pulumi.Input; /** * 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. */ requestCycle?: pulumi.Input; /** * Source log project ID. */ sourceProjectId?: pulumi.Input; /** * Source log project name. */ sourceProjectName?: pulumi.Input; /** * ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported. */ sourceTopicId?: pulumi.Input; /** * Source log topic name. */ sourceTopicName?: pulumi.Input; /** * Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately. */ status?: pulumi.Input; /** * Task ID. */ taskId?: pulumi.Input; /** * Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions. */ taskName?: pulumi.Input; /** * Task type: 0 means log to log; 1 means log to metric. */ taskType?: pulumi.Input; /** * Modification time (seconds-level Unix timestamp). */ updatedTime?: pulumi.Input; } /** * The set of arguments for constructing a ScheduleSqlTask resource. */ export interface ScheduleSqlTaskArgs { /** * Brief description of the scheduled SQL analysis task. Characters <>, ', \, and \ are not supported. Length: 0–64 characters. */ description?: pulumi.Input; /** * Region of the target log topic. The default is the current region. */ destRegion?: pulumi.Input; /** * Target log topic ID for storing scheduled SQL analysis result data. */ destTopicId: pulumi.Input; /** * 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. */ processEndTime?: pulumi.Input; /** * Delay time for each schedule. Range: 0–120 seconds. If not configured, defaults to 0, meaning no delay. */ processSqlDelay?: pulumi.Input; /** * Start time for scheduling the scheduled SQL analysis task, which is the time the first instance is created. Format: seconds-level timestamp. */ processStartTime: pulumi.Input; /** * 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. */ processTimeWindow: pulumi.Input; /** * The scheduled SQL analysis task periodically executes retrieval and analysis statements, which must comply with the log service's retrieval and analysis syntax. */ query: pulumi.Input; /** * 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. */ requestCycle: pulumi.Input; /** * ID of the log topic containing the original logs for scheduled SQL analysis. Only log topics in the current region are supported. */ sourceTopicId: pulumi.Input; /** * Whether to start the scheduled SQL analysis task immediately after completing task configuration. Options: 0 Off; 1 Start immediately. */ status: pulumi.Input; /** * Name of the scheduled SQL analysis task. Refer to the resource naming rules for naming conventions. */ taskName: pulumi.Input; /** * Task type: 0 means log to log; 1 means log to metric. */ taskType: pulumi.Input; }