AgentInsightMonitors.ResetAsync 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 |
|---|---|
| ResetAsync(String, RequestOptions) |
[Protocol Method] Reset an Agent Insights monitor's overview, checkpoint, and active insight state.
|
| ResetAsync(String, CancellationToken) |
Reset an Agent Insights monitor's overview, checkpoint, and active insight state. |
ResetAsync(String, RequestOptions)
- Source:
- AgentInsightMonitors.cs
[Protocol Method] Reset an Agent Insights monitor's overview, checkpoint, and active insight state.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> ResetAsync(string monitorId, System.ClientModel.Primitives.RequestOptions options);
abstract member ResetAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.ResetAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function ResetAsync (monitorId As String, options As RequestOptions) As Task(Of ClientResult)
Parameters
- monitorId
- String
The identifier of the monitor.
- options
- RequestOptions
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
monitorId is null.
monitorId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
ResetAsync(String, CancellationToken)
- Source:
- AgentInsightMonitors.cs
Reset an Agent Insights monitor's overview, checkpoint, and active insight state.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> ResetAsync(string monitorId, System.Threading.CancellationToken cancellationToken = default);
abstract member ResetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.ResetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function ResetAsync (monitorId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult)
Parameters
- monitorId
- String
The identifier of the monitor.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
monitorId is null.
monitorId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.