1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. PtsJob
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.PtsJob

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a pts job

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const job = new tencentcloud.PtsJob("job", {
        jobOwner: "username",
        note: "desc",
        projectId: "project-45vw7v82",
        scenarioId: "scenario-22q19f3k",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    job = tencentcloud.PtsJob("job",
        job_owner="username",
        note="desc",
        project_id="project-45vw7v82",
        scenario_id="scenario-22q19f3k")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewPtsJob(ctx, "job", &tencentcloud.PtsJobArgs{
    			JobOwner:   pulumi.String("username"),
    			Note:       pulumi.String("desc"),
    			ProjectId:  pulumi.String("project-45vw7v82"),
    			ScenarioId: pulumi.String("scenario-22q19f3k"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var job = new Tencentcloud.PtsJob("job", new()
        {
            JobOwner = "username",
            Note = "desc",
            ProjectId = "project-45vw7v82",
            ScenarioId = "scenario-22q19f3k",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.PtsJob;
    import com.pulumi.tencentcloud.PtsJobArgs;
    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 job = new PtsJob("job", PtsJobArgs.builder()
                .jobOwner("username")
                .note("desc")
                .projectId("project-45vw7v82")
                .scenarioId("scenario-22q19f3k")
                .build());
    
        }
    }
    
    resources:
      job:
        type: tencentcloud:PtsJob
        properties:
          jobOwner: username
          # debug = ""
          note: desc
          projectId: project-45vw7v82
          scenarioId: scenario-22q19f3k
    

    Create PtsJob Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PtsJob(name: string, args: PtsJobArgs, opts?: CustomResourceOptions);
    @overload
    def PtsJob(resource_name: str,
               args: PtsJobArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def PtsJob(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               job_owner: Optional[str] = None,
               project_id: Optional[str] = None,
               scenario_id: Optional[str] = None,
               debug: Optional[bool] = None,
               note: Optional[str] = None,
               pts_job_id: Optional[str] = None)
    func NewPtsJob(ctx *Context, name string, args PtsJobArgs, opts ...ResourceOption) (*PtsJob, error)
    public PtsJob(string name, PtsJobArgs args, CustomResourceOptions? opts = null)
    public PtsJob(String name, PtsJobArgs args)
    public PtsJob(String name, PtsJobArgs args, CustomResourceOptions options)
    
    type: tencentcloud:PtsJob
    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 PtsJobArgs
    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 PtsJobArgs
    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 PtsJobArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PtsJobArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PtsJobArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    PtsJob 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 PtsJob resource accepts the following input properties:

    JobOwner string
    Job owner.
    ProjectId string
    Project ID.
    ScenarioId string
    Pts scenario id.
    Debug bool
    Whether to debug.
    Note string
    Note.
    PtsJobId string
    ID of the resource.
    JobOwner string
    Job owner.
    ProjectId string
    Project ID.
    ScenarioId string
    Pts scenario id.
    Debug bool
    Whether to debug.
    Note string
    Note.
    PtsJobId string
    ID of the resource.
    jobOwner String
    Job owner.
    projectId String
    Project ID.
    scenarioId String
    Pts scenario id.
    debug Boolean
    Whether to debug.
    note String
    Note.
    ptsJobId String
    ID of the resource.
    jobOwner string
    Job owner.
    projectId string
    Project ID.
    scenarioId string
    Pts scenario id.
    debug boolean
    Whether to debug.
    note string
    Note.
    ptsJobId string
    ID of the resource.
    job_owner str
    Job owner.
    project_id str
    Project ID.
    scenario_id str
    Pts scenario id.
    debug bool
    Whether to debug.
    note str
    Note.
    pts_job_id str
    ID of the resource.
    jobOwner String
    Job owner.
    projectId String
    Project ID.
    scenarioId String
    Pts scenario id.
    debug Boolean
    Whether to debug.
    note String
    Note.
    ptsJobId String
    ID of the resource.

    Outputs

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

    AbortReason double
    Cause of interruption.
    CreatedAt string
    Creation time of the job.
    CronId string
    Scheduled job ID.
    Datasets List<PtsJobDataset>
    Dataset file for the job.
    DomainNameConfigs List<PtsJobDomainNameConfig>
    Domain name binding configuration.
    Duration double
    Job duration.
    EndTime string
    End time of the job.
    ErrorRate double
    Percentage of error rate.
    Id string
    The provider-assigned unique ID for this managed resource.
    JobId string
    Job Id.
    Loads List<PtsJobLoad>
    Pressure configuration of job.
    MaxRequestsPerSecond double
    Maximum requests per second.
    MaxVirtualUserCount double
    Maximum number of VU for the job.
    Plugins List<PtsJobPlugin>
    Expansion package file information.
    Protocols List<PtsJobProtocol>
    Protocol script information.
    RequestFiles List<PtsJobRequestFile>
    Request file information.
    RequestTotal double
    Total number of requests.
    RequestsPerSecond double
    Average number of requests per second.
    ResponseTimeAverage double
    Average response time.
    ResponseTimeMax double
    Maximum response time.
    ResponseTimeMin double
    Minimum response time.
    ResponseTimeP90 double
    90th percentile response time.
    ResponseTimeP95 double
    95th percentile response time.
    ResponseTimeP99 double
    99th percentile response time.
    StartTime string
    Start time of the job.
    Status double
    The running status of the task; 0: JobUnknown, 1: JobCreated, 2: JobPending, 3: JobPreparing, 4: JobSelectClustering, 5: JobCreateTasking, 6: JobSyncTasking, 11: JobRunning, 12: JobFinished, 13: JobPrepareException, 14: JobFinishException, 15: JobAborting, 16: JobAborted, 17: JobAbortException, 18: JobDeleted, 19: JobSelectClusterException, 20: JobCreateTaskException, 21: JobSyncTaskException.
    TestScripts List<PtsJobTestScript>
    Test script information.
    Type string
    Scene Type.
    AbortReason float64
    Cause of interruption.
    CreatedAt string
    Creation time of the job.
    CronId string
    Scheduled job ID.
    Datasets []PtsJobDataset
    Dataset file for the job.
    DomainNameConfigs []PtsJobDomainNameConfig
    Domain name binding configuration.
    Duration float64
    Job duration.
    EndTime string
    End time of the job.
    ErrorRate float64
    Percentage of error rate.
    Id string
    The provider-assigned unique ID for this managed resource.
    JobId string
    Job Id.
    Loads []PtsJobLoad
    Pressure configuration of job.
    MaxRequestsPerSecond float64
    Maximum requests per second.
    MaxVirtualUserCount float64
    Maximum number of VU for the job.
    Plugins []PtsJobPlugin
    Expansion package file information.
    Protocols []PtsJobProtocol
    Protocol script information.
    RequestFiles []PtsJobRequestFile
    Request file information.
    RequestTotal float64
    Total number of requests.
    RequestsPerSecond float64
    Average number of requests per second.
    ResponseTimeAverage float64
    Average response time.
    ResponseTimeMax float64
    Maximum response time.
    ResponseTimeMin float64
    Minimum response time.
    ResponseTimeP90 float64
    90th percentile response time.
    ResponseTimeP95 float64
    95th percentile response time.
    ResponseTimeP99 float64
    99th percentile response time.
    StartTime string
    Start time of the job.
    Status float64
    The running status of the task; 0: JobUnknown, 1: JobCreated, 2: JobPending, 3: JobPreparing, 4: JobSelectClustering, 5: JobCreateTasking, 6: JobSyncTasking, 11: JobRunning, 12: JobFinished, 13: JobPrepareException, 14: JobFinishException, 15: JobAborting, 16: JobAborted, 17: JobAbortException, 18: JobDeleted, 19: JobSelectClusterException, 20: JobCreateTaskException, 21: JobSyncTaskException.
    TestScripts []PtsJobTestScript
    Test script information.
    Type string
    Scene Type.
    abortReason Double
    Cause of interruption.
    createdAt String
    Creation time of the job.
    cronId String
    Scheduled job ID.
    datasets List<PtsJobDataset>
    Dataset file for the job.
    domainNameConfigs List<PtsJobDomainNameConfig>
    Domain name binding configuration.
    duration Double
    Job duration.
    endTime String
    End time of the job.
    errorRate Double
    Percentage of error rate.
    id String
    The provider-assigned unique ID for this managed resource.
    jobId String
    Job Id.
    loads List<PtsJobLoad>
    Pressure configuration of job.
    maxRequestsPerSecond Double
    Maximum requests per second.
    maxVirtualUserCount Double
    Maximum number of VU for the job.
    plugins List<PtsJobPlugin>
    Expansion package file information.
    protocols List<PtsJobProtocol>
    Protocol script information.
    requestFiles List<PtsJobRequestFile>
    Request file information.
    requestTotal Double
    Total number of requests.
    requestsPerSecond Double
    Average number of requests per second.
    responseTimeAverage Double
    Average response time.
    responseTimeMax Double
    Maximum response time.
    responseTimeMin Double
    Minimum response time.
    responseTimeP90 Double
    90th percentile response time.
    responseTimeP95 Double
    95th percentile response time.
    responseTimeP99 Double
    99th percentile response time.
    startTime String
    Start time of the job.
    status Double
    The running status of the task; 0: JobUnknown, 1: JobCreated, 2: JobPending, 3: JobPreparing, 4: JobSelectClustering, 5: JobCreateTasking, 6: JobSyncTasking, 11: JobRunning, 12: JobFinished, 13: JobPrepareException, 14: JobFinishException, 15: JobAborting, 16: JobAborted, 17: JobAbortException, 18: JobDeleted, 19: JobSelectClusterException, 20: JobCreateTaskException, 21: JobSyncTaskException.
    testScripts List<PtsJobTestScript>
    Test script information.
    type String
    Scene Type.
    abortReason number
    Cause of interruption.
    createdAt string
    Creation time of the job.
    cronId string
    Scheduled job ID.
    datasets PtsJobDataset[]
    Dataset file for the job.
    domainNameConfigs PtsJobDomainNameConfig[]
    Domain name binding configuration.
    duration number
    Job duration.
    endTime string
    End time of the job.
    errorRate number
    Percentage of error rate.
    id string
    The provider-assigned unique ID for this managed resource.
    jobId string
    Job Id.
    loads PtsJobLoad[]
    Pressure configuration of job.
    maxRequestsPerSecond number
    Maximum requests per second.
    maxVirtualUserCount number
    Maximum number of VU for the job.
    plugins PtsJobPlugin[]
    Expansion package file information.
    protocols PtsJobProtocol[]
    Protocol script information.
    requestFiles PtsJobRequestFile[]
    Request file information.
    requestTotal number
    Total number of requests.
    requestsPerSecond number
    Average number of requests per second.
    responseTimeAverage number
    Average response time.
    responseTimeMax number
    Maximum response time.
    responseTimeMin number
    Minimum response time.
    responseTimeP90 number
    90th percentile response time.
    responseTimeP95 number
    95th percentile response time.
    responseTimeP99 number
    99th percentile response time.
    startTime string
    Start time of the job.
    status number
    The running status of the task; 0: JobUnknown, 1: JobCreated, 2: JobPending, 3: JobPreparing, 4: JobSelectClustering, 5: JobCreateTasking, 6: JobSyncTasking, 11: JobRunning, 12: JobFinished, 13: JobPrepareException, 14: JobFinishException, 15: JobAborting, 16: JobAborted, 17: JobAbortException, 18: JobDeleted, 19: JobSelectClusterException, 20: JobCreateTaskException, 21: JobSyncTaskException.
    testScripts PtsJobTestScript[]
    Test script information.
    type string
    Scene Type.
    abort_reason float
    Cause of interruption.
    created_at str
    Creation time of the job.
    cron_id str
    Scheduled job ID.
    datasets Sequence[PtsJobDataset]
    Dataset file for the job.
    domain_name_configs Sequence[PtsJobDomainNameConfig]
    Domain name binding configuration.
    duration float
    Job duration.
    end_time str
    End time of the job.
    error_rate float
    Percentage of error rate.
    id str
    The provider-assigned unique ID for this managed resource.
    job_id str
    Job Id.
    loads Sequence[PtsJobLoad]
    Pressure configuration of job.
    max_requests_per_second float
    Maximum requests per second.
    max_virtual_user_count float
    Maximum number of VU for the job.
    plugins Sequence[PtsJobPlugin]
    Expansion package file information.
    protocols Sequence[PtsJobProtocol]
    Protocol script information.
    request_files Sequence[PtsJobRequestFile]
    Request file information.
    request_total float
    Total number of requests.
    requests_per_second float
    Average number of requests per second.
    response_time_average float
    Average response time.
    response_time_max float
    Maximum response time.
    response_time_min float
    Minimum response time.
    response_time_p90 float
    90th percentile response time.
    response_time_p95 float
    95th percentile response time.
    response_time_p99 float
    99th percentile response time.
    start_time str
    Start time of the job.
    status float
    The running status of the task; 0: JobUnknown, 1: JobCreated, 2: JobPending, 3: JobPreparing, 4: JobSelectClustering, 5: JobCreateTasking, 6: JobSyncTasking, 11: JobRunning, 12: JobFinished, 13: JobPrepareException, 14: JobFinishException, 15: JobAborting, 16: JobAborted, 17: JobAbortException, 18: JobDeleted, 19: JobSelectClusterException, 20: JobCreateTaskException, 21: JobSyncTaskException.
    test_scripts Sequence[PtsJobTestScript]
    Test script information.
    type str
    Scene Type.
    abortReason Number
    Cause of interruption.
    createdAt String
    Creation time of the job.
    cronId String
    Scheduled job ID.
    datasets List<Property Map>
    Dataset file for the job.
    domainNameConfigs List<Property Map>
    Domain name binding configuration.
    duration Number
    Job duration.
    endTime String
    End time of the job.
    errorRate Number
    Percentage of error rate.
    id String
    The provider-assigned unique ID for this managed resource.
    jobId String
    Job Id.
    loads List<Property Map>
    Pressure configuration of job.
    maxRequestsPerSecond Number
    Maximum requests per second.
    maxVirtualUserCount Number
    Maximum number of VU for the job.
    plugins List<Property Map>
    Expansion package file information.
    protocols List<Property Map>
    Protocol script information.
    requestFiles List<Property Map>
    Request file information.
    requestTotal Number
    Total number of requests.
    requestsPerSecond Number
    Average number of requests per second.
    responseTimeAverage Number
    Average response time.
    responseTimeMax Number
    Maximum response time.
    responseTimeMin Number
    Minimum response time.
    responseTimeP90 Number
    90th percentile response time.
    responseTimeP95 Number
    95th percentile response time.
    responseTimeP99 Number
    99th percentile response time.
    startTime String
    Start time of the job.
    status Number
    The running status of the task; 0: JobUnknown, 1: JobCreated, 2: JobPending, 3: JobPreparing, 4: JobSelectClustering, 5: JobCreateTasking, 6: JobSyncTasking, 11: JobRunning, 12: JobFinished, 13: JobPrepareException, 14: JobFinishException, 15: JobAborting, 16: JobAborted, 17: JobAbortException, 18: JobDeleted, 19: JobSelectClusterException, 20: JobCreateTaskException, 21: JobSyncTaskException.
    testScripts List<Property Map>
    Test script information.
    type String
    Scene Type.

    Look up Existing PtsJob Resource

    Get an existing PtsJob 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?: PtsJobState, opts?: CustomResourceOptions): PtsJob
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            abort_reason: Optional[float] = None,
            created_at: Optional[str] = None,
            cron_id: Optional[str] = None,
            datasets: Optional[Sequence[PtsJobDatasetArgs]] = None,
            debug: Optional[bool] = None,
            domain_name_configs: Optional[Sequence[PtsJobDomainNameConfigArgs]] = None,
            duration: Optional[float] = None,
            end_time: Optional[str] = None,
            error_rate: Optional[float] = None,
            job_id: Optional[str] = None,
            job_owner: Optional[str] = None,
            loads: Optional[Sequence[PtsJobLoadArgs]] = None,
            max_requests_per_second: Optional[float] = None,
            max_virtual_user_count: Optional[float] = None,
            note: Optional[str] = None,
            plugins: Optional[Sequence[PtsJobPluginArgs]] = None,
            project_id: Optional[str] = None,
            protocols: Optional[Sequence[PtsJobProtocolArgs]] = None,
            pts_job_id: Optional[str] = None,
            request_files: Optional[Sequence[PtsJobRequestFileArgs]] = None,
            request_total: Optional[float] = None,
            requests_per_second: Optional[float] = None,
            response_time_average: Optional[float] = None,
            response_time_max: Optional[float] = None,
            response_time_min: Optional[float] = None,
            response_time_p90: Optional[float] = None,
            response_time_p95: Optional[float] = None,
            response_time_p99: Optional[float] = None,
            scenario_id: Optional[str] = None,
            start_time: Optional[str] = None,
            status: Optional[float] = None,
            test_scripts: Optional[Sequence[PtsJobTestScriptArgs]] = None,
            type: Optional[str] = None) -> PtsJob
    func GetPtsJob(ctx *Context, name string, id IDInput, state *PtsJobState, opts ...ResourceOption) (*PtsJob, error)
    public static PtsJob Get(string name, Input<string> id, PtsJobState? state, CustomResourceOptions? opts = null)
    public static PtsJob get(String name, Output<String> id, PtsJobState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:PtsJob    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:
    AbortReason double
    Cause of interruption.
    CreatedAt string
    Creation time of the job.
    CronId string
    Scheduled job ID.
    Datasets List<PtsJobDataset>
    Dataset file for the job.
    Debug bool
    Whether to debug.
    DomainNameConfigs List<PtsJobDomainNameConfig>
    Domain name binding configuration.
    Duration double
    Job duration.
    EndTime string
    End time of the job.
    ErrorRate double
    Percentage of error rate.
    JobId string
    Job Id.
    JobOwner string
    Job owner.
    Loads List<PtsJobLoad>
    Pressure configuration of job.
    MaxRequestsPerSecond double
    Maximum requests per second.
    MaxVirtualUserCount double
    Maximum number of VU for the job.
    Note string
    Note.
    Plugins List<PtsJobPlugin>
    Expansion package file information.
    ProjectId string
    Project ID.
    Protocols List<PtsJobProtocol>
    Protocol script information.
    PtsJobId string
    ID of the resource.
    RequestFiles List<PtsJobRequestFile>
    Request file information.
    RequestTotal double
    Total number of requests.
    RequestsPerSecond double
    Average number of requests per second.
    ResponseTimeAverage double
    Average response time.
    ResponseTimeMax double
    Maximum response time.
    ResponseTimeMin double
    Minimum response time.
    ResponseTimeP90 double
    90th percentile response time.
    ResponseTimeP95 double
    95th percentile response time.
    ResponseTimeP99 double
    99th percentile response time.
    ScenarioId string
    Pts scenario id.
    StartTime string
    Start time of the job.
    Status double
    The running status of the task; 0: JobUnknown, 1: JobCreated, 2: JobPending, 3: JobPreparing, 4: JobSelectClustering, 5: JobCreateTasking, 6: JobSyncTasking, 11: JobRunning, 12: JobFinished, 13: JobPrepareException, 14: JobFinishException, 15: JobAborting, 16: JobAborted, 17: JobAbortException, 18: JobDeleted, 19: JobSelectClusterException, 20: JobCreateTaskException, 21: JobSyncTaskException.
    TestScripts List<PtsJobTestScript>
    Test script information.
    Type string
    Scene Type.
    AbortReason float64
    Cause of interruption.
    CreatedAt string
    Creation time of the job.
    CronId string
    Scheduled job ID.
    Datasets []PtsJobDatasetArgs
    Dataset file for the job.
    Debug bool
    Whether to debug.
    DomainNameConfigs []PtsJobDomainNameConfigArgs
    Domain name binding configuration.
    Duration float64
    Job duration.
    EndTime string
    End time of the job.
    ErrorRate float64
    Percentage of error rate.
    JobId string
    Job Id.
    JobOwner string
    Job owner.
    Loads []PtsJobLoadArgs
    Pressure configuration of job.
    MaxRequestsPerSecond float64
    Maximum requests per second.
    MaxVirtualUserCount float64
    Maximum number of VU for the job.
    Note string
    Note.
    Plugins []PtsJobPluginArgs
    Expansion package file information.
    ProjectId string
    Project ID.
    Protocols []PtsJobProtocolArgs
    Protocol script information.
    PtsJobId string
    ID of the resource.
    RequestFiles []PtsJobRequestFileArgs
    Request file information.
    RequestTotal float64
    Total number of requests.
    RequestsPerSecond float64
    Average number of requests per second.
    ResponseTimeAverage float64
    Average response time.
    ResponseTimeMax float64
    Maximum response time.
    ResponseTimeMin float64
    Minimum response time.
    ResponseTimeP90 float64
    90th percentile response time.
    ResponseTimeP95 float64
    95th percentile response time.
    ResponseTimeP99 float64
    99th percentile response time.
    ScenarioId string
    Pts scenario id.
    StartTime string
    Start time of the job.
    Status float64
    The running status of the task; 0: JobUnknown, 1: JobCreated, 2: JobPending, 3: JobPreparing, 4: JobSelectClustering, 5: JobCreateTasking, 6: JobSyncTasking, 11: JobRunning, 12: JobFinished, 13: JobPrepareException, 14: JobFinishException, 15: JobAborting, 16: JobAborted, 17: JobAbortException, 18: JobDeleted, 19: JobSelectClusterException, 20: JobCreateTaskException, 21: JobSyncTaskException.
    TestScripts []PtsJobTestScriptArgs
    Test script information.
    Type string
    Scene Type.
    abortReason Double
    Cause of interruption.
    createdAt String
    Creation time of the job.
    cronId String
    Scheduled job ID.
    datasets List<PtsJobDataset>
    Dataset file for the job.
    debug Boolean
    Whether to debug.
    domainNameConfigs List<PtsJobDomainNameConfig>
    Domain name binding configuration.
    duration Double
    Job duration.
    endTime String
    End time of the job.
    errorRate Double
    Percentage of error rate.
    jobId String
    Job Id.
    jobOwner String
    Job owner.
    loads List<PtsJobLoad>
    Pressure configuration of job.
    maxRequestsPerSecond Double
    Maximum requests per second.
    maxVirtualUserCount Double
    Maximum number of VU for the job.
    note String
    Note.
    plugins List<PtsJobPlugin>
    Expansion package file information.
    projectId String
    Project ID.
    protocols List<PtsJobProtocol>
    Protocol script information.
    ptsJobId String
    ID of the resource.
    requestFiles List<PtsJobRequestFile>
    Request file information.
    requestTotal Double
    Total number of requests.
    requestsPerSecond Double
    Average number of requests per second.
    responseTimeAverage Double
    Average response time.
    responseTimeMax Double
    Maximum response time.
    responseTimeMin Double
    Minimum response time.
    responseTimeP90 Double
    90th percentile response time.
    responseTimeP95 Double
    95th percentile response time.
    responseTimeP99 Double
    99th percentile response time.
    scenarioId String
    Pts scenario id.
    startTime String
    Start time of the job.
    status Double
    The running status of the task; 0: JobUnknown, 1: JobCreated, 2: JobPending, 3: JobPreparing, 4: JobSelectClustering, 5: JobCreateTasking, 6: JobSyncTasking, 11: JobRunning, 12: JobFinished, 13: JobPrepareException, 14: JobFinishException, 15: JobAborting, 16: JobAborted, 17: JobAbortException, 18: JobDeleted, 19: JobSelectClusterException, 20: JobCreateTaskException, 21: JobSyncTaskException.
    testScripts List<PtsJobTestScript>
    Test script information.
    type String
    Scene Type.
    abortReason number
    Cause of interruption.
    createdAt string
    Creation time of the job.
    cronId string
    Scheduled job ID.
    datasets PtsJobDataset[]
    Dataset file for the job.
    debug boolean
    Whether to debug.
    domainNameConfigs PtsJobDomainNameConfig[]
    Domain name binding configuration.
    duration number
    Job duration.
    endTime string
    End time of the job.
    errorRate number
    Percentage of error rate.
    jobId string
    Job Id.
    jobOwner string
    Job owner.
    loads PtsJobLoad[]
    Pressure configuration of job.
    maxRequestsPerSecond number
    Maximum requests per second.
    maxVirtualUserCount number
    Maximum number of VU for the job.
    note string
    Note.
    plugins PtsJobPlugin[]
    Expansion package file information.
    projectId string
    Project ID.
    protocols PtsJobProtocol[]
    Protocol script information.
    ptsJobId string
    ID of the resource.
    requestFiles PtsJobRequestFile[]
    Request file information.
    requestTotal number
    Total number of requests.
    requestsPerSecond number
    Average number of requests per second.
    responseTimeAverage number
    Average response time.
    responseTimeMax number
    Maximum response time.
    responseTimeMin number
    Minimum response time.
    responseTimeP90 number
    90th percentile response time.
    responseTimeP95 number
    95th percentile response time.
    responseTimeP99 number
    99th percentile response time.
    scenarioId string
    Pts scenario id.
    startTime string
    Start time of the job.
    status number
    The running status of the task; 0: JobUnknown, 1: JobCreated, 2: JobPending, 3: JobPreparing, 4: JobSelectClustering, 5: JobCreateTasking, 6: JobSyncTasking, 11: JobRunning, 12: JobFinished, 13: JobPrepareException, 14: JobFinishException, 15: JobAborting, 16: JobAborted, 17: JobAbortException, 18: JobDeleted, 19: JobSelectClusterException, 20: JobCreateTaskException, 21: JobSyncTaskException.
    testScripts PtsJobTestScript[]
    Test script information.
    type string
    Scene Type.
    abort_reason float
    Cause of interruption.
    created_at str
    Creation time of the job.
    cron_id str
    Scheduled job ID.
    datasets Sequence[PtsJobDatasetArgs]
    Dataset file for the job.
    debug bool
    Whether to debug.
    domain_name_configs Sequence[PtsJobDomainNameConfigArgs]
    Domain name binding configuration.
    duration float
    Job duration.
    end_time str
    End time of the job.
    error_rate float
    Percentage of error rate.
    job_id str
    Job Id.
    job_owner str
    Job owner.
    loads Sequence[PtsJobLoadArgs]
    Pressure configuration of job.
    max_requests_per_second float
    Maximum requests per second.
    max_virtual_user_count float
    Maximum number of VU for the job.
    note str
    Note.
    plugins Sequence[PtsJobPluginArgs]
    Expansion package file information.
    project_id str
    Project ID.
    protocols Sequence[PtsJobProtocolArgs]
    Protocol script information.
    pts_job_id str
    ID of the resource.
    request_files Sequence[PtsJobRequestFileArgs]
    Request file information.
    request_total float
    Total number of requests.
    requests_per_second float
    Average number of requests per second.
    response_time_average float
    Average response time.
    response_time_max float
    Maximum response time.
    response_time_min float
    Minimum response time.
    response_time_p90 float
    90th percentile response time.
    response_time_p95 float
    95th percentile response time.
    response_time_p99 float
    99th percentile response time.
    scenario_id str
    Pts scenario id.
    start_time str
    Start time of the job.
    status float
    The running status of the task; 0: JobUnknown, 1: JobCreated, 2: JobPending, 3: JobPreparing, 4: JobSelectClustering, 5: JobCreateTasking, 6: JobSyncTasking, 11: JobRunning, 12: JobFinished, 13: JobPrepareException, 14: JobFinishException, 15: JobAborting, 16: JobAborted, 17: JobAbortException, 18: JobDeleted, 19: JobSelectClusterException, 20: JobCreateTaskException, 21: JobSyncTaskException.
    test_scripts Sequence[PtsJobTestScriptArgs]
    Test script information.
    type str
    Scene Type.
    abortReason Number
    Cause of interruption.
    createdAt String
    Creation time of the job.
    cronId String
    Scheduled job ID.
    datasets List<Property Map>
    Dataset file for the job.
    debug Boolean
    Whether to debug.
    domainNameConfigs List<Property Map>
    Domain name binding configuration.
    duration Number
    Job duration.
    endTime String
    End time of the job.
    errorRate Number
    Percentage of error rate.
    jobId String
    Job Id.
    jobOwner String
    Job owner.
    loads List<Property Map>
    Pressure configuration of job.
    maxRequestsPerSecond Number
    Maximum requests per second.
    maxVirtualUserCount Number
    Maximum number of VU for the job.
    note String
    Note.
    plugins List<Property Map>
    Expansion package file information.
    projectId String
    Project ID.
    protocols List<Property Map>
    Protocol script information.
    ptsJobId String
    ID of the resource.
    requestFiles List<Property Map>
    Request file information.
    requestTotal Number
    Total number of requests.
    requestsPerSecond Number
    Average number of requests per second.
    responseTimeAverage Number
    Average response time.
    responseTimeMax Number
    Maximum response time.
    responseTimeMin Number
    Minimum response time.
    responseTimeP90 Number
    90th percentile response time.
    responseTimeP95 Number
    95th percentile response time.
    responseTimeP99 Number
    99th percentile response time.
    scenarioId String
    Pts scenario id.
    startTime String
    Start time of the job.
    status Number
    The running status of the task; 0: JobUnknown, 1: JobCreated, 2: JobPending, 3: JobPreparing, 4: JobSelectClustering, 5: JobCreateTasking, 6: JobSyncTasking, 11: JobRunning, 12: JobFinished, 13: JobPrepareException, 14: JobFinishException, 15: JobAborting, 16: JobAborted, 17: JobAbortException, 18: JobDeleted, 19: JobSelectClusterException, 20: JobCreateTaskException, 21: JobSyncTaskException.
    testScripts List<Property Map>
    Test script information.
    type String
    Scene Type.

    Supporting Types

    PtsJobDataset, PtsJobDatasetArgs

    FileId string
    HeadLines List<string>
    HeaderColumns List<string>
    HeaderInFile bool
    LineCount double
    Name string
    Size double
    Split bool
    TailLines List<string>
    Type string
    Scene Type.
    UpdatedAt string
    FileId string
    HeadLines []string
    HeaderColumns []string
    HeaderInFile bool
    LineCount float64
    Name string
    Size float64
    Split bool
    TailLines []string
    Type string
    Scene Type.
    UpdatedAt string
    fileId String
    headLines List<String>
    headerColumns List<String>
    headerInFile Boolean
    lineCount Double
    name String
    size Double
    split Boolean
    tailLines List<String>
    type String
    Scene Type.
    updatedAt String
    fileId string
    headLines string[]
    headerColumns string[]
    headerInFile boolean
    lineCount number
    name string
    size number
    split boolean
    tailLines string[]
    type string
    Scene Type.
    updatedAt string
    file_id str
    head_lines Sequence[str]
    header_columns Sequence[str]
    header_in_file bool
    line_count float
    name str
    size float
    split bool
    tail_lines Sequence[str]
    type str
    Scene Type.
    updated_at str
    fileId String
    headLines List<String>
    headerColumns List<String>
    headerInFile Boolean
    lineCount Number
    name String
    size Number
    split Boolean
    tailLines List<String>
    type String
    Scene Type.
    updatedAt String

    PtsJobDomainNameConfig, PtsJobDomainNameConfigArgs

    PtsJobDomainNameConfigDnsConfig, PtsJobDomainNameConfigDnsConfigArgs

    Nameservers List<string>
    Nameservers []string
    nameservers List<String>
    nameservers string[]
    nameservers Sequence[str]
    nameservers List<String>

    PtsJobDomainNameConfigHostAlias, PtsJobDomainNameConfigHostAliasArgs

    HostNames List<string>
    Ip string
    HostNames []string
    Ip string
    hostNames List<String>
    ip String
    hostNames string[]
    ip string
    host_names Sequence[str]
    ip str
    hostNames List<String>
    ip String

    PtsJobLoad, PtsJobLoadArgs

    PtsJobLoadGeoRegionsLoadDistribution, PtsJobLoadGeoRegionsLoadDistributionArgs

    Percentage double
    Region string
    RegionId double
    Percentage float64
    Region string
    RegionId float64
    percentage Double
    region String
    regionId Double
    percentage number
    region string
    regionId number
    percentage Number
    region String
    regionId Number

    PtsJobLoadLoadSpec, PtsJobLoadLoadSpecArgs

    PtsJobLoadLoadSpecConcurrency, PtsJobLoadLoadSpecConcurrencyArgs

    PtsJobLoadLoadSpecConcurrencyStage, PtsJobLoadLoadSpecConcurrencyStageArgs

    PtsJobLoadLoadSpecRequestsPerSecond, PtsJobLoadLoadSpecRequestsPerSecondArgs

    DurationSeconds float64
    GracefulStopSeconds float64
    MaxRequestsPerSecond float64
    Maximum requests per second.
    Resources float64
    StartRequestsPerSecond float64
    TargetRequestsPerSecond float64

    PtsJobLoadLoadSpecScriptOrigin, PtsJobLoadLoadSpecScriptOriginArgs

    PtsJobLoadVpcLoadDistribution, PtsJobLoadVpcLoadDistributionArgs

    Region string
    RegionId double
    SubnetIds List<string>
    VpcId string
    Region string
    RegionId float64
    SubnetIds []string
    VpcId string
    region String
    regionId Double
    subnetIds List<String>
    vpcId String
    region string
    regionId number
    subnetIds string[]
    vpcId string
    region str
    region_id float
    subnet_ids Sequence[str]
    vpc_id str
    region String
    regionId Number
    subnetIds List<String>
    vpcId String

    PtsJobPlugin, PtsJobPluginArgs

    FileId string
    Name string
    Size double
    Type string
    Scene Type.
    UpdatedAt string
    FileId string
    Name string
    Size float64
    Type string
    Scene Type.
    UpdatedAt string
    fileId String
    name String
    size Double
    type String
    Scene Type.
    updatedAt String
    fileId string
    name string
    size number
    type string
    Scene Type.
    updatedAt string
    file_id str
    name str
    size float
    type str
    Scene Type.
    updated_at str
    fileId String
    name String
    size Number
    type String
    Scene Type.
    updatedAt String

    PtsJobProtocol, PtsJobProtocolArgs

    FileId string
    Name string
    Size double
    Type string
    Scene Type.
    UpdatedAt string
    FileId string
    Name string
    Size float64
    Type string
    Scene Type.
    UpdatedAt string
    fileId String
    name String
    size Double
    type String
    Scene Type.
    updatedAt String
    fileId string
    name string
    size number
    type string
    Scene Type.
    updatedAt string
    file_id str
    name str
    size float
    type str
    Scene Type.
    updated_at str
    fileId String
    name String
    size Number
    type String
    Scene Type.
    updatedAt String

    PtsJobRequestFile, PtsJobRequestFileArgs

    FileId string
    Name string
    Size double
    Type string
    Scene Type.
    UpdatedAt string
    FileId string
    Name string
    Size float64
    Type string
    Scene Type.
    UpdatedAt string
    fileId String
    name String
    size Double
    type String
    Scene Type.
    updatedAt String
    fileId string
    name string
    size number
    type string
    Scene Type.
    updatedAt string
    file_id str
    name str
    size float
    type str
    Scene Type.
    updated_at str
    fileId String
    name String
    size Number
    type String
    Scene Type.
    updatedAt String

    PtsJobTestScript, PtsJobTestScriptArgs

    EncodedContent string
    EncodedHttpArchive string
    LoadWeight double
    Name string
    Size double
    Type string
    Scene Type.
    UpdatedAt string
    EncodedContent string
    EncodedHttpArchive string
    LoadWeight float64
    Name string
    Size float64
    Type string
    Scene Type.
    UpdatedAt string
    encodedContent String
    encodedHttpArchive String
    loadWeight Double
    name String
    size Double
    type String
    Scene Type.
    updatedAt String
    encodedContent string
    encodedHttpArchive string
    loadWeight number
    name string
    size number
    type string
    Scene Type.
    updatedAt string
    encodedContent String
    encodedHttpArchive String
    loadWeight Number
    name String
    size Number
    type String
    Scene Type.
    updatedAt String

    Import

    pts job can be imported using the projectId#scenarioId#jobId, e.g.

    $ pulumi import tencentcloud:index/ptsJob:PtsJob job project-45vw7v82#scenario-22q19f3k#job-dtm93vx0
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack