1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. PtsScenario
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

tencentcloud.PtsScenario

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.186 published on Thursday, Apr 24, 2025 by tencentcloudstack

    Provides a resource to create a pts scenario

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const scenario = new tencentcloud.PtsScenario("scenario", {
        domainNameConfig: {},
        load: {
            geoRegionsLoadDistributions: [{
                percentage: 100,
                region: "ap-guangzhou",
                regionId: 1,
            }],
            loadSpec: {
                concurrency: {
                    gracefulStopSeconds: 3,
                    iterationCount: 0,
                    maxRequestsPerSecond: 0,
                    stages: [
                        {
                            durationSeconds: 120,
                            targetVirtualUsers: 2,
                        },
                        {
                            durationSeconds: 120,
                            targetVirtualUsers: 4,
                        },
                        {
                            durationSeconds: 120,
                            targetVirtualUsers: 5,
                        },
                        {
                            durationSeconds: 240,
                            targetVirtualUsers: 5,
                        },
                    ],
                },
            },
        },
        projectId: "project-45vw7v82",
        slaPolicy: {},
        testScripts: [{
            encodedContent: `            // Send a http get request
                import http from 'pts/http';
                import { check, sleep } from 'pts';
    
                export default function () {
                  // simple get request
                  const resp1 = http.get('http://httpbin.org/get');
                  console.log(resp1.body);
                  // if resp1.body is a json string, resp1.json() transfer json format body to a json object
                  console.log(resp1.json());
                  check('status is 200', () => resp1.statusCode === 200);
    
                  // sleep 1 second
                  sleep(1);
    
                  // get request with headers and parameters
                  const resp2 = http.get('http://httpbin.org/get', {
                    headers: {
                      Connection: 'keep-alive',
                      'User-Agent': 'pts-engine',
                    },
                    query: {
                      name1: 'value1',
                      name2: 'value2',
                    },
                  });
    
                  console.log(resp2.json().args.name1); // 'value1'
                  check('body.args.name1 equals value1', () => resp2.json().args.name1 === 'value1');
                }
    
    `,
            loadWeight: 100,
            name: "script.js",
            size: 838,
            type: "js",
            updatedAt: "2022-11-11T16:18:37+08:00",
        }],
        type: "pts-js",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    scenario = tencentcloud.PtsScenario("scenario",
        domain_name_config={},
        load={
            "geo_regions_load_distributions": [{
                "percentage": 100,
                "region": "ap-guangzhou",
                "region_id": 1,
            }],
            "load_spec": {
                "concurrency": {
                    "graceful_stop_seconds": 3,
                    "iteration_count": 0,
                    "max_requests_per_second": 0,
                    "stages": [
                        {
                            "duration_seconds": 120,
                            "target_virtual_users": 2,
                        },
                        {
                            "duration_seconds": 120,
                            "target_virtual_users": 4,
                        },
                        {
                            "duration_seconds": 120,
                            "target_virtual_users": 5,
                        },
                        {
                            "duration_seconds": 240,
                            "target_virtual_users": 5,
                        },
                    ],
                },
            },
        },
        project_id="project-45vw7v82",
        sla_policy={},
        test_scripts=[{
            "encoded_content": """            // Send a http get request
                import http from 'pts/http';
                import { check, sleep } from 'pts';
    
                export default function () {
                  // simple get request
                  const resp1 = http.get('http://httpbin.org/get');
                  console.log(resp1.body);
                  // if resp1.body is a json string, resp1.json() transfer json format body to a json object
                  console.log(resp1.json());
                  check('status is 200', () => resp1.statusCode === 200);
    
                  // sleep 1 second
                  sleep(1);
    
                  // get request with headers and parameters
                  const resp2 = http.get('http://httpbin.org/get', {
                    headers: {
                      Connection: 'keep-alive',
                      'User-Agent': 'pts-engine',
                    },
                    query: {
                      name1: 'value1',
                      name2: 'value2',
                    },
                  });
    
                  console.log(resp2.json().args.name1); // 'value1'
                  check('body.args.name1 equals value1', () => resp2.json().args.name1 === 'value1');
                }
    
    """,
            "load_weight": 100,
            "name": "script.js",
            "size": 838,
            "type": "js",
            "updated_at": "2022-11-11T16:18:37+08:00",
        }],
        type="pts-js")
    
    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.NewPtsScenario(ctx, "scenario", &tencentcloud.PtsScenarioArgs{
    			DomainNameConfig: &tencentcloud.PtsScenarioDomainNameConfigArgs{},
    			Load: &tencentcloud.PtsScenarioLoadArgs{
    				GeoRegionsLoadDistributions: tencentcloud.PtsScenarioLoadGeoRegionsLoadDistributionArray{
    					&tencentcloud.PtsScenarioLoadGeoRegionsLoadDistributionArgs{
    						Percentage: pulumi.Float64(100),
    						Region:     pulumi.String("ap-guangzhou"),
    						RegionId:   pulumi.Float64(1),
    					},
    				},
    				LoadSpec: &tencentcloud.PtsScenarioLoadLoadSpecArgs{
    					Concurrency: &tencentcloud.PtsScenarioLoadLoadSpecConcurrencyArgs{
    						GracefulStopSeconds:  pulumi.Float64(3),
    						IterationCount:       pulumi.Float64(0),
    						MaxRequestsPerSecond: pulumi.Float64(0),
    						Stages: tencentcloud.PtsScenarioLoadLoadSpecConcurrencyStageArray{
    							&tencentcloud.PtsScenarioLoadLoadSpecConcurrencyStageArgs{
    								DurationSeconds:    pulumi.Float64(120),
    								TargetVirtualUsers: pulumi.Float64(2),
    							},
    							&tencentcloud.PtsScenarioLoadLoadSpecConcurrencyStageArgs{
    								DurationSeconds:    pulumi.Float64(120),
    								TargetVirtualUsers: pulumi.Float64(4),
    							},
    							&tencentcloud.PtsScenarioLoadLoadSpecConcurrencyStageArgs{
    								DurationSeconds:    pulumi.Float64(120),
    								TargetVirtualUsers: pulumi.Float64(5),
    							},
    							&tencentcloud.PtsScenarioLoadLoadSpecConcurrencyStageArgs{
    								DurationSeconds:    pulumi.Float64(240),
    								TargetVirtualUsers: pulumi.Float64(5),
    							},
    						},
    					},
    				},
    			},
    			ProjectId: pulumi.String("project-45vw7v82"),
    			SlaPolicy: &tencentcloud.PtsScenarioSlaPolicyArgs{},
    			TestScripts: tencentcloud.PtsScenarioTestScriptArray{
    				&tencentcloud.PtsScenarioTestScriptArgs{
    					EncodedContent: pulumi.String(`            // Send a http get request
                import http from 'pts/http';
                import { check, sleep } from 'pts';
    
                export default function () {
                  // simple get request
                  const resp1 = http.get('http://httpbin.org/get');
                  console.log(resp1.body);
                  // if resp1.body is a json string, resp1.json() transfer json format body to a json object
                  console.log(resp1.json());
                  check('status is 200', () => resp1.statusCode === 200);
    
                  // sleep 1 second
                  sleep(1);
    
                  // get request with headers and parameters
                  const resp2 = http.get('http://httpbin.org/get', {
                    headers: {
                      Connection: 'keep-alive',
                      'User-Agent': 'pts-engine',
                    },
                    query: {
                      name1: 'value1',
                      name2: 'value2',
                    },
                  });
    
                  console.log(resp2.json().args.name1); // 'value1'
                  check('body.args.name1 equals value1', () => resp2.json().args.name1 === 'value1');
                }
    
    `),
    					LoadWeight: pulumi.Float64(100),
    					Name:       pulumi.String("script.js"),
    					Size:       pulumi.Float64(838),
    					Type:       pulumi.String("js"),
    					UpdatedAt:  pulumi.String("2022-11-11T16:18:37+08:00"),
    				},
    			},
    			Type: pulumi.String("pts-js"),
    		})
    		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 scenario = new Tencentcloud.PtsScenario("scenario", new()
        {
            DomainNameConfig = null,
            Load = new Tencentcloud.Inputs.PtsScenarioLoadArgs
            {
                GeoRegionsLoadDistributions = new[]
                {
                    new Tencentcloud.Inputs.PtsScenarioLoadGeoRegionsLoadDistributionArgs
                    {
                        Percentage = 100,
                        Region = "ap-guangzhou",
                        RegionId = 1,
                    },
                },
                LoadSpec = new Tencentcloud.Inputs.PtsScenarioLoadLoadSpecArgs
                {
                    Concurrency = new Tencentcloud.Inputs.PtsScenarioLoadLoadSpecConcurrencyArgs
                    {
                        GracefulStopSeconds = 3,
                        IterationCount = 0,
                        MaxRequestsPerSecond = 0,
                        Stages = new[]
                        {
                            new Tencentcloud.Inputs.PtsScenarioLoadLoadSpecConcurrencyStageArgs
                            {
                                DurationSeconds = 120,
                                TargetVirtualUsers = 2,
                            },
                            new Tencentcloud.Inputs.PtsScenarioLoadLoadSpecConcurrencyStageArgs
                            {
                                DurationSeconds = 120,
                                TargetVirtualUsers = 4,
                            },
                            new Tencentcloud.Inputs.PtsScenarioLoadLoadSpecConcurrencyStageArgs
                            {
                                DurationSeconds = 120,
                                TargetVirtualUsers = 5,
                            },
                            new Tencentcloud.Inputs.PtsScenarioLoadLoadSpecConcurrencyStageArgs
                            {
                                DurationSeconds = 240,
                                TargetVirtualUsers = 5,
                            },
                        },
                    },
                },
            },
            ProjectId = "project-45vw7v82",
            SlaPolicy = null,
            TestScripts = new[]
            {
                new Tencentcloud.Inputs.PtsScenarioTestScriptArgs
                {
                    EncodedContent = @"            // Send a http get request
                import http from 'pts/http';
                import { check, sleep } from 'pts';
    
                export default function () {
                  // simple get request
                  const resp1 = http.get('http://httpbin.org/get');
                  console.log(resp1.body);
                  // if resp1.body is a json string, resp1.json() transfer json format body to a json object
                  console.log(resp1.json());
                  check('status is 200', () => resp1.statusCode === 200);
    
                  // sleep 1 second
                  sleep(1);
    
                  // get request with headers and parameters
                  const resp2 = http.get('http://httpbin.org/get', {
                    headers: {
                      Connection: 'keep-alive',
                      'User-Agent': 'pts-engine',
                    },
                    query: {
                      name1: 'value1',
                      name2: 'value2',
                    },
                  });
    
                  console.log(resp2.json().args.name1); // 'value1'
                  check('body.args.name1 equals value1', () => resp2.json().args.name1 === 'value1');
                }
    
    ",
                    LoadWeight = 100,
                    Name = "script.js",
                    Size = 838,
                    Type = "js",
                    UpdatedAt = "2022-11-11T16:18:37+08:00",
                },
            },
            Type = "pts-js",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.PtsScenario;
    import com.pulumi.tencentcloud.PtsScenarioArgs;
    import com.pulumi.tencentcloud.inputs.PtsScenarioDomainNameConfigArgs;
    import com.pulumi.tencentcloud.inputs.PtsScenarioLoadArgs;
    import com.pulumi.tencentcloud.inputs.PtsScenarioLoadLoadSpecArgs;
    import com.pulumi.tencentcloud.inputs.PtsScenarioLoadLoadSpecConcurrencyArgs;
    import com.pulumi.tencentcloud.inputs.PtsScenarioSlaPolicyArgs;
    import com.pulumi.tencentcloud.inputs.PtsScenarioTestScriptArgs;
    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 scenario = new PtsScenario("scenario", PtsScenarioArgs.builder()
                .domainNameConfig()
                .load(PtsScenarioLoadArgs.builder()
                    .geoRegionsLoadDistributions(PtsScenarioLoadGeoRegionsLoadDistributionArgs.builder()
                        .percentage(100)
                        .region("ap-guangzhou")
                        .regionId(1)
                        .build())
                    .loadSpec(PtsScenarioLoadLoadSpecArgs.builder()
                        .concurrency(PtsScenarioLoadLoadSpecConcurrencyArgs.builder()
                            .gracefulStopSeconds(3)
                            .iterationCount(0)
                            .maxRequestsPerSecond(0)
                            .stages(                        
                                PtsScenarioLoadLoadSpecConcurrencyStageArgs.builder()
                                    .durationSeconds(120)
                                    .targetVirtualUsers(2)
                                    .build(),
                                PtsScenarioLoadLoadSpecConcurrencyStageArgs.builder()
                                    .durationSeconds(120)
                                    .targetVirtualUsers(4)
                                    .build(),
                                PtsScenarioLoadLoadSpecConcurrencyStageArgs.builder()
                                    .durationSeconds(120)
                                    .targetVirtualUsers(5)
                                    .build(),
                                PtsScenarioLoadLoadSpecConcurrencyStageArgs.builder()
                                    .durationSeconds(240)
                                    .targetVirtualUsers(5)
                                    .build())
                            .build())
                        .build())
                    .build())
                .projectId("project-45vw7v82")
                .slaPolicy()
                .testScripts(PtsScenarioTestScriptArgs.builder()
                    .encodedContent("""
                // Send a http get request
                import http from 'pts/http';
                import { check, sleep } from 'pts';
    
                export default function () {
                  // simple get request
                  const resp1 = http.get('http://httpbin.org/get');
                  console.log(resp1.body);
                  // if resp1.body is a json string, resp1.json() transfer json format body to a json object
                  console.log(resp1.json());
                  check('status is 200', () => resp1.statusCode === 200);
    
                  // sleep 1 second
                  sleep(1);
    
                  // get request with headers and parameters
                  const resp2 = http.get('http://httpbin.org/get', {
                    headers: {
                      Connection: 'keep-alive',
                      'User-Agent': 'pts-engine',
                    },
                    query: {
                      name1: 'value1',
                      name2: 'value2',
                    },
                  });
    
                  console.log(resp2.json().args.name1); // 'value1'
                  check('body.args.name1 equals value1', () => resp2.json().args.name1 === 'value1');
                }
    
                    """)
                    .loadWeight(100)
                    .name("script.js")
                    .size(838)
                    .type("js")
                    .updatedAt("2022-11-11T16:18:37+08:00")
                    .build())
                .type("pts-js")
                .build());
    
        }
    }
    
    resources:
      scenario:
        type: tencentcloud:PtsScenario
        properties:
          domainNameConfig: {}
          load:
            geoRegionsLoadDistributions:
              - percentage: 100
                region: ap-guangzhou
                regionId: 1
            loadSpec:
              concurrency:
                gracefulStopSeconds: 3
                iterationCount: 0
                maxRequestsPerSecond: 0
                stages:
                  - durationSeconds: 120
                    targetVirtualUsers: 2
                  - durationSeconds: 120
                    targetVirtualUsers: 4
                  - durationSeconds: 120
                    targetVirtualUsers: 5
                  - durationSeconds: 240
                    targetVirtualUsers: 5
          projectId: project-45vw7v82
          slaPolicy: {}
          testScripts:
            - encodedContent: |2+
                            // Send a http get request
                            import http from 'pts/http';
                            import { check, sleep } from 'pts';
    
                            export default function () {
                              // simple get request
                              const resp1 = http.get('http://httpbin.org/get');
                              console.log(resp1.body);
                              // if resp1.body is a json string, resp1.json() transfer json format body to a json object
                              console.log(resp1.json());
                              check('status is 200', () => resp1.statusCode === 200);
    
                              // sleep 1 second
                              sleep(1);
    
                              // get request with headers and parameters
                              const resp2 = http.get('http://httpbin.org/get', {
                                headers: {
                                  Connection: 'keep-alive',
                                  'User-Agent': 'pts-engine',
                                },
                                query: {
                                  name1: 'value1',
                                  name2: 'value2',
                                },
                              });
    
                              console.log(resp2.json().args.name1); // 'value1'
                              check('body.args.name1 equals value1', () => resp2.json().args.name1 === 'value1');
                            }
    
              loadWeight: 100
              name: script.js
              size: 838
              type: js
              updatedAt: 2022-11-11T16:18:37+08:00
          type: pts-js
    

    Create PtsScenario Resource

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

    Constructor syntax

    new PtsScenario(name: string, args: PtsScenarioArgs, opts?: CustomResourceOptions);
    @overload
    def PtsScenario(resource_name: str,
                    args: PtsScenarioArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def PtsScenario(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    project_id: Optional[str] = None,
                    type: Optional[str] = None,
                    name: Optional[str] = None,
                    domain_name_config: Optional[PtsScenarioDomainNameConfigArgs] = None,
                    extensions: Optional[Sequence[str]] = None,
                    load: Optional[PtsScenarioLoadArgs] = None,
                    cron_id: Optional[str] = None,
                    plugins: Optional[Sequence[PtsScenarioPluginArgs]] = None,
                    description: Optional[str] = None,
                    protocols: Optional[Sequence[PtsScenarioProtocolArgs]] = None,
                    pts_scenario_id: Optional[str] = None,
                    request_files: Optional[Sequence[PtsScenarioRequestFileArgs]] = None,
                    sla_policy: Optional[PtsScenarioSlaPolicyArgs] = None,
                    test_scripts: Optional[Sequence[PtsScenarioTestScriptArgs]] = None,
                    datasets: Optional[Sequence[PtsScenarioDatasetArgs]] = None)
    func NewPtsScenario(ctx *Context, name string, args PtsScenarioArgs, opts ...ResourceOption) (*PtsScenario, error)
    public PtsScenario(string name, PtsScenarioArgs args, CustomResourceOptions? opts = null)
    public PtsScenario(String name, PtsScenarioArgs args)
    public PtsScenario(String name, PtsScenarioArgs args, CustomResourceOptions options)
    
    type: tencentcloud:PtsScenario
    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 PtsScenarioArgs
    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 PtsScenarioArgs
    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 PtsScenarioArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PtsScenarioArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PtsScenarioArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ProjectId string
    Project id.
    Type string
    Pressure test engine type.
    CronId string
    cron job ID.
    Datasets List<PtsScenarioDataset>
    Test data set.
    Description string
    Pts Scenario Description.
    DomainNameConfig PtsScenarioDomainNameConfig
    Domain name resolution configuration.
    Extensions List<string>
    deprecated.
    Load PtsScenarioLoad
    Pressure allocation.
    Name string
    Pts Scenario name.
    Plugins List<PtsScenarioPlugin>
    SLA strategy.
    Protocols List<PtsScenarioProtocol>
    Protocol file path.
    PtsScenarioId string
    ID of the resource.
    RequestFiles List<PtsScenarioRequestFile>
    Request file path.
    SlaPolicy PtsScenarioSlaPolicy
    SLA strategy.
    TestScripts List<PtsScenarioTestScript>
    Test script file information.
    ProjectId string
    Project id.
    Type string
    Pressure test engine type.
    CronId string
    cron job ID.
    Datasets []PtsScenarioDatasetArgs
    Test data set.
    Description string
    Pts Scenario Description.
    DomainNameConfig PtsScenarioDomainNameConfigArgs
    Domain name resolution configuration.
    Extensions []string
    deprecated.
    Load PtsScenarioLoadArgs
    Pressure allocation.
    Name string
    Pts Scenario name.
    Plugins []PtsScenarioPluginArgs
    SLA strategy.
    Protocols []PtsScenarioProtocolArgs
    Protocol file path.
    PtsScenarioId string
    ID of the resource.
    RequestFiles []PtsScenarioRequestFileArgs
    Request file path.
    SlaPolicy PtsScenarioSlaPolicyArgs
    SLA strategy.
    TestScripts []PtsScenarioTestScriptArgs
    Test script file information.
    projectId String
    Project id.
    type String
    Pressure test engine type.
    cronId String
    cron job ID.
    datasets List<PtsScenarioDataset>
    Test data set.
    description String
    Pts Scenario Description.
    domainNameConfig PtsScenarioDomainNameConfig
    Domain name resolution configuration.
    extensions List<String>
    deprecated.
    load PtsScenarioLoad
    Pressure allocation.
    name String
    Pts Scenario name.
    plugins List<PtsScenarioPlugin>
    SLA strategy.
    protocols List<PtsScenarioProtocol>
    Protocol file path.
    ptsScenarioId String
    ID of the resource.
    requestFiles List<PtsScenarioRequestFile>
    Request file path.
    slaPolicy PtsScenarioSlaPolicy
    SLA strategy.
    testScripts List<PtsScenarioTestScript>
    Test script file information.
    projectId string
    Project id.
    type string
    Pressure test engine type.
    cronId string
    cron job ID.
    datasets PtsScenarioDataset[]
    Test data set.
    description string
    Pts Scenario Description.
    domainNameConfig PtsScenarioDomainNameConfig
    Domain name resolution configuration.
    extensions string[]
    deprecated.
    load PtsScenarioLoad
    Pressure allocation.
    name string
    Pts Scenario name.
    plugins PtsScenarioPlugin[]
    SLA strategy.
    protocols PtsScenarioProtocol[]
    Protocol file path.
    ptsScenarioId string
    ID of the resource.
    requestFiles PtsScenarioRequestFile[]
    Request file path.
    slaPolicy PtsScenarioSlaPolicy
    SLA strategy.
    testScripts PtsScenarioTestScript[]
    Test script file information.
    project_id str
    Project id.
    type str
    Pressure test engine type.
    cron_id str
    cron job ID.
    datasets Sequence[PtsScenarioDatasetArgs]
    Test data set.
    description str
    Pts Scenario Description.
    domain_name_config PtsScenarioDomainNameConfigArgs
    Domain name resolution configuration.
    extensions Sequence[str]
    deprecated.
    load PtsScenarioLoadArgs
    Pressure allocation.
    name str
    Pts Scenario name.
    plugins Sequence[PtsScenarioPluginArgs]
    SLA strategy.
    protocols Sequence[PtsScenarioProtocolArgs]
    Protocol file path.
    pts_scenario_id str
    ID of the resource.
    request_files Sequence[PtsScenarioRequestFileArgs]
    Request file path.
    sla_policy PtsScenarioSlaPolicyArgs
    SLA strategy.
    test_scripts Sequence[PtsScenarioTestScriptArgs]
    Test script file information.
    projectId String
    Project id.
    type String
    Pressure test engine type.
    cronId String
    cron job ID.
    datasets List<Property Map>
    Test data set.
    description String
    Pts Scenario Description.
    domainNameConfig Property Map
    Domain name resolution configuration.
    extensions List<String>
    deprecated.
    load Property Map
    Pressure allocation.
    name String
    Pts Scenario name.
    plugins List<Property Map>
    SLA strategy.
    protocols List<Property Map>
    Protocol file path.
    ptsScenarioId String
    ID of the resource.
    requestFiles List<Property Map>
    Request file path.
    slaPolicy Property Map
    SLA strategy.
    testScripts List<Property Map>
    Test script file information.

    Outputs

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

    AppId double
    App ID Note: this field may return null, indicating that a valid value cannot be obtained.
    CreatedAt string
    Scene creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status double
    Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
    SubAccountUin string
    Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
    Uin string
    User ID Note: this field may return null, indicating that a valid value cannot be obtained.
    UpdatedAt string
    Scene modification time.
    AppId float64
    App ID Note: this field may return null, indicating that a valid value cannot be obtained.
    CreatedAt string
    Scene creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status float64
    Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
    SubAccountUin string
    Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
    Uin string
    User ID Note: this field may return null, indicating that a valid value cannot be obtained.
    UpdatedAt string
    Scene modification time.
    appId Double
    App ID Note: this field may return null, indicating that a valid value cannot be obtained.
    createdAt String
    Scene creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    status Double
    Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
    subAccountUin String
    Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
    uin String
    User ID Note: this field may return null, indicating that a valid value cannot be obtained.
    updatedAt String
    Scene modification time.
    appId number
    App ID Note: this field may return null, indicating that a valid value cannot be obtained.
    createdAt string
    Scene creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    status number
    Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
    subAccountUin string
    Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
    uin string
    User ID Note: this field may return null, indicating that a valid value cannot be obtained.
    updatedAt string
    Scene modification time.
    app_id float
    App ID Note: this field may return null, indicating that a valid value cannot be obtained.
    created_at str
    Scene creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    status float
    Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
    sub_account_uin str
    Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
    uin str
    User ID Note: this field may return null, indicating that a valid value cannot be obtained.
    updated_at str
    Scene modification time.
    appId Number
    App ID Note: this field may return null, indicating that a valid value cannot be obtained.
    createdAt String
    Scene creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    status Number
    Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
    subAccountUin String
    Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
    uin String
    User ID Note: this field may return null, indicating that a valid value cannot be obtained.
    updatedAt String
    Scene modification time.

    Look up Existing PtsScenario Resource

    Get an existing PtsScenario 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?: PtsScenarioState, opts?: CustomResourceOptions): PtsScenario
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_id: Optional[float] = None,
            created_at: Optional[str] = None,
            cron_id: Optional[str] = None,
            datasets: Optional[Sequence[PtsScenarioDatasetArgs]] = None,
            description: Optional[str] = None,
            domain_name_config: Optional[PtsScenarioDomainNameConfigArgs] = None,
            extensions: Optional[Sequence[str]] = None,
            load: Optional[PtsScenarioLoadArgs] = None,
            name: Optional[str] = None,
            plugins: Optional[Sequence[PtsScenarioPluginArgs]] = None,
            project_id: Optional[str] = None,
            protocols: Optional[Sequence[PtsScenarioProtocolArgs]] = None,
            pts_scenario_id: Optional[str] = None,
            request_files: Optional[Sequence[PtsScenarioRequestFileArgs]] = None,
            sla_policy: Optional[PtsScenarioSlaPolicyArgs] = None,
            status: Optional[float] = None,
            sub_account_uin: Optional[str] = None,
            test_scripts: Optional[Sequence[PtsScenarioTestScriptArgs]] = None,
            type: Optional[str] = None,
            uin: Optional[str] = None,
            updated_at: Optional[str] = None) -> PtsScenario
    func GetPtsScenario(ctx *Context, name string, id IDInput, state *PtsScenarioState, opts ...ResourceOption) (*PtsScenario, error)
    public static PtsScenario Get(string name, Input<string> id, PtsScenarioState? state, CustomResourceOptions? opts = null)
    public static PtsScenario get(String name, Output<String> id, PtsScenarioState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:PtsScenario    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:
    AppId double
    App ID Note: this field may return null, indicating that a valid value cannot be obtained.
    CreatedAt string
    Scene creation time.
    CronId string
    cron job ID.
    Datasets List<PtsScenarioDataset>
    Test data set.
    Description string
    Pts Scenario Description.
    DomainNameConfig PtsScenarioDomainNameConfig
    Domain name resolution configuration.
    Extensions List<string>
    deprecated.
    Load PtsScenarioLoad
    Pressure allocation.
    Name string
    Pts Scenario name.
    Plugins List<PtsScenarioPlugin>
    SLA strategy.
    ProjectId string
    Project id.
    Protocols List<PtsScenarioProtocol>
    Protocol file path.
    PtsScenarioId string
    ID of the resource.
    RequestFiles List<PtsScenarioRequestFile>
    Request file path.
    SlaPolicy PtsScenarioSlaPolicy
    SLA strategy.
    Status double
    Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
    SubAccountUin string
    Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
    TestScripts List<PtsScenarioTestScript>
    Test script file information.
    Type string
    Pressure test engine type.
    Uin string
    User ID Note: this field may return null, indicating that a valid value cannot be obtained.
    UpdatedAt string
    Scene modification time.
    AppId float64
    App ID Note: this field may return null, indicating that a valid value cannot be obtained.
    CreatedAt string
    Scene creation time.
    CronId string
    cron job ID.
    Datasets []PtsScenarioDatasetArgs
    Test data set.
    Description string
    Pts Scenario Description.
    DomainNameConfig PtsScenarioDomainNameConfigArgs
    Domain name resolution configuration.
    Extensions []string
    deprecated.
    Load PtsScenarioLoadArgs
    Pressure allocation.
    Name string
    Pts Scenario name.
    Plugins []PtsScenarioPluginArgs
    SLA strategy.
    ProjectId string
    Project id.
    Protocols []PtsScenarioProtocolArgs
    Protocol file path.
    PtsScenarioId string
    ID of the resource.
    RequestFiles []PtsScenarioRequestFileArgs
    Request file path.
    SlaPolicy PtsScenarioSlaPolicyArgs
    SLA strategy.
    Status float64
    Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
    SubAccountUin string
    Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
    TestScripts []PtsScenarioTestScriptArgs
    Test script file information.
    Type string
    Pressure test engine type.
    Uin string
    User ID Note: this field may return null, indicating that a valid value cannot be obtained.
    UpdatedAt string
    Scene modification time.
    appId Double
    App ID Note: this field may return null, indicating that a valid value cannot be obtained.
    createdAt String
    Scene creation time.
    cronId String
    cron job ID.
    datasets List<PtsScenarioDataset>
    Test data set.
    description String
    Pts Scenario Description.
    domainNameConfig PtsScenarioDomainNameConfig
    Domain name resolution configuration.
    extensions List<String>
    deprecated.
    load PtsScenarioLoad
    Pressure allocation.
    name String
    Pts Scenario name.
    plugins List<PtsScenarioPlugin>
    SLA strategy.
    projectId String
    Project id.
    protocols List<PtsScenarioProtocol>
    Protocol file path.
    ptsScenarioId String
    ID of the resource.
    requestFiles List<PtsScenarioRequestFile>
    Request file path.
    slaPolicy PtsScenarioSlaPolicy
    SLA strategy.
    status Double
    Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
    subAccountUin String
    Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
    testScripts List<PtsScenarioTestScript>
    Test script file information.
    type String
    Pressure test engine type.
    uin String
    User ID Note: this field may return null, indicating that a valid value cannot be obtained.
    updatedAt String
    Scene modification time.
    appId number
    App ID Note: this field may return null, indicating that a valid value cannot be obtained.
    createdAt string
    Scene creation time.
    cronId string
    cron job ID.
    datasets PtsScenarioDataset[]
    Test data set.
    description string
    Pts Scenario Description.
    domainNameConfig PtsScenarioDomainNameConfig
    Domain name resolution configuration.
    extensions string[]
    deprecated.
    load PtsScenarioLoad
    Pressure allocation.
    name string
    Pts Scenario name.
    plugins PtsScenarioPlugin[]
    SLA strategy.
    projectId string
    Project id.
    protocols PtsScenarioProtocol[]
    Protocol file path.
    ptsScenarioId string
    ID of the resource.
    requestFiles PtsScenarioRequestFile[]
    Request file path.
    slaPolicy PtsScenarioSlaPolicy
    SLA strategy.
    status number
    Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
    subAccountUin string
    Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
    testScripts PtsScenarioTestScript[]
    Test script file information.
    type string
    Pressure test engine type.
    uin string
    User ID Note: this field may return null, indicating that a valid value cannot be obtained.
    updatedAt string
    Scene modification time.
    app_id float
    App ID Note: this field may return null, indicating that a valid value cannot be obtained.
    created_at str
    Scene creation time.
    cron_id str
    cron job ID.
    datasets Sequence[PtsScenarioDatasetArgs]
    Test data set.
    description str
    Pts Scenario Description.
    domain_name_config PtsScenarioDomainNameConfigArgs
    Domain name resolution configuration.
    extensions Sequence[str]
    deprecated.
    load PtsScenarioLoadArgs
    Pressure allocation.
    name str
    Pts Scenario name.
    plugins Sequence[PtsScenarioPluginArgs]
    SLA strategy.
    project_id str
    Project id.
    protocols Sequence[PtsScenarioProtocolArgs]
    Protocol file path.
    pts_scenario_id str
    ID of the resource.
    request_files Sequence[PtsScenarioRequestFileArgs]
    Request file path.
    sla_policy PtsScenarioSlaPolicyArgs
    SLA strategy.
    status float
    Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
    sub_account_uin str
    Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
    test_scripts Sequence[PtsScenarioTestScriptArgs]
    Test script file information.
    type str
    Pressure test engine type.
    uin str
    User ID Note: this field may return null, indicating that a valid value cannot be obtained.
    updated_at str
    Scene modification time.
    appId Number
    App ID Note: this field may return null, indicating that a valid value cannot be obtained.
    createdAt String
    Scene creation time.
    cronId String
    cron job ID.
    datasets List<Property Map>
    Test data set.
    description String
    Pts Scenario Description.
    domainNameConfig Property Map
    Domain name resolution configuration.
    extensions List<String>
    deprecated.
    load Property Map
    Pressure allocation.
    name String
    Pts Scenario name.
    plugins List<Property Map>
    SLA strategy.
    projectId String
    Project id.
    protocols List<Property Map>
    Protocol file path.
    ptsScenarioId String
    ID of the resource.
    requestFiles List<Property Map>
    Request file path.
    slaPolicy Property Map
    SLA strategy.
    status Number
    Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
    subAccountUin String
    Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
    testScripts List<Property Map>
    Test script file information.
    type String
    Pressure test engine type.
    uin String
    User ID Note: this field may return null, indicating that a valid value cannot be obtained.
    updatedAt String
    Scene modification time.

    Supporting Types

    PtsScenarioDataset, PtsScenarioDatasetArgs

    HeaderInFile bool
    Whether the first line is the parameter name.
    Name string
    The file name where the test dataset is located.
    Split bool
    Test whether the dataset is fragmented.
    FileId string
    File ID.
    HeadLines List<string>
    Header data row.
    HeaderColumns List<string>
    Parameter name array.
    LineCount double
    Number of file lines.
    Size double
    Number of file bytes.
    TailLines List<string>
    Trailing data row.
    Type string
    File type.
    UpdatedAt string
    Update time.
    HeaderInFile bool
    Whether the first line is the parameter name.
    Name string
    The file name where the test dataset is located.
    Split bool
    Test whether the dataset is fragmented.
    FileId string
    File ID.
    HeadLines []string
    Header data row.
    HeaderColumns []string
    Parameter name array.
    LineCount float64
    Number of file lines.
    Size float64
    Number of file bytes.
    TailLines []string
    Trailing data row.
    Type string
    File type.
    UpdatedAt string
    Update time.
    headerInFile Boolean
    Whether the first line is the parameter name.
    name String
    The file name where the test dataset is located.
    split Boolean
    Test whether the dataset is fragmented.
    fileId String
    File ID.
    headLines List<String>
    Header data row.
    headerColumns List<String>
    Parameter name array.
    lineCount Double
    Number of file lines.
    size Double
    Number of file bytes.
    tailLines List<String>
    Trailing data row.
    type String
    File type.
    updatedAt String
    Update time.
    headerInFile boolean
    Whether the first line is the parameter name.
    name string
    The file name where the test dataset is located.
    split boolean
    Test whether the dataset is fragmented.
    fileId string
    File ID.
    headLines string[]
    Header data row.
    headerColumns string[]
    Parameter name array.
    lineCount number
    Number of file lines.
    size number
    Number of file bytes.
    tailLines string[]
    Trailing data row.
    type string
    File type.
    updatedAt string
    Update time.
    header_in_file bool
    Whether the first line is the parameter name.
    name str
    The file name where the test dataset is located.
    split bool
    Test whether the dataset is fragmented.
    file_id str
    File ID.
    head_lines Sequence[str]
    Header data row.
    header_columns Sequence[str]
    Parameter name array.
    line_count float
    Number of file lines.
    size float
    Number of file bytes.
    tail_lines Sequence[str]
    Trailing data row.
    type str
    File type.
    updated_at str
    Update time.
    headerInFile Boolean
    Whether the first line is the parameter name.
    name String
    The file name where the test dataset is located.
    split Boolean
    Test whether the dataset is fragmented.
    fileId String
    File ID.
    headLines List<String>
    Header data row.
    headerColumns List<String>
    Parameter name array.
    lineCount Number
    Number of file lines.
    size Number
    Number of file bytes.
    tailLines List<String>
    Trailing data row.
    type String
    File type.
    updatedAt String
    Update time.

    PtsScenarioDomainNameConfig, PtsScenarioDomainNameConfigArgs

    dnsConfig Property Map
    DNS configuration.
    hostAliases List<Property Map>
    Domain name binding configuration.

    PtsScenarioDomainNameConfigDnsConfig, PtsScenarioDomainNameConfigDnsConfigArgs

    Nameservers List<string>
    DNS IP List.
    Nameservers []string
    DNS IP List.
    nameservers List<String>
    DNS IP List.
    nameservers string[]
    DNS IP List.
    nameservers Sequence[str]
    DNS IP List.
    nameservers List<String>
    DNS IP List.

    PtsScenarioDomainNameConfigHostAlias, PtsScenarioDomainNameConfigHostAliasArgs

    HostNames List<string>
    List of domain names to be bound.
    Ip string
    The IP address to be bound.
    HostNames []string
    List of domain names to be bound.
    Ip string
    The IP address to be bound.
    hostNames List<String>
    List of domain names to be bound.
    ip String
    The IP address to be bound.
    hostNames string[]
    List of domain names to be bound.
    ip string
    The IP address to be bound.
    host_names Sequence[str]
    List of domain names to be bound.
    ip str
    The IP address to be bound.
    hostNames List<String>
    List of domain names to be bound.
    ip String
    The IP address to be bound.

    PtsScenarioLoad, PtsScenarioLoadArgs

    PtsScenarioLoadGeoRegionsLoadDistribution, PtsScenarioLoadGeoRegionsLoadDistributionArgs

    RegionId double
    Regional ID.
    Percentage double
    Percentage.
    Region string
    Region.
    RegionId float64
    Regional ID.
    Percentage float64
    Percentage.
    Region string
    Region.
    regionId Double
    Regional ID.
    percentage Double
    Percentage.
    region String
    Region.
    regionId number
    Regional ID.
    percentage number
    Percentage.
    region string
    Region.
    region_id float
    Regional ID.
    percentage float
    Percentage.
    region str
    Region.
    regionId Number
    Regional ID.
    percentage Number
    Percentage.
    region String
    Region.

    PtsScenarioLoadLoadSpec, PtsScenarioLoadLoadSpecArgs

    Concurrency PtsScenarioLoadLoadSpecConcurrency
    Configuration of concurrent pressure mode.
    RequestsPerSecond PtsScenarioLoadLoadSpecRequestsPerSecond
    Configuration of RPS pressure mode.
    ScriptOrigin PtsScenarioLoadLoadSpecScriptOrigin
    Built-in stress mode in script.
    Concurrency PtsScenarioLoadLoadSpecConcurrency
    Configuration of concurrent pressure mode.
    RequestsPerSecond PtsScenarioLoadLoadSpecRequestsPerSecond
    Configuration of RPS pressure mode.
    ScriptOrigin PtsScenarioLoadLoadSpecScriptOrigin
    Built-in stress mode in script.
    concurrency PtsScenarioLoadLoadSpecConcurrency
    Configuration of concurrent pressure mode.
    requestsPerSecond PtsScenarioLoadLoadSpecRequestsPerSecond
    Configuration of RPS pressure mode.
    scriptOrigin PtsScenarioLoadLoadSpecScriptOrigin
    Built-in stress mode in script.
    concurrency PtsScenarioLoadLoadSpecConcurrency
    Configuration of concurrent pressure mode.
    requestsPerSecond PtsScenarioLoadLoadSpecRequestsPerSecond
    Configuration of RPS pressure mode.
    scriptOrigin PtsScenarioLoadLoadSpecScriptOrigin
    Built-in stress mode in script.
    concurrency PtsScenarioLoadLoadSpecConcurrency
    Configuration of concurrent pressure mode.
    requests_per_second PtsScenarioLoadLoadSpecRequestsPerSecond
    Configuration of RPS pressure mode.
    script_origin PtsScenarioLoadLoadSpecScriptOrigin
    Built-in stress mode in script.
    concurrency Property Map
    Configuration of concurrent pressure mode.
    requestsPerSecond Property Map
    Configuration of RPS pressure mode.
    scriptOrigin Property Map
    Built-in stress mode in script.

    PtsScenarioLoadLoadSpecConcurrency, PtsScenarioLoadLoadSpecConcurrencyArgs

    GracefulStopSeconds double
    Wait time for graceful termination of the task.
    IterationCount double
    Number of runs.
    MaxRequestsPerSecond double
    Maximum RPS.
    Stages List<PtsScenarioLoadLoadSpecConcurrencyStage>
    Multi-phase configuration array.
    GracefulStopSeconds float64
    Wait time for graceful termination of the task.
    IterationCount float64
    Number of runs.
    MaxRequestsPerSecond float64
    Maximum RPS.
    Stages []PtsScenarioLoadLoadSpecConcurrencyStage
    Multi-phase configuration array.
    gracefulStopSeconds Double
    Wait time for graceful termination of the task.
    iterationCount Double
    Number of runs.
    maxRequestsPerSecond Double
    Maximum RPS.
    stages List<PtsScenarioLoadLoadSpecConcurrencyStage>
    Multi-phase configuration array.
    gracefulStopSeconds number
    Wait time for graceful termination of the task.
    iterationCount number
    Number of runs.
    maxRequestsPerSecond number
    Maximum RPS.
    stages PtsScenarioLoadLoadSpecConcurrencyStage[]
    Multi-phase configuration array.
    graceful_stop_seconds float
    Wait time for graceful termination of the task.
    iteration_count float
    Number of runs.
    max_requests_per_second float
    Maximum RPS.
    stages Sequence[PtsScenarioLoadLoadSpecConcurrencyStage]
    Multi-phase configuration array.
    gracefulStopSeconds Number
    Wait time for graceful termination of the task.
    iterationCount Number
    Number of runs.
    maxRequestsPerSecond Number
    Maximum RPS.
    stages List<Property Map>
    Multi-phase configuration array.

    PtsScenarioLoadLoadSpecConcurrencyStage, PtsScenarioLoadLoadSpecConcurrencyStageArgs

    DurationSeconds double
    Pressure time.
    TargetVirtualUsers double
    Number of virtual users.
    DurationSeconds float64
    Pressure time.
    TargetVirtualUsers float64
    Number of virtual users.
    durationSeconds Double
    Pressure time.
    targetVirtualUsers Double
    Number of virtual users.
    durationSeconds number
    Pressure time.
    targetVirtualUsers number
    Number of virtual users.
    duration_seconds float
    Pressure time.
    target_virtual_users float
    Number of virtual users.
    durationSeconds Number
    Pressure time.
    targetVirtualUsers Number
    Number of virtual users.

    PtsScenarioLoadLoadSpecRequestsPerSecond, PtsScenarioLoadLoadSpecRequestsPerSecondArgs

    DurationSeconds double
    Pressure time.
    GracefulStopSeconds double
    Elegant shutdown waiting time.
    MaxRequestsPerSecond double
    Maximum RPS.
    Resources double
    Number of resources.
    StartRequestsPerSecond double
    Initial RPS.
    TargetRequestsPerSecond double
    Target RPS, invalid input parameter.
    DurationSeconds float64
    Pressure time.
    GracefulStopSeconds float64
    Elegant shutdown waiting time.
    MaxRequestsPerSecond float64
    Maximum RPS.
    Resources float64
    Number of resources.
    StartRequestsPerSecond float64
    Initial RPS.
    TargetRequestsPerSecond float64
    Target RPS, invalid input parameter.
    durationSeconds Double
    Pressure time.
    gracefulStopSeconds Double
    Elegant shutdown waiting time.
    maxRequestsPerSecond Double
    Maximum RPS.
    resources Double
    Number of resources.
    startRequestsPerSecond Double
    Initial RPS.
    targetRequestsPerSecond Double
    Target RPS, invalid input parameter.
    durationSeconds number
    Pressure time.
    gracefulStopSeconds number
    Elegant shutdown waiting time.
    maxRequestsPerSecond number
    Maximum RPS.
    resources number
    Number of resources.
    startRequestsPerSecond number
    Initial RPS.
    targetRequestsPerSecond number
    Target RPS, invalid input parameter.
    duration_seconds float
    Pressure time.
    graceful_stop_seconds float
    Elegant shutdown waiting time.
    max_requests_per_second float
    Maximum RPS.
    resources float
    Number of resources.
    start_requests_per_second float
    Initial RPS.
    target_requests_per_second float
    Target RPS, invalid input parameter.
    durationSeconds Number
    Pressure time.
    gracefulStopSeconds Number
    Elegant shutdown waiting time.
    maxRequestsPerSecond Number
    Maximum RPS.
    resources Number
    Number of resources.
    startRequestsPerSecond Number
    Initial RPS.
    targetRequestsPerSecond Number
    Target RPS, invalid input parameter.

    PtsScenarioLoadLoadSpecScriptOrigin, PtsScenarioLoadLoadSpecScriptOriginArgs

    DurationSeconds double
    Pressure testing time.
    MachineNumber double
    Number of machines.
    MachineSpecification string
    Machine specification.
    DurationSeconds float64
    Pressure testing time.
    MachineNumber float64
    Number of machines.
    MachineSpecification string
    Machine specification.
    durationSeconds Double
    Pressure testing time.
    machineNumber Double
    Number of machines.
    machineSpecification String
    Machine specification.
    durationSeconds number
    Pressure testing time.
    machineNumber number
    Number of machines.
    machineSpecification string
    Machine specification.
    duration_seconds float
    Pressure testing time.
    machine_number float
    Number of machines.
    machine_specification str
    Machine specification.
    durationSeconds Number
    Pressure testing time.
    machineNumber Number
    Number of machines.
    machineSpecification String
    Machine specification.

    PtsScenarioLoadVpcLoadDistribution, PtsScenarioLoadVpcLoadDistributionArgs

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

    PtsScenarioPlugin, PtsScenarioPluginArgs

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

    PtsScenarioProtocol, PtsScenarioProtocolArgs

    FileId string
    File ID.
    Name string
    Protocol name.
    Size double
    File name.
    Type string
    File type.
    UpdatedAt string
    Update time.
    FileId string
    File ID.
    Name string
    Protocol name.
    Size float64
    File name.
    Type string
    File type.
    UpdatedAt string
    Update time.
    fileId String
    File ID.
    name String
    Protocol name.
    size Double
    File name.
    type String
    File type.
    updatedAt String
    Update time.
    fileId string
    File ID.
    name string
    Protocol name.
    size number
    File name.
    type string
    File type.
    updatedAt string
    Update time.
    file_id str
    File ID.
    name str
    Protocol name.
    size float
    File name.
    type str
    File type.
    updated_at str
    Update time.
    fileId String
    File ID.
    name String
    Protocol name.
    size Number
    File name.
    type String
    File type.
    updatedAt String
    Update time.

    PtsScenarioRequestFile, PtsScenarioRequestFileArgs

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

    PtsScenarioSlaPolicy, PtsScenarioSlaPolicyArgs

    alertChannel Property Map
    Alarm notification channel.
    slaRules List<Property Map>
    SLA rules.

    PtsScenarioSlaPolicyAlertChannel, PtsScenarioSlaPolicyAlertChannelArgs

    AmpConsumerId string
    AMP consumer ID.
    NoticeId string
    Notification template ID.
    AmpConsumerId string
    AMP consumer ID.
    NoticeId string
    Notification template ID.
    ampConsumerId String
    AMP consumer ID.
    noticeId String
    Notification template ID.
    ampConsumerId string
    AMP consumer ID.
    noticeId string
    Notification template ID.
    amp_consumer_id str
    AMP consumer ID.
    notice_id str
    Notification template ID.
    ampConsumerId String
    AMP consumer ID.
    noticeId String
    Notification template ID.

    PtsScenarioSlaPolicySlaRule, PtsScenarioSlaPolicySlaRuleArgs

    AbortFlag bool
    Whether to stop the stress test task.
    Aggregation string
    Aggregation method of pressure test index.
    Condition string
    Pressure test index condition judgment symbol.
    For string
    duraion.
    LabelFilters List<PtsScenarioSlaPolicySlaRuleLabelFilter>
    tag.
    Metric string
    Pressure test index.
    Value double
    Threshold value.
    AbortFlag bool
    Whether to stop the stress test task.
    Aggregation string
    Aggregation method of pressure test index.
    Condition string
    Pressure test index condition judgment symbol.
    For string
    duraion.
    LabelFilters []PtsScenarioSlaPolicySlaRuleLabelFilter
    tag.
    Metric string
    Pressure test index.
    Value float64
    Threshold value.
    abortFlag Boolean
    Whether to stop the stress test task.
    aggregation String
    Aggregation method of pressure test index.
    condition String
    Pressure test index condition judgment symbol.
    for_ String
    duraion.
    labelFilters List<PtsScenarioSlaPolicySlaRuleLabelFilter>
    tag.
    metric String
    Pressure test index.
    value Double
    Threshold value.
    abortFlag boolean
    Whether to stop the stress test task.
    aggregation string
    Aggregation method of pressure test index.
    condition string
    Pressure test index condition judgment symbol.
    for string
    duraion.
    labelFilters PtsScenarioSlaPolicySlaRuleLabelFilter[]
    tag.
    metric string
    Pressure test index.
    value number
    Threshold value.
    abort_flag bool
    Whether to stop the stress test task.
    aggregation str
    Aggregation method of pressure test index.
    condition str
    Pressure test index condition judgment symbol.
    for_ str
    duraion.
    label_filters Sequence[PtsScenarioSlaPolicySlaRuleLabelFilter]
    tag.
    metric str
    Pressure test index.
    value float
    Threshold value.
    abortFlag Boolean
    Whether to stop the stress test task.
    aggregation String
    Aggregation method of pressure test index.
    condition String
    Pressure test index condition judgment symbol.
    for String
    duraion.
    labelFilters List<Property Map>
    tag.
    metric String
    Pressure test index.
    value Number
    Threshold value.

    PtsScenarioSlaPolicySlaRuleLabelFilter, PtsScenarioSlaPolicySlaRuleLabelFilterArgs

    LabelName string
    Label name.
    LabelValue string
    Label value.
    LabelName string
    Label name.
    LabelValue string
    Label value.
    labelName String
    Label name.
    labelValue String
    Label value.
    labelName string
    Label name.
    labelValue string
    Label value.
    label_name str
    Label name.
    label_value str
    Label value.
    labelName String
    Label name.
    labelValue String
    Label value.

    PtsScenarioTestScript, PtsScenarioTestScriptArgs

    EncodedContent string
    Base64 encoded file content.
    EncodedHttpArchive string
    Base64 encoded har structure.
    LoadWeight double
    Script weight, range 1-100.
    Name string
    File name.
    Size double
    File size.
    Type string
    File type.
    UpdatedAt string
    Update time.
    EncodedContent string
    Base64 encoded file content.
    EncodedHttpArchive string
    Base64 encoded har structure.
    LoadWeight float64
    Script weight, range 1-100.
    Name string
    File name.
    Size float64
    File size.
    Type string
    File type.
    UpdatedAt string
    Update time.
    encodedContent String
    Base64 encoded file content.
    encodedHttpArchive String
    Base64 encoded har structure.
    loadWeight Double
    Script weight, range 1-100.
    name String
    File name.
    size Double
    File size.
    type String
    File type.
    updatedAt String
    Update time.
    encodedContent string
    Base64 encoded file content.
    encodedHttpArchive string
    Base64 encoded har structure.
    loadWeight number
    Script weight, range 1-100.
    name string
    File name.
    size number
    File size.
    type string
    File type.
    updatedAt string
    Update time.
    encoded_content str
    Base64 encoded file content.
    encoded_http_archive str
    Base64 encoded har structure.
    load_weight float
    Script weight, range 1-100.
    name str
    File name.
    size float
    File size.
    type str
    File type.
    updated_at str
    Update time.
    encodedContent String
    Base64 encoded file content.
    encodedHttpArchive String
    Base64 encoded har structure.
    loadWeight Number
    Script weight, range 1-100.
    name String
    File name.
    size Number
    File size.
    type String
    File type.
    updatedAt String
    Update time.

    Import

    pts scenario can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/ptsScenario:PtsScenario scenario scenario_id
    

    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.186 published on Thursday, Apr 24, 2025 by tencentcloudstack