tencentcloud.PtsScenario
Explore with Pulumi AI
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:
- Project
Id string - Project id.
- Type string
- Pressure test engine type.
- Cron
Id string - cron job ID.
- Datasets
List<Pts
Scenario Dataset> - Test data set.
- Description string
- Pts Scenario Description.
- Domain
Name PtsConfig Scenario Domain Name Config - Domain name resolution configuration.
- Extensions List<string>
- deprecated.
- Load
Pts
Scenario Load - Pressure allocation.
- Name string
- Pts Scenario name.
- Plugins
List<Pts
Scenario Plugin> - SLA strategy.
- Protocols
List<Pts
Scenario Protocol> - Protocol file path.
- Pts
Scenario stringId - ID of the resource.
- Request
Files List<PtsScenario Request File> - Request file path.
- Sla
Policy PtsScenario Sla Policy - SLA strategy.
- Test
Scripts List<PtsScenario Test Script> - Test script file information.
- Project
Id string - Project id.
- Type string
- Pressure test engine type.
- Cron
Id string - cron job ID.
- Datasets
[]Pts
Scenario Dataset Args - Test data set.
- Description string
- Pts Scenario Description.
- Domain
Name PtsConfig Scenario Domain Name Config Args - Domain name resolution configuration.
- Extensions []string
- deprecated.
- Load
Pts
Scenario Load Args - Pressure allocation.
- Name string
- Pts Scenario name.
- Plugins
[]Pts
Scenario Plugin Args - SLA strategy.
- Protocols
[]Pts
Scenario Protocol Args - Protocol file path.
- Pts
Scenario stringId - ID of the resource.
- Request
Files []PtsScenario Request File Args - Request file path.
- Sla
Policy PtsScenario Sla Policy Args - SLA strategy.
- Test
Scripts []PtsScenario Test Script Args - Test script file information.
- project
Id String - Project id.
- type String
- Pressure test engine type.
- cron
Id String - cron job ID.
- datasets
List<Pts
Scenario Dataset> - Test data set.
- description String
- Pts Scenario Description.
- domain
Name PtsConfig Scenario Domain Name Config - Domain name resolution configuration.
- extensions List<String>
- deprecated.
- load
Pts
Scenario Load - Pressure allocation.
- name String
- Pts Scenario name.
- plugins
List<Pts
Scenario Plugin> - SLA strategy.
- protocols
List<Pts
Scenario Protocol> - Protocol file path.
- pts
Scenario StringId - ID of the resource.
- request
Files List<PtsScenario Request File> - Request file path.
- sla
Policy PtsScenario Sla Policy - SLA strategy.
- test
Scripts List<PtsScenario Test Script> - Test script file information.
- project
Id string - Project id.
- type string
- Pressure test engine type.
- cron
Id string - cron job ID.
- datasets
Pts
Scenario Dataset[] - Test data set.
- description string
- Pts Scenario Description.
- domain
Name PtsConfig Scenario Domain Name Config - Domain name resolution configuration.
- extensions string[]
- deprecated.
- load
Pts
Scenario Load - Pressure allocation.
- name string
- Pts Scenario name.
- plugins
Pts
Scenario Plugin[] - SLA strategy.
- protocols
Pts
Scenario Protocol[] - Protocol file path.
- pts
Scenario stringId - ID of the resource.
- request
Files PtsScenario Request File[] - Request file path.
- sla
Policy PtsScenario Sla Policy - SLA strategy.
- test
Scripts PtsScenario Test Script[] - Test script file information.
- project_
id str - Project id.
- type str
- Pressure test engine type.
- cron_
id str - cron job ID.
- datasets
Sequence[Pts
Scenario Dataset Args] - Test data set.
- description str
- Pts Scenario Description.
- domain_
name_ Ptsconfig Scenario Domain Name Config Args - Domain name resolution configuration.
- extensions Sequence[str]
- deprecated.
- load
Pts
Scenario Load Args - Pressure allocation.
- name str
- Pts Scenario name.
- plugins
Sequence[Pts
Scenario Plugin Args] - SLA strategy.
- protocols
Sequence[Pts
Scenario Protocol Args] - Protocol file path.
- pts_
scenario_ strid - ID of the resource.
- request_
files Sequence[PtsScenario Request File Args] - Request file path.
- sla_
policy PtsScenario Sla Policy Args - SLA strategy.
- test_
scripts Sequence[PtsScenario Test Script Args] - Test script file information.
- project
Id String - Project id.
- type String
- Pressure test engine type.
- cron
Id String - cron job ID.
- datasets List<Property Map>
- Test data set.
- description String
- Pts Scenario Description.
- domain
Name Property MapConfig - 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.
- pts
Scenario StringId - ID of the resource.
- request
Files List<Property Map> - Request file path.
- sla
Policy Property Map - SLA strategy.
- test
Scripts 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:
- App
Id double - App ID Note: this field may return null, indicating that a valid value cannot be obtained.
- Created
At 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.
- Sub
Account stringUin - 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.
- Updated
At string - Scene modification time.
- App
Id float64 - App ID Note: this field may return null, indicating that a valid value cannot be obtained.
- Created
At 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.
- Sub
Account stringUin - 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.
- Updated
At string - Scene modification time.
- app
Id Double - App ID Note: this field may return null, indicating that a valid value cannot be obtained.
- created
At 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.
- sub
Account StringUin - 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.
- updated
At String - Scene modification time.
- app
Id number - App ID Note: this field may return null, indicating that a valid value cannot be obtained.
- created
At 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.
- sub
Account stringUin - 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.
- updated
At 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_ struin - 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.
- app
Id Number - App ID Note: this field may return null, indicating that a valid value cannot be obtained.
- created
At 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.
- sub
Account StringUin - 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.
- updated
At 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.
- App
Id double - App ID Note: this field may return null, indicating that a valid value cannot be obtained.
- Created
At string - Scene creation time.
- Cron
Id string - cron job ID.
- Datasets
List<Pts
Scenario Dataset> - Test data set.
- Description string
- Pts Scenario Description.
- Domain
Name PtsConfig Scenario Domain Name Config - Domain name resolution configuration.
- Extensions List<string>
- deprecated.
- Load
Pts
Scenario Load - Pressure allocation.
- Name string
- Pts Scenario name.
- Plugins
List<Pts
Scenario Plugin> - SLA strategy.
- Project
Id string - Project id.
- Protocols
List<Pts
Scenario Protocol> - Protocol file path.
- Pts
Scenario stringId - ID of the resource.
- Request
Files List<PtsScenario Request File> - Request file path.
- Sla
Policy PtsScenario Sla Policy - SLA strategy.
- Status double
- Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
- Sub
Account stringUin - Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
- Test
Scripts List<PtsScenario Test Script> - 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.
- Updated
At string - Scene modification time.
- App
Id float64 - App ID Note: this field may return null, indicating that a valid value cannot be obtained.
- Created
At string - Scene creation time.
- Cron
Id string - cron job ID.
- Datasets
[]Pts
Scenario Dataset Args - Test data set.
- Description string
- Pts Scenario Description.
- Domain
Name PtsConfig Scenario Domain Name Config Args - Domain name resolution configuration.
- Extensions []string
- deprecated.
- Load
Pts
Scenario Load Args - Pressure allocation.
- Name string
- Pts Scenario name.
- Plugins
[]Pts
Scenario Plugin Args - SLA strategy.
- Project
Id string - Project id.
- Protocols
[]Pts
Scenario Protocol Args - Protocol file path.
- Pts
Scenario stringId - ID of the resource.
- Request
Files []PtsScenario Request File Args - Request file path.
- Sla
Policy PtsScenario Sla Policy Args - SLA strategy.
- Status float64
- Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
- Sub
Account stringUin - Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
- Test
Scripts []PtsScenario Test Script Args - 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.
- Updated
At string - Scene modification time.
- app
Id Double - App ID Note: this field may return null, indicating that a valid value cannot be obtained.
- created
At String - Scene creation time.
- cron
Id String - cron job ID.
- datasets
List<Pts
Scenario Dataset> - Test data set.
- description String
- Pts Scenario Description.
- domain
Name PtsConfig Scenario Domain Name Config - Domain name resolution configuration.
- extensions List<String>
- deprecated.
- load
Pts
Scenario Load - Pressure allocation.
- name String
- Pts Scenario name.
- plugins
List<Pts
Scenario Plugin> - SLA strategy.
- project
Id String - Project id.
- protocols
List<Pts
Scenario Protocol> - Protocol file path.
- pts
Scenario StringId - ID of the resource.
- request
Files List<PtsScenario Request File> - Request file path.
- sla
Policy PtsScenario Sla Policy - SLA strategy.
- status Double
- Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
- sub
Account StringUin - Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
- test
Scripts List<PtsScenario Test Script> - 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.
- updated
At String - Scene modification time.
- app
Id number - App ID Note: this field may return null, indicating that a valid value cannot be obtained.
- created
At string - Scene creation time.
- cron
Id string - cron job ID.
- datasets
Pts
Scenario Dataset[] - Test data set.
- description string
- Pts Scenario Description.
- domain
Name PtsConfig Scenario Domain Name Config - Domain name resolution configuration.
- extensions string[]
- deprecated.
- load
Pts
Scenario Load - Pressure allocation.
- name string
- Pts Scenario name.
- plugins
Pts
Scenario Plugin[] - SLA strategy.
- project
Id string - Project id.
- protocols
Pts
Scenario Protocol[] - Protocol file path.
- pts
Scenario stringId - ID of the resource.
- request
Files PtsScenario Request File[] - Request file path.
- sla
Policy PtsScenario Sla Policy - SLA strategy.
- status number
- Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
- sub
Account stringUin - Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
- test
Scripts PtsScenario Test Script[] - 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.
- updated
At 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[Pts
Scenario Dataset Args] - Test data set.
- description str
- Pts Scenario Description.
- domain_
name_ Ptsconfig Scenario Domain Name Config Args - Domain name resolution configuration.
- extensions Sequence[str]
- deprecated.
- load
Pts
Scenario Load Args - Pressure allocation.
- name str
- Pts Scenario name.
- plugins
Sequence[Pts
Scenario Plugin Args] - SLA strategy.
- project_
id str - Project id.
- protocols
Sequence[Pts
Scenario Protocol Args] - Protocol file path.
- pts_
scenario_ strid - ID of the resource.
- request_
files Sequence[PtsScenario Request File Args] - Request file path.
- sla_
policy PtsScenario Sla Policy Args - SLA strategy.
- status float
- Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
- sub_
account_ struin - Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
- test_
scripts Sequence[PtsScenario Test Script Args] - 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.
- app
Id Number - App ID Note: this field may return null, indicating that a valid value cannot be obtained.
- created
At String - Scene creation time.
- cron
Id String - cron job ID.
- datasets List<Property Map>
- Test data set.
- description String
- Pts Scenario Description.
- domain
Name Property MapConfig - Domain name resolution configuration.
- extensions List<String>
- deprecated.
- load Property Map
- Pressure allocation.
- name String
- Pts Scenario name.
- plugins List<Property Map>
- SLA strategy.
- project
Id String - Project id.
- protocols List<Property Map>
- Protocol file path.
- pts
Scenario StringId - ID of the resource.
- request
Files List<Property Map> - Request file path.
- sla
Policy Property Map - SLA strategy.
- status Number
- Scene statu Note: this field may return null, indicating that a valid value cannot be obtained.
- sub
Account StringUin - Sub-user ID Note: this field may return null, indicating that a valid value cannot be obtained.
- test
Scripts 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.
- updated
At String - Scene modification time.
Supporting Types
PtsScenarioDataset, PtsScenarioDatasetArgs
- Header
In boolFile - 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.
- File
Id string - File ID.
- Head
Lines List<string> - Header data row.
- Header
Columns List<string> - Parameter name array.
- Line
Count double - Number of file lines.
- Size double
- Number of file bytes.
- Tail
Lines List<string> - Trailing data row.
- Type string
- File type.
- Updated
At string - Update time.
- Header
In boolFile - 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.
- File
Id string - File ID.
- Head
Lines []string - Header data row.
- Header
Columns []string - Parameter name array.
- Line
Count float64 - Number of file lines.
- Size float64
- Number of file bytes.
- Tail
Lines []string - Trailing data row.
- Type string
- File type.
- Updated
At string - Update time.
- header
In BooleanFile - 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.
- file
Id String - File ID.
- head
Lines List<String> - Header data row.
- header
Columns List<String> - Parameter name array.
- line
Count Double - Number of file lines.
- size Double
- Number of file bytes.
- tail
Lines List<String> - Trailing data row.
- type String
- File type.
- updated
At String - Update time.
- header
In booleanFile - 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.
- file
Id string - File ID.
- head
Lines string[] - Header data row.
- header
Columns string[] - Parameter name array.
- line
Count number - Number of file lines.
- size number
- Number of file bytes.
- tail
Lines string[] - Trailing data row.
- type string
- File type.
- updated
At string - Update time.
- header_
in_ boolfile - 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.
- header
In BooleanFile - 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.
- file
Id String - File ID.
- head
Lines List<String> - Header data row.
- header
Columns List<String> - Parameter name array.
- line
Count Number - Number of file lines.
- size Number
- Number of file bytes.
- tail
Lines List<String> - Trailing data row.
- type String
- File type.
- updated
At String - Update time.
PtsScenarioDomainNameConfig, PtsScenarioDomainNameConfigArgs
- Dns
Config PtsScenario Domain Name Config Dns Config - DNS configuration.
- Host
Aliases List<PtsScenario Domain Name Config Host Alias> - Domain name binding configuration.
- Dns
Config PtsScenario Domain Name Config Dns Config - DNS configuration.
- Host
Aliases []PtsScenario Domain Name Config Host Alias - Domain name binding configuration.
- dns
Config PtsScenario Domain Name Config Dns Config - DNS configuration.
- host
Aliases List<PtsScenario Domain Name Config Host Alias> - Domain name binding configuration.
- dns
Config PtsScenario Domain Name Config Dns Config - DNS configuration.
- host
Aliases PtsScenario Domain Name Config Host Alias[] - Domain name binding configuration.
- dns_
config PtsScenario Domain Name Config Dns Config - DNS configuration.
- host_
aliases Sequence[PtsScenario Domain Name Config Host Alias] - Domain name binding configuration.
- dns
Config Property Map - DNS configuration.
- host
Aliases 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
- host_
names Sequence[str] - List of domain names to be bound.
- ip str
- The IP address to be bound.
PtsScenarioLoad, PtsScenarioLoadArgs
- Geo
Regions List<PtsLoad Distributions Scenario Load Geo Regions Load Distribution> - Pressure distribution.
- Load
Spec PtsScenario Load Load Spec - Pressure allocation.
- Vpc
Load PtsDistribution Scenario Load Vpc Load Distribution - Source of stress.
- Geo
Regions []PtsLoad Distributions Scenario Load Geo Regions Load Distribution - Pressure distribution.
- Load
Spec PtsScenario Load Load Spec - Pressure allocation.
- Vpc
Load PtsDistribution Scenario Load Vpc Load Distribution - Source of stress.
- geo
Regions List<PtsLoad Distributions Scenario Load Geo Regions Load Distribution> - Pressure distribution.
- load
Spec PtsScenario Load Load Spec - Pressure allocation.
- vpc
Load PtsDistribution Scenario Load Vpc Load Distribution - Source of stress.
- geo
Regions PtsLoad Distributions Scenario Load Geo Regions Load Distribution[] - Pressure distribution.
- load
Spec PtsScenario Load Load Spec - Pressure allocation.
- vpc
Load PtsDistribution Scenario Load Vpc Load Distribution - Source of stress.
- geo_
regions_ Sequence[Ptsload_ distributions Scenario Load Geo Regions Load Distribution] - Pressure distribution.
- load_
spec PtsScenario Load Load Spec - Pressure allocation.
- vpc_
load_ Ptsdistribution Scenario Load Vpc Load Distribution - Source of stress.
- geo
Regions List<Property Map>Load Distributions - Pressure distribution.
- load
Spec Property Map - Pressure allocation.
- vpc
Load Property MapDistribution - Source of stress.
PtsScenarioLoadGeoRegionsLoadDistribution, PtsScenarioLoadGeoRegionsLoadDistributionArgs
- Region
Id double - Regional ID.
- Percentage double
- Percentage.
- Region string
- Region.
- Region
Id float64 - Regional ID.
- Percentage float64
- Percentage.
- Region string
- Region.
- region
Id Double - Regional ID.
- percentage Double
- Percentage.
- region String
- Region.
- region
Id number - Regional ID.
- percentage number
- Percentage.
- region string
- Region.
- region_
id float - Regional ID.
- percentage float
- Percentage.
- region str
- Region.
- region
Id Number - Regional ID.
- percentage Number
- Percentage.
- region String
- Region.
PtsScenarioLoadLoadSpec, PtsScenarioLoadLoadSpecArgs
- Concurrency
Pts
Scenario Load Load Spec Concurrency - Configuration of concurrent pressure mode.
- Requests
Per PtsSecond Scenario Load Load Spec Requests Per Second - Configuration of RPS pressure mode.
- Script
Origin PtsScenario Load Load Spec Script Origin - Built-in stress mode in script.
- Concurrency
Pts
Scenario Load Load Spec Concurrency - Configuration of concurrent pressure mode.
- Requests
Per PtsSecond Scenario Load Load Spec Requests Per Second - Configuration of RPS pressure mode.
- Script
Origin PtsScenario Load Load Spec Script Origin - Built-in stress mode in script.
- concurrency
Pts
Scenario Load Load Spec Concurrency - Configuration of concurrent pressure mode.
- requests
Per PtsSecond Scenario Load Load Spec Requests Per Second - Configuration of RPS pressure mode.
- script
Origin PtsScenario Load Load Spec Script Origin - Built-in stress mode in script.
- concurrency
Pts
Scenario Load Load Spec Concurrency - Configuration of concurrent pressure mode.
- requests
Per PtsSecond Scenario Load Load Spec Requests Per Second - Configuration of RPS pressure mode.
- script
Origin PtsScenario Load Load Spec Script Origin - Built-in stress mode in script.
- concurrency
Pts
Scenario Load Load Spec Concurrency - Configuration of concurrent pressure mode.
- requests_
per_ Ptssecond Scenario Load Load Spec Requests Per Second - Configuration of RPS pressure mode.
- script_
origin PtsScenario Load Load Spec Script Origin - Built-in stress mode in script.
- concurrency Property Map
- Configuration of concurrent pressure mode.
- requests
Per Property MapSecond - Configuration of RPS pressure mode.
- script
Origin Property Map - Built-in stress mode in script.
PtsScenarioLoadLoadSpecConcurrency, PtsScenarioLoadLoadSpecConcurrencyArgs
- Graceful
Stop doubleSeconds - Wait time for graceful termination of the task.
- Iteration
Count double - Number of runs.
- Max
Requests doublePer Second - Maximum RPS.
- Stages
List<Pts
Scenario Load Load Spec Concurrency Stage> - Multi-phase configuration array.
- Graceful
Stop float64Seconds - Wait time for graceful termination of the task.
- Iteration
Count float64 - Number of runs.
- Max
Requests float64Per Second - Maximum RPS.
- Stages
[]Pts
Scenario Load Load Spec Concurrency Stage - Multi-phase configuration array.
- graceful
Stop DoubleSeconds - Wait time for graceful termination of the task.
- iteration
Count Double - Number of runs.
- max
Requests DoublePer Second - Maximum RPS.
- stages
List<Pts
Scenario Load Load Spec Concurrency Stage> - Multi-phase configuration array.
- graceful
Stop numberSeconds - Wait time for graceful termination of the task.
- iteration
Count number - Number of runs.
- max
Requests numberPer Second - Maximum RPS.
- stages
Pts
Scenario Load Load Spec Concurrency Stage[] - Multi-phase configuration array.
- graceful_
stop_ floatseconds - Wait time for graceful termination of the task.
- iteration_
count float - Number of runs.
- max_
requests_ floatper_ second - Maximum RPS.
- stages
Sequence[Pts
Scenario Load Load Spec Concurrency Stage] - Multi-phase configuration array.
- graceful
Stop NumberSeconds - Wait time for graceful termination of the task.
- iteration
Count Number - Number of runs.
- max
Requests NumberPer Second - Maximum RPS.
- stages List<Property Map>
- Multi-phase configuration array.
PtsScenarioLoadLoadSpecConcurrencyStage, PtsScenarioLoadLoadSpecConcurrencyStageArgs
- Duration
Seconds double - Pressure time.
- Target
Virtual doubleUsers - Number of virtual users.
- Duration
Seconds float64 - Pressure time.
- Target
Virtual float64Users - Number of virtual users.
- duration
Seconds Double - Pressure time.
- target
Virtual DoubleUsers - Number of virtual users.
- duration
Seconds number - Pressure time.
- target
Virtual numberUsers - Number of virtual users.
- duration_
seconds float - Pressure time.
- target_
virtual_ floatusers - Number of virtual users.
- duration
Seconds Number - Pressure time.
- target
Virtual NumberUsers - Number of virtual users.
PtsScenarioLoadLoadSpecRequestsPerSecond, PtsScenarioLoadLoadSpecRequestsPerSecondArgs
- Duration
Seconds double - Pressure time.
- Graceful
Stop doubleSeconds - Elegant shutdown waiting time.
- Max
Requests doublePer Second - Maximum RPS.
- Resources double
- Number of resources.
- Start
Requests doublePer Second - Initial RPS.
- Target
Requests doublePer Second - Target RPS, invalid input parameter.
- Duration
Seconds float64 - Pressure time.
- Graceful
Stop float64Seconds - Elegant shutdown waiting time.
- Max
Requests float64Per Second - Maximum RPS.
- Resources float64
- Number of resources.
- Start
Requests float64Per Second - Initial RPS.
- Target
Requests float64Per Second - Target RPS, invalid input parameter.
- duration
Seconds Double - Pressure time.
- graceful
Stop DoubleSeconds - Elegant shutdown waiting time.
- max
Requests DoublePer Second - Maximum RPS.
- resources Double
- Number of resources.
- start
Requests DoublePer Second - Initial RPS.
- target
Requests DoublePer Second - Target RPS, invalid input parameter.
- duration
Seconds number - Pressure time.
- graceful
Stop numberSeconds - Elegant shutdown waiting time.
- max
Requests numberPer Second - Maximum RPS.
- resources number
- Number of resources.
- start
Requests numberPer Second - Initial RPS.
- target
Requests numberPer Second - Target RPS, invalid input parameter.
- duration_
seconds float - Pressure time.
- graceful_
stop_ floatseconds - Elegant shutdown waiting time.
- max_
requests_ floatper_ second - Maximum RPS.
- resources float
- Number of resources.
- start_
requests_ floatper_ second - Initial RPS.
- target_
requests_ floatper_ second - Target RPS, invalid input parameter.
- duration
Seconds Number - Pressure time.
- graceful
Stop NumberSeconds - Elegant shutdown waiting time.
- max
Requests NumberPer Second - Maximum RPS.
- resources Number
- Number of resources.
- start
Requests NumberPer Second - Initial RPS.
- target
Requests NumberPer Second - Target RPS, invalid input parameter.
PtsScenarioLoadLoadSpecScriptOrigin, PtsScenarioLoadLoadSpecScriptOriginArgs
- Duration
Seconds double - Pressure testing time.
- Machine
Number double - Number of machines.
- Machine
Specification string - Machine specification.
- Duration
Seconds float64 - Pressure testing time.
- Machine
Number float64 - Number of machines.
- Machine
Specification string - Machine specification.
- duration
Seconds Double - Pressure testing time.
- machine
Number Double - Number of machines.
- machine
Specification String - Machine specification.
- duration
Seconds number - Pressure testing time.
- machine
Number number - Number of machines.
- machine
Specification string - Machine specification.
- duration_
seconds float - Pressure testing time.
- machine_
number float - Number of machines.
- machine_
specification str - Machine specification.
- duration
Seconds Number - Pressure testing time.
- machine
Number Number - Number of machines.
- machine
Specification String - Machine specification.
PtsScenarioLoadVpcLoadDistribution, PtsScenarioLoadVpcLoadDistributionArgs
- region_
id float - Regional ID.
- region str
- Region.
- subnet_
ids Sequence[str] - Subnet ID list.
- vpc_
id str - VPC ID.
PtsScenarioPlugin, PtsScenarioPluginArgs
- file_
id str - File id.
- name str
- File name.
- size float
- File size.
- type str
- File type.
- updated_
at str - Update time.
PtsScenarioProtocol, PtsScenarioProtocolArgs
- file_
id str - File ID.
- name str
- Protocol name.
- size float
- File name.
- type str
- File type.
- updated_
at str - Update time.
PtsScenarioRequestFile, PtsScenarioRequestFileArgs
- file_
id str - File id.
- name str
- File name.
- size float
- File size.
- type str
- File type.
- updated_
at str - Update time.
PtsScenarioSlaPolicy, PtsScenarioSlaPolicyArgs
- Alert
Channel PtsScenario Sla Policy Alert Channel - Alarm notification channel.
- Sla
Rules List<PtsScenario Sla Policy Sla Rule> - SLA rules.
- Alert
Channel PtsScenario Sla Policy Alert Channel - Alarm notification channel.
- Sla
Rules []PtsScenario Sla Policy Sla Rule - SLA rules.
- alert
Channel PtsScenario Sla Policy Alert Channel - Alarm notification channel.
- sla
Rules List<PtsScenario Sla Policy Sla Rule> - SLA rules.
- alert
Channel PtsScenario Sla Policy Alert Channel - Alarm notification channel.
- sla
Rules PtsScenario Sla Policy Sla Rule[] - SLA rules.
- alert_
channel PtsScenario Sla Policy Alert Channel - Alarm notification channel.
- sla_
rules Sequence[PtsScenario Sla Policy Sla Rule] - SLA rules.
- alert
Channel Property Map - Alarm notification channel.
- sla
Rules List<Property Map> - SLA rules.
PtsScenarioSlaPolicyAlertChannel, PtsScenarioSlaPolicyAlertChannelArgs
- Amp
Consumer stringId - AMP consumer ID.
- Notice
Id string - Notification template ID.
- Amp
Consumer stringId - AMP consumer ID.
- Notice
Id string - Notification template ID.
- amp
Consumer StringId - AMP consumer ID.
- notice
Id String - Notification template ID.
- amp
Consumer stringId - AMP consumer ID.
- notice
Id string - Notification template ID.
- amp_
consumer_ strid - AMP consumer ID.
- notice_
id str - Notification template ID.
- amp
Consumer StringId - AMP consumer ID.
- notice
Id String - Notification template ID.
PtsScenarioSlaPolicySlaRule, PtsScenarioSlaPolicySlaRuleArgs
- Abort
Flag 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.
- Label
Filters List<PtsScenario Sla Policy Sla Rule Label Filter> - tag.
- Metric string
- Pressure test index.
- Value double
- Threshold value.
- Abort
Flag 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.
- Label
Filters []PtsScenario Sla Policy Sla Rule Label Filter - tag.
- Metric string
- Pressure test index.
- Value float64
- Threshold value.
- abort
Flag 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.
- label
Filters List<PtsScenario Sla Policy Sla Rule Label Filter> - tag.
- metric String
- Pressure test index.
- value Double
- Threshold value.
- abort
Flag 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.
- label
Filters PtsScenario Sla Policy Sla Rule Label Filter[] - 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[PtsScenario Sla Policy Sla Rule Label Filter] - tag.
- metric str
- Pressure test index.
- value float
- Threshold value.
- abort
Flag 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.
- label
Filters List<Property Map> - tag.
- metric String
- Pressure test index.
- value Number
- Threshold value.
PtsScenarioSlaPolicySlaRuleLabelFilter, PtsScenarioSlaPolicySlaRuleLabelFilterArgs
- Label
Name string - Label name.
- Label
Value string - Label value.
- Label
Name string - Label name.
- Label
Value string - Label value.
- label
Name String - Label name.
- label
Value String - Label value.
- label
Name string - Label name.
- label
Value string - Label value.
- label_
name str - Label name.
- label_
value str - Label value.
- label
Name String - Label name.
- label
Value String - Label value.
PtsScenarioTestScript, PtsScenarioTestScriptArgs
- Encoded
Content string - Base64 encoded file content.
- Encoded
Http stringArchive - Base64 encoded har structure.
- Load
Weight double - Script weight, range 1-100.
- Name string
- File name.
- Size double
- File size.
- Type string
- File type.
- Updated
At string - Update time.
- Encoded
Content string - Base64 encoded file content.
- Encoded
Http stringArchive - Base64 encoded har structure.
- Load
Weight float64 - Script weight, range 1-100.
- Name string
- File name.
- Size float64
- File size.
- Type string
- File type.
- Updated
At string - Update time.
- encoded
Content String - Base64 encoded file content.
- encoded
Http StringArchive - Base64 encoded har structure.
- load
Weight Double - Script weight, range 1-100.
- name String
- File name.
- size Double
- File size.
- type String
- File type.
- updated
At String - Update time.
- encoded
Content string - Base64 encoded file content.
- encoded
Http stringArchive - Base64 encoded har structure.
- load
Weight number - Script weight, range 1-100.
- name string
- File name.
- size number
- File size.
- type string
- File type.
- updated
At string - Update time.
- encoded_
content str - Base64 encoded file content.
- encoded_
http_ strarchive - 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.
- encoded
Content String - Base64 encoded file content.
- encoded
Http StringArchive - Base64 encoded har structure.
- load
Weight Number - Script weight, range 1-100.
- name String
- File name.
- size Number
- File size.
- type String
- File type.
- updated
At 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.