Documentation ¶
Index ¶
- Constants
- func NewParams() openapi.Params
- type API
- func (api API) CreateTransaction(ScriptId int, TransactionName string, optional openapi.M) (*CreateTransactionResponse, error)
- func (api API) GetKeySecret(optional openapi.M) (*GetKeySecretResponse, error)
- func (api API) GetScript(optional openapi.M) (*GetScriptResponse, error)
- func (api API) GetTasks(optional openapi.M) (*GetTasksResponse, error)
- func (api API) ReportLogSample(LogSample string, ScenarioId int, Wskey string, optional openapi.M) (*openapi.Response, error)
- func (api API) ReportTestSample(TestSample string, optional openapi.M) (*openapi.Response, error)
- func (api API) ReportVuser(GmtCreated int64, ScenarioId, Vuser int, Wskey string, optional openapi.M) (*openapi.Response, error)
- func (api API) SendWangWang(Msg, Title, To string, optional openapi.M) (*openapi.Response, error)
- func (api API) SetScenarioStatus(NodeIp string, ScenarioId, Status int, Wskey string, optional openapi.M) (*openapi.Response, error)
- func (api API) SetTaskStatus(Status, Wskey string, optional openapi.M) (*openapi.Response, error)
- func (api API) StopTask(TaskId int, optional openapi.M) (*openapi.Response, error)
- type CreateTransactionResponse
- type GetKeySecretResponse
- type GetScriptResponse
- type GetTasksResponse
Constants ¶
const ( Product = "PTS" Style = "RPC" Version = "2015-08-01" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
openapi.Service
}
func (API) CreateTransaction ¶
func (api API) CreateTransaction(ScriptId int, TransactionName string, optional openapi.M) (*CreateTransactionResponse, error)
CreateTransaction version 2015-08-01
required parameters:
name: ScriptId, type: int name: TransactionName, type: string
optional parameters:
name: _method, type: string, optional values: GET|POST name: _region, type: string name: _scheme, type: string, optional values: http|https
func (API) GetKeySecret ¶
func (api API) GetKeySecret(optional openapi.M) (*GetKeySecretResponse, error)
GetKeySecret version 2015-08-01
optional parameters:
name: _method, type: string, optional values: GET|POST name: _region, type: string name: _scheme, type: string, optional values: http|https
func (API) GetScript ¶
func (api API) GetScript(optional openapi.M) (*GetScriptResponse, error)
GetScript version 2015-08-01
optional parameters:
name: ScriptId, type: int name: Tfsname, type: string name: _method, type: string, optional values: GET|POST name: _region, type: string name: _scheme, type: string, optional values: http|https
func (API) GetTasks ¶
func (api API) GetTasks(optional openapi.M) (*GetTasksResponse, error)
GetTasks version 2015-08-01
optional parameters:
name: Status, type: string name: _method, type: string, optional values: GET|POST name: _region, type: string name: _scheme, type: string, optional values: http|https
func (API) ReportLogSample ¶
func (api API) ReportLogSample(LogSample string, ScenarioId int, Wskey string, optional openapi.M) (*openapi.Response, error)
ReportLogSample version 2015-08-01
required parameters:
name: LogSample, type: string name: ScenarioId, type: int name: Wskey, type: string
optional parameters:
name: _method, type: string, optional values: GET|POST name: _region, type: string name: _scheme, type: string, optional values: http|https
func (API) ReportTestSample ¶
ReportTestSample version 2015-08-01
required parameters:
name: TestSample, type: string
optional parameters:
name: _method, type: string, optional values: GET|POST name: _region, type: string name: _scheme, type: string, optional values: http|https
func (API) ReportVuser ¶
func (api API) ReportVuser(GmtCreated int64, ScenarioId, Vuser int, Wskey string, optional openapi.M) (*openapi.Response, error)
ReportVuser version 2015-08-01
required parameters:
name: GmtCreated, type: int64 name: ScenarioId, type: int name: Vuser, type: int name: Wskey, type: string
optional parameters:
name: _method, type: string, optional values: GET|POST name: _region, type: string name: _scheme, type: string, optional values: http|https
func (API) SendWangWang ¶
SendWangWang version 2015-08-01
required parameters:
name: Msg, type: string name: Title, type: string name: To, type: string
optional parameters:
name: _method, type: string, optional values: GET|POST name: _region, type: string name: _scheme, type: string, optional values: http|https
func (API) SetScenarioStatus ¶
func (api API) SetScenarioStatus(NodeIp string, ScenarioId, Status int, Wskey string, optional openapi.M) (*openapi.Response, error)
SetScenarioStatus version 2015-08-01
required parameters:
name: NodeIp, type: string name: ScenarioId, type: int name: Status, type: int name: Wskey, type: string
optional parameters:
name: _method, type: string, optional values: GET|POST name: _region, type: string name: _scheme, type: string, optional values: http|https
func (API) SetTaskStatus ¶
SetTaskStatus version 2015-08-01
required parameters:
name: Status, type: string name: Wskey, type: string
optional parameters:
name: _method, type: string, optional values: GET|POST name: _region, type: string name: _scheme, type: string, optional values: http|https
func (API) StopTask ¶
StopTask version 2015-08-01
required parameters:
name: TaskId, type: int
optional parameters:
name: Msg, type: string name: Type, type: string name: _method, type: string, optional values: GET|POST name: _region, type: string name: _scheme, type: string, optional values: http|https
type CreateTransactionResponse ¶
type CreateTransactionResponse struct {
TransactionId int
}
CreateTransactionResponse represents the response of the api CreateTransaction.
type GetKeySecretResponse ¶
GetKeySecretResponse represents the response of the api GetKeySecret.
type GetScriptResponse ¶
type GetScriptResponse struct {
Script string
}
GetScriptResponse represents the response of the api GetScript.
type GetTasksResponse ¶
type GetTasksResponse struct {
Tasks string
}
GetTasksResponse represents the response of the api GetTasks.