MetricDefinitionsInner Class

  • java.lang.Object
    • com.microsoft.azure.management.monitor.implementation.MetricDefinitionsInner

public class MetricDefinitionsInner

An instance of this class provides access to all the operations defined in MetricDefinitions.

Constructor Summary

Constructor Description
MetricDefinitionsInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of MetricDefinitionsInner.

Method Summary

Modifier and Type Method and Description
List<MetricDefinitionInner> list(String resourceUri)

Lists the metric definitions for the resource.

List<MetricDefinitionInner> list(String resourceUri, String metricnamespace)

Lists the metric definitions for the resource.

Observable<List<MetricDefinitionInner>> listAsync(String resourceUri)

Lists the metric definitions for the resource.

ServiceFuture<List<MetricDefinitionInner>> listAsync(String resourceUri, final ServiceCallback<List<MetricDefinitionInner>> serviceCallback)

Lists the metric definitions for the resource.

Observable<List<MetricDefinitionInner>> listAsync(String resourceUri, String metricnamespace)

Lists the metric definitions for the resource.

ServiceFuture<List<MetricDefinitionInner>> listAsync(String resourceUri, String metricnamespace, final ServiceCallback<List<MetricDefinitionInner>> serviceCallback)

Lists the metric definitions for the resource.

Observable<ServiceResponse<List<MetricDefinitionInner>>> listWithServiceResponseAsync(String resourceUri)

Lists the metric definitions for the resource.

Observable<ServiceResponse<List<MetricDefinitionInner>>> listWithServiceResponseAsync(String resourceUri, String metricnamespace)

Lists the metric definitions for the resource.

Constructor Details

MetricDefinitionsInner

public MetricDefinitionsInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of MetricDefinitionsInner.

Parameters:

retrofit - the Retrofit instance built from a Retrofit Builder.
client - the instance of the service client containing this operation class.

Method Details

list

public List list(String resourceUri)

Lists the metric definitions for the resource.

Parameters:

resourceUri - The identifier of the resource.

Returns:

the List<MetricDefinitionInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

list

public List list(String resourceUri, String metricnamespace)

Lists the metric definitions for the resource.

Parameters:

resourceUri - The identifier of the resource.
metricnamespace - Metric namespace to query metric definitions for.

Returns:

the List<MetricDefinitionInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listAsync

public Observable<>> listAsync(String resourceUri)

Lists the metric definitions for the resource.

Parameters:

resourceUri - The identifier of the resource.

Returns:

the observable to the List<MetricDefinitionInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

public ServiceFuture<>> listAsync(String resourceUri, final ServiceCallback<>> serviceCallback)

Lists the metric definitions for the resource.

Parameters:

resourceUri - The identifier of the resource.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

public Observable<>> listAsync(String resourceUri, String metricnamespace)

Lists the metric definitions for the resource.

Parameters:

resourceUri - The identifier of the resource.
metricnamespace - Metric namespace to query metric definitions for.

Returns:

the observable to the List<MetricDefinitionInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

public ServiceFuture<>> listAsync(String resourceUri, String metricnamespace, final ServiceCallback<>> serviceCallback)

Lists the metric definitions for the resource.

Parameters:

resourceUri - The identifier of the resource.
metricnamespace - Metric namespace to query metric definitions for.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listWithServiceResponseAsync

public Observable<><>>> listWithServiceResponseAsync(String resourceUri)

Lists the metric definitions for the resource.

Parameters:

resourceUri - The identifier of the resource.

Returns:

the observable to the List<MetricDefinitionInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listWithServiceResponseAsync

public Observable<><>>> listWithServiceResponseAsync(String resourceUri, String metricnamespace)

Lists the metric definitions for the resource.

Parameters:

resourceUri - The identifier of the resource.
metricnamespace - Metric namespace to query metric definitions for.

Returns:

the observable to the List<MetricDefinitionInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to