DiscoveryToolsClient.GetComputeUsage Method

Definition

Overloads

Name Description
GetComputeUsage(String, RequestContext)

[Protocol Method] Examine compute usage.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetComputeUsage(String, CancellationToken)

Examine compute usage.

GetComputeUsage(String, RequestContext)

Source:
DiscoveryToolsClient.cs

[Protocol Method] Examine compute usage.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response GetComputeUsage(string projectName, Azure.RequestContext context);
abstract member GetComputeUsage : string * Azure.RequestContext -> Azure.Response
override this.GetComputeUsage : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetComputeUsage (projectName As String, context As RequestContext) As Response

Parameters

projectName
String

Name of the associated Project.

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 is null.

projectName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetComputeUsage(String, CancellationToken)

Source:
DiscoveryToolsClient.cs

Examine compute usage.

public virtual Azure.Response<Azure.AI.Discovery.ComputeUsage> GetComputeUsage(string projectName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetComputeUsage : string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.ComputeUsage>
override this.GetComputeUsage : string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.ComputeUsage>
Public Overridable Function GetComputeUsage (projectName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ComputeUsage)

Parameters

projectName
String

Name of the associated Project.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

projectName is null.

projectName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to