Diagnostics Interface

public interface Diagnostics

Resource collection API of Diagnostics.

Method Summary

Modifier and Type Method and Description
abstract CheckNameAvailabilityResponse checkNameAvailability(String scope)

This API is used to check the uniqueness of a resource name used for a diagnostic check.

abstract Response<CheckNameAvailabilityResponse> checkNameAvailabilityWithResponse(String scope, CheckNameAvailabilityRequest checkNameAvailabilityRequest, Context context)

This API is used to check the uniqueness of a resource name used for a diagnostic check.

abstract Blank define(String name)

Begins definition for a new DiagnosticResource resource.

abstract DiagnosticResource get(String scope, String diagnosticsResourceName)

Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.

abstract DiagnosticResource getById(String id)

Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.

abstract Response<DiagnosticResource> getByIdWithResponse(String id, Context context)

Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.

abstract Response<DiagnosticResource> getWithResponse(String scope, String diagnosticsResourceName, Context context)

Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.

Method Details

checkNameAvailability

public abstract CheckNameAvailabilityResponse checkNameAvailability(String scope)

This API is used to check the uniqueness of a resource name used for a diagnostic check.

Parameters:

scope - This is an extension resource provider and only resource level extension is supported at the moment.

Returns:

response for whether the requested resource name is available or not.

checkNameAvailabilityWithResponse

public abstract Response<CheckNameAvailabilityResponse> checkNameAvailabilityWithResponse(String scope, CheckNameAvailabilityRequest checkNameAvailabilityRequest, Context context)

This API is used to check the uniqueness of a resource name used for a diagnostic check.

Parameters:

scope - This is an extension resource provider and only resource level extension is supported at the moment.
checkNameAvailabilityRequest - The required parameters for availability check.
context - The context to associate with this operation.

Returns:

response for whether the requested resource name is available or not along with Response<T>.

define

public abstract DiagnosticResource.DefinitionStages.Blank define(String name)

Begins definition for a new DiagnosticResource resource.

Parameters:

name - resource name.

Returns:

the first stage of the new DiagnosticResource definition.

get

public abstract DiagnosticResource get(String scope, String diagnosticsResourceName)

Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.

Parameters:

scope - This is an extension resource provider and only resource level extension is supported at the moment.
diagnosticsResourceName - Unique resource name for insight resources.

Returns:

the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.

getById

public abstract DiagnosticResource getById(String id)

Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.

Parameters:

id - the resource ID.

Returns:

the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic along with Response<T>.

getByIdWithResponse

public abstract Response<DiagnosticResource> getByIdWithResponse(String id, Context context)

Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic along with Response<T>.

getWithResponse

public abstract Response<DiagnosticResource> getWithResponse(String scope, String diagnosticsResourceName, Context context)

Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.

Parameters:

scope - This is an extension resource provider and only resource level extension is supported at the moment.
diagnosticsResourceName - Unique resource name for insight resources.
context - The context to associate with this operation.

Returns:

the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic along with Response<T>.

Applies to