Documentation
¶
Index ¶
- Variables
- type Client
- type ClientImpl
- func (client *ClientImpl) CreateAgentGroup(ctx context.Context, args CreateAgentGroupArgs) (*testservice.AgentGroup, error)
- func (client *ClientImpl) CreateTestDefinition(ctx context.Context, args CreateTestDefinitionArgs) (*testservice.TestDefinition, error)
- func (client *ClientImpl) CreateTestDrop(ctx context.Context, args CreateTestDropArgs) (*testservice.TestDrop, error)
- func (client *ClientImpl) CreateTestRun(ctx context.Context, args CreateTestRunArgs) (*testservice.TestRun, error)
- func (client *ClientImpl) DeleteStaticAgent(ctx context.Context, args DeleteStaticAgentArgs) (*string, error)
- func (client *ClientImpl) GetAgentGroups(ctx context.Context, args GetAgentGroupsArgs) (interface{}, error)
- func (client *ClientImpl) GetApplication(ctx context.Context, args GetApplicationArgs) (*testservice.Application, error)
- func (client *ClientImpl) GetApplicationCounters(ctx context.Context, args GetApplicationCountersArgs) (*[]testservice.ApplicationCounters, error)
- func (client *ClientImpl) GetApplications(ctx context.Context, args GetApplicationsArgs) (*[]testservice.Application, error)
- func (client *ClientImpl) GetCounterSamples(ctx context.Context, args GetCounterSamplesArgs) (*testservice.CounterSamplesResult, error)
- func (client *ClientImpl) GetCounters(ctx context.Context, args GetCountersArgs) (*[]testservice.TestRunCounterInstance, error)
- func (client *ClientImpl) GetLoadTestResult(ctx context.Context, args GetLoadTestResultArgs) (*testservice.TestResults, error)
- func (client *ClientImpl) GetLoadTestRunErrors(ctx context.Context, args GetLoadTestRunErrorsArgs) (*testservice.LoadTestErrors, error)
- func (client *ClientImpl) GetPlugin(ctx context.Context, args GetPluginArgs) (*testservice.ApplicationType, error)
- func (client *ClientImpl) GetPlugins(ctx context.Context, args GetPluginsArgs) (*[]testservice.ApplicationType, error)
- func (client *ClientImpl) GetStaticAgents(ctx context.Context, args GetStaticAgentsArgs) (interface{}, error)
- func (client *ClientImpl) GetTestDefinition(ctx context.Context, args GetTestDefinitionArgs) (*testservice.TestDefinition, error)
- func (client *ClientImpl) GetTestDefinitions(ctx context.Context, args GetTestDefinitionsArgs) (*[]testservice.TestDefinitionBasic, error)
- func (client *ClientImpl) GetTestDrop(ctx context.Context, args GetTestDropArgs) (*testservice.TestDrop, error)
- func (client *ClientImpl) GetTestRun(ctx context.Context, args GetTestRunArgs) (*testservice.TestRun, error)
- func (client *ClientImpl) GetTestRunMessages(ctx context.Context, args GetTestRunMessagesArgs) (*[]testservice.TestRunMessage, error)
- func (client *ClientImpl) GetTestRuns(ctx context.Context, args GetTestRunsArgs) (interface{}, error)
- func (client *ClientImpl) UpdateTestDefinition(ctx context.Context, args UpdateTestDefinitionArgs) (*testservice.TestDefinition, error)
- func (client *ClientImpl) UpdateTestRun(ctx context.Context, args UpdateTestRunArgs) error
- type CreateAgentGroupArgs
- type CreateTestDefinitionArgs
- type CreateTestDropArgs
- type CreateTestRunArgs
- type DeleteStaticAgentArgs
- type GetAgentGroupsArgs
- type GetApplicationArgs
- type GetApplicationCountersArgs
- type GetApplicationsArgs
- type GetCounterSamplesArgs
- type GetCountersArgs
- type GetLoadTestResultArgs
- type GetLoadTestRunErrorsArgs
- type GetPluginArgs
- type GetPluginsArgs
- type GetStaticAgentsArgs
- type GetTestDefinitionArgs
- type GetTestDefinitionsArgs
- type GetTestDropArgs
- type GetTestRunArgs
- type GetTestRunMessagesArgs
- type GetTestRunsArgs
- type UpdateTestDefinitionArgs
- type UpdateTestRunArgs
Constants ¶
This section is empty.
Variables ¶
var ResourceAreaId, _ = uuid.Parse("7ae6d0a6-cda5-44cf-a261-28c392bed25c")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
CreateAgentGroup(context.Context, CreateAgentGroupArgs) (*testservice.AgentGroup, error)
CreateTestDefinition(context.Context, CreateTestDefinitionArgs) (*testservice.TestDefinition, error)
CreateTestDrop(context.Context, CreateTestDropArgs) (*testservice.TestDrop, error)
CreateTestRun(context.Context, CreateTestRunArgs) (*testservice.TestRun, error)
DeleteStaticAgent(context.Context, DeleteStaticAgentArgs) (*string, error)
GetAgentGroups(context.Context, GetAgentGroupsArgs) (interface{}, error)
GetApplication(context.Context, GetApplicationArgs) (*testservice.Application, error)
GetApplicationCounters(context.Context, GetApplicationCountersArgs) (*[]testservice.ApplicationCounters, error)
GetApplications(context.Context, GetApplicationsArgs) (*[]testservice.Application, error)
GetCounters(context.Context, GetCountersArgs) (*[]testservice.TestRunCounterInstance, error)
GetCounterSamples(context.Context, GetCounterSamplesArgs) (*testservice.CounterSamplesResult, error)
GetLoadTestResult(context.Context, GetLoadTestResultArgs) (*testservice.TestResults, error)
GetLoadTestRunErrors(context.Context, GetLoadTestRunErrorsArgs) (*testservice.LoadTestErrors, error)
GetPlugin(context.Context, GetPluginArgs) (*testservice.ApplicationType, error)
GetPlugins(context.Context, GetPluginsArgs) (*[]testservice.ApplicationType, error)
GetStaticAgents(context.Context, GetStaticAgentsArgs) (interface{}, error)
GetTestDefinition(context.Context, GetTestDefinitionArgs) (*testservice.TestDefinition, error)
GetTestDefinitions(context.Context, GetTestDefinitionsArgs) (*[]testservice.TestDefinitionBasic, error)
GetTestDrop(context.Context, GetTestDropArgs) (*testservice.TestDrop, error)
GetTestRun(context.Context, GetTestRunArgs) (*testservice.TestRun, error)
GetTestRunMessages(context.Context, GetTestRunMessagesArgs) (*[]testservice.TestRunMessage, error)
// Returns test runs based on the filter specified. Returns all runs of the tenant if there is no filter.
GetTestRuns(context.Context, GetTestRunsArgs) (interface{}, error)
UpdateTestDefinition(context.Context, UpdateTestDefinitionArgs) (*testservice.TestDefinition, error)
UpdateTestRun(context.Context, UpdateTestRunArgs) error
}
func NewClient ¶
func NewClient(ctx context.Context, connection *azuredevops.Connection) (Client, error)
type ClientImpl ¶
type ClientImpl struct {
Client azuredevops.Client
}
func (*ClientImpl) CreateAgentGroup ¶
func (client *ClientImpl) CreateAgentGroup(ctx context.Context, args CreateAgentGroupArgs) (*testservice.AgentGroup, error)
func (*ClientImpl) CreateTestDefinition ¶
func (client *ClientImpl) CreateTestDefinition(ctx context.Context, args CreateTestDefinitionArgs) (*testservice.TestDefinition, error)
func (*ClientImpl) CreateTestDrop ¶
func (client *ClientImpl) CreateTestDrop(ctx context.Context, args CreateTestDropArgs) (*testservice.TestDrop, error)
func (*ClientImpl) CreateTestRun ¶
func (client *ClientImpl) CreateTestRun(ctx context.Context, args CreateTestRunArgs) (*testservice.TestRun, error)
func (*ClientImpl) DeleteStaticAgent ¶
func (client *ClientImpl) DeleteStaticAgent(ctx context.Context, args DeleteStaticAgentArgs) (*string, error)
func (*ClientImpl) GetAgentGroups ¶
func (client *ClientImpl) GetAgentGroups(ctx context.Context, args GetAgentGroupsArgs) (interface{}, error)
func (*ClientImpl) GetApplication ¶
func (client *ClientImpl) GetApplication(ctx context.Context, args GetApplicationArgs) (*testservice.Application, error)
func (*ClientImpl) GetApplicationCounters ¶
func (client *ClientImpl) GetApplicationCounters(ctx context.Context, args GetApplicationCountersArgs) (*[]testservice.ApplicationCounters, error)
func (*ClientImpl) GetApplications ¶
func (client *ClientImpl) GetApplications(ctx context.Context, args GetApplicationsArgs) (*[]testservice.Application, error)
func (*ClientImpl) GetCounterSamples ¶
func (client *ClientImpl) GetCounterSamples(ctx context.Context, args GetCounterSamplesArgs) (*testservice.CounterSamplesResult, error)
func (*ClientImpl) GetCounters ¶
func (client *ClientImpl) GetCounters(ctx context.Context, args GetCountersArgs) (*[]testservice.TestRunCounterInstance, error)
func (*ClientImpl) GetLoadTestResult ¶
func (client *ClientImpl) GetLoadTestResult(ctx context.Context, args GetLoadTestResultArgs) (*testservice.TestResults, error)
func (*ClientImpl) GetLoadTestRunErrors ¶
func (client *ClientImpl) GetLoadTestRunErrors(ctx context.Context, args GetLoadTestRunErrorsArgs) (*testservice.LoadTestErrors, error)
func (*ClientImpl) GetPlugin ¶
func (client *ClientImpl) GetPlugin(ctx context.Context, args GetPluginArgs) (*testservice.ApplicationType, error)
func (*ClientImpl) GetPlugins ¶
func (client *ClientImpl) GetPlugins(ctx context.Context, args GetPluginsArgs) (*[]testservice.ApplicationType, error)
func (*ClientImpl) GetStaticAgents ¶
func (client *ClientImpl) GetStaticAgents(ctx context.Context, args GetStaticAgentsArgs) (interface{}, error)
func (*ClientImpl) GetTestDefinition ¶
func (client *ClientImpl) GetTestDefinition(ctx context.Context, args GetTestDefinitionArgs) (*testservice.TestDefinition, error)
func (*ClientImpl) GetTestDefinitions ¶
func (client *ClientImpl) GetTestDefinitions(ctx context.Context, args GetTestDefinitionsArgs) (*[]testservice.TestDefinitionBasic, error)
func (*ClientImpl) GetTestDrop ¶
func (client *ClientImpl) GetTestDrop(ctx context.Context, args GetTestDropArgs) (*testservice.TestDrop, error)
func (*ClientImpl) GetTestRun ¶
func (client *ClientImpl) GetTestRun(ctx context.Context, args GetTestRunArgs) (*testservice.TestRun, error)
func (*ClientImpl) GetTestRunMessages ¶
func (client *ClientImpl) GetTestRunMessages(ctx context.Context, args GetTestRunMessagesArgs) (*[]testservice.TestRunMessage, error)
func (*ClientImpl) GetTestRuns ¶
func (client *ClientImpl) GetTestRuns(ctx context.Context, args GetTestRunsArgs) (interface{}, error)
Returns test runs based on the filter specified. Returns all runs of the tenant if there is no filter.
func (*ClientImpl) UpdateTestDefinition ¶
func (client *ClientImpl) UpdateTestDefinition(ctx context.Context, args UpdateTestDefinitionArgs) (*testservice.TestDefinition, error)
func (*ClientImpl) UpdateTestRun ¶
func (client *ClientImpl) UpdateTestRun(ctx context.Context, args UpdateTestRunArgs) error
type CreateAgentGroupArgs ¶
type CreateAgentGroupArgs struct {
// (required) Agent group to be created
Group *testservice.AgentGroup
}
Arguments for the CreateAgentGroup function
type CreateTestDefinitionArgs ¶
type CreateTestDefinitionArgs struct {
// (required) Test definition to be created
TestDefinition *testservice.TestDefinition
}
Arguments for the CreateTestDefinition function
type CreateTestDropArgs ¶
type CreateTestDropArgs struct {
// (required) Test drop to be created
WebTestDrop *testservice.TestDrop
}
Arguments for the CreateTestDrop function
type CreateTestRunArgs ¶
type CreateTestRunArgs struct {
// (required)
WebTestRun *testservice.TestRun
}
Arguments for the CreateTestRun function
type DeleteStaticAgentArgs ¶
type DeleteStaticAgentArgs struct {
// (required) The agent group identifier
AgentGroupId *string
// (required) Name of the static agent
AgentName *string
}
Arguments for the DeleteStaticAgent function
type GetAgentGroupsArgs ¶
type GetAgentGroupsArgs struct {
// (optional) The agent group identifier
AgentGroupId *string
// (optional)
MachineSetupInput *bool
// (optional)
MachineAccessData *bool
// (optional)
OutgoingRequestUrls *bool
// (optional) Name of the agent group
AgentGroupName *string
}
Arguments for the GetAgentGroups function
type GetApplicationArgs ¶
type GetApplicationArgs struct {
// (required) Filter by APM application identifier.
ApplicationId *string
}
Arguments for the GetApplication function
type GetApplicationCountersArgs ¶
type GetApplicationCountersArgs struct {
// (optional) Filter by APM application identifier.
ApplicationId *string
// (optional) Currently ApplicationInsights is the only available plugin type.
Plugintype *string
}
Arguments for the GetApplicationCounters function
type GetApplicationsArgs ¶
type GetApplicationsArgs struct {
// (optional) Filters the results based on the plugin type.
Type *string
}
Arguments for the GetApplications function
type GetCounterSamplesArgs ¶
type GetCounterSamplesArgs struct {
// (required)
CounterSampleQueryDetails *azuredevops.VssJsonCollectionWrapper
// (required) The test run identifier
TestRunId *string
}
Arguments for the GetCounterSamples function
type GetCountersArgs ¶
type GetCountersArgs struct {
// (required) The test run identifier
TestRunId *string
// (required) Comma separated names of counter groups, such as 'Application', 'Performance' and 'Throughput'
GroupNames *string
// (optional)
IncludeSummary *bool
}
Arguments for the GetCounters function
type GetLoadTestResultArgs ¶
type GetLoadTestResultArgs struct {
// (required) The test run identifier
TestRunId *string
}
Arguments for the GetLoadTestResult function
type GetLoadTestRunErrorsArgs ¶
type GetLoadTestRunErrorsArgs struct {
// (required) The test run identifier
TestRunId *string
// (optional) Filter for the particular type of errors.
Type *string
// (optional) Filter for a particular subtype of errors. You should not provide error subtype without error type.
SubType *string
// (optional) To include the details of test errors such as messagetext, request, stacktrace, testcasename, scenarioname, and lasterrordate.
Detailed *bool
}
Arguments for the GetLoadTestRunErrors function
type GetPluginArgs ¶
type GetPluginArgs struct {
// (required) Currently ApplicationInsights is the only available plugin type.
Type *string
}
Arguments for the GetPlugin function
type GetStaticAgentsArgs ¶
type GetStaticAgentsArgs struct {
// (required) The agent group identifier
AgentGroupId *string
// (optional) Name of the static agent
AgentName *string
}
Arguments for the GetStaticAgents function
type GetTestDefinitionArgs ¶
type GetTestDefinitionArgs struct {
// (required) The test definition identifier
TestDefinitionId *string
}
Arguments for the GetTestDefinition function
type GetTestDefinitionsArgs ¶
type GetTestDefinitionsArgs struct {
// (optional) Date after which test definitions were created
FromDate *string
// (optional) Date before which test definitions were crated
ToDate *string
// (optional)
Top *int
}
Arguments for the GetTestDefinitions function
type GetTestDropArgs ¶
type GetTestDropArgs struct {
// (required) The test drop identifier
TestDropId *string
}
Arguments for the GetTestDrop function
type GetTestRunArgs ¶
type GetTestRunArgs struct {
// (required) Unique ID of the test run
TestRunId *string
}
Arguments for the GetTestRun function
type GetTestRunMessagesArgs ¶
type GetTestRunMessagesArgs struct {
// (required) Id of the test run
TestRunId *string
}
Arguments for the GetTestRunMessages function
type GetTestRunsArgs ¶
type GetTestRunsArgs struct {
// (optional) Name for the test run. Names are not unique. Test runs with same name are assigned sequential rolling numbers.
Name *string
// (optional) Filter by the user who requested the test run. Here requestedBy should be the display name of the user.
RequestedBy *string
// (optional) Filter by the test run status.
Status *string
// (optional) Valid values include: null, one of TestRunType, or "*"
RunType *string
// (optional) Filter by the test runs that have been modified after the fromDate timestamp.
FromDate *string
// (optional) Filter by the test runs that have been modified before the toDate timestamp.
ToDate *string
// (optional) Include the detailed test run attributes.
Detailed *bool
// (optional) The maximum number of test runs to return.
Top *int
// (optional)
Runsourceidentifier *string
// (optional)
RetentionState *string
}
Arguments for the GetTestRuns function
type UpdateTestDefinitionArgs ¶
type UpdateTestDefinitionArgs struct {
// (required)
TestDefinition *testservice.TestDefinition
}
Arguments for the UpdateTestDefinition function
type UpdateTestRunArgs ¶
type UpdateTestRunArgs struct {
// (required)
WebTestRun *testservice.TestRun
// (required)
TestRunId *string
}
Arguments for the UpdateTestRun function