DiscoveryTasksClient.AddExecutionHistory 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 |
|---|---|
| AddExecutionHistory(String, String, String, ExecutionHistoryEntry, CancellationToken) |
Add an execution history entry to a task. |
| AddExecutionHistory(String, String, String, RequestContent, RequestContext) |
[Protocol Method] Add an execution history entry to a task.
|
AddExecutionHistory(String, String, String, ExecutionHistoryEntry, CancellationToken)
- Source:
- DiscoveryTasksClient.cs
Add an execution history entry to a task.
public virtual Azure.Response<Azure.AI.Discovery.DiscoveryTask> AddExecutionHistory(string projectName, string investigationName, string taskName, Azure.AI.Discovery.ExecutionHistoryEntry body, System.Threading.CancellationToken cancellationToken = default);
abstract member AddExecutionHistory : string * string * string * Azure.AI.Discovery.ExecutionHistoryEntry * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.DiscoveryTask>
override this.AddExecutionHistory : string * string * string * Azure.AI.Discovery.ExecutionHistoryEntry * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.DiscoveryTask>
Public Overridable Function AddExecutionHistory (projectName As String, investigationName As String, taskName As String, body As ExecutionHistoryEntry, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DiscoveryTask)
Parameters
- projectName
- String
The project name.
- investigationName
- String
The investigation name.
- taskName
- String
The task name.
Execution history entry to add.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
projectName, investigationName, taskName or body is null.
projectName, investigationName or taskName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
AddExecutionHistory(String, String, String, RequestContent, RequestContext)
- Source:
- DiscoveryTasksClient.cs
[Protocol Method] Add an execution history entry to a task.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response AddExecutionHistory(string projectName, string investigationName, string taskName, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member AddExecutionHistory : string * string * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.AddExecutionHistory : string * string * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function AddExecutionHistory (projectName As String, investigationName As String, taskName As String, content As RequestContent, Optional context As RequestContext = Nothing) As Response
Parameters
- projectName
- String
The project name.
- investigationName
- String
The investigation name.
- taskName
- String
The task name.
- content
- RequestContent
The content to send as the body of the request.
- 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
projectName, investigationName, taskName or content is null.
projectName, investigationName or taskName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.