MetricNamespacesInner Class

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

public class MetricNamespacesInner

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

Constructor Summary

Constructor Description
MetricNamespacesInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of MetricNamespacesInner.

Method Summary

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

Lists the metric namespaces for the resource.

List<MetricNamespaceInner> list(String resourceUri, String startTime)

Lists the metric namespaces for the resource.

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

Lists the metric namespaces for the resource.

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

Lists the metric namespaces for the resource.

Observable<List<MetricNamespaceInner>> listAsync(String resourceUri, String startTime)

Lists the metric namespaces for the resource.

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

Lists the metric namespaces for the resource.

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

Lists the metric namespaces for the resource.

Observable<ServiceResponse<List<MetricNamespaceInner>>> listWithServiceResponseAsync(String resourceUri, String startTime)

Lists the metric namespaces for the resource.

Constructor Details

MetricNamespacesInner

public MetricNamespacesInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of MetricNamespacesInner.

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 namespaces for the resource.

Parameters:

resourceUri - The identifier of the resource.

Returns:

the List<MetricNamespaceInner> 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 startTime)

Lists the metric namespaces for the resource.

Parameters:

resourceUri - The identifier of the resource.
startTime - The ISO 8601 conform Date start time from which to query for metric namespaces.

Returns:

the List<MetricNamespaceInner> 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 namespaces for the resource.

Parameters:

resourceUri - The identifier of the resource.

Returns:

the observable to the List<MetricNamespaceInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

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

Lists the metric namespaces 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 startTime)

Lists the metric namespaces for the resource.

Parameters:

resourceUri - The identifier of the resource.
startTime - The ISO 8601 conform Date start time from which to query for metric namespaces.

Returns:

the observable to the List<MetricNamespaceInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

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

Lists the metric namespaces for the resource.

Parameters:

resourceUri - The identifier of the resource.
startTime - The ISO 8601 conform Date start time from which to query for metric namespaces.
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 namespaces for the resource.

Parameters:

resourceUri - The identifier of the resource.

Returns:

the observable to the List<MetricNamespaceInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listWithServiceResponseAsync

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

Lists the metric namespaces for the resource.

Parameters:

resourceUri - The identifier of the resource.
startTime - The ISO 8601 conform Date start time from which to query for metric namespaces.

Returns:

the observable to the List<MetricNamespaceInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to