LoadTestAdministrationClient.GetTrigger Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetTrigger(String, RequestContext) |
[Protocol Method] Resource read operation template.
|
| GetTrigger(String, CancellationToken) |
Resource read operation template. |
GetTrigger(String, RequestContext)
[Protocol Method] Resource read operation template.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response GetTrigger(string triggerId, Azure.RequestContext context);
abstract member GetTrigger : string * Azure.RequestContext -> Azure.Response
override this.GetTrigger : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetTrigger (triggerId As String, context As RequestContext) As Response
Parameters
- triggerId
- String
The unique identifier of the trigger.
- context
- RequestContext
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
triggerId is null.
triggerId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetTrigger(String, CancellationToken)
Resource read operation template.
public virtual Azure.Response<Azure.Developer.LoadTesting.LoadTestingTrigger> GetTrigger(string triggerId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTrigger : string * System.Threading.CancellationToken -> Azure.Response<Azure.Developer.LoadTesting.LoadTestingTrigger>
override this.GetTrigger : string * System.Threading.CancellationToken -> Azure.Response<Azure.Developer.LoadTesting.LoadTestingTrigger>
Public Overridable Function GetTrigger (triggerId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of LoadTestingTrigger)
Parameters
- triggerId
- String
The unique identifier of the trigger.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
triggerId is null.
triggerId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.