MetricBaselinesInner Class

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

public class MetricBaselinesInner

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

Constructor Summary

Constructor Description
MetricBaselinesInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of MetricBaselinesInner.

Method Summary

Modifier and Type Method and Description
CalculateBaselineResponseInner calculateBaseline(String resourceUri, TimeSeriesInformation timeSeriesInformation)

**Lists the baseline values for a resource**.

Observable<CalculateBaselineResponseInner> calculateBaselineAsync(String resourceUri, TimeSeriesInformation timeSeriesInformation)

**Lists the baseline values for a resource**.

ServiceFuture<CalculateBaselineResponseInner> calculateBaselineAsync(String resourceUri, TimeSeriesInformation timeSeriesInformation, final ServiceCallback<CalculateBaselineResponseInner> serviceCallback)

**Lists the baseline values for a resource**.

Observable<ServiceResponse<CalculateBaselineResponseInner>> calculateBaselineWithServiceResponseAsync(String resourceUri, TimeSeriesInformation timeSeriesInformation)

**Lists the baseline values for a resource**.

BaselineResponseInner get(String resourceUri, String metricName)

**Gets the baseline values for a specific metric**.

BaselineResponseInner get(String resourceUri, String metricName, String timespan, Period interval, String aggregation, String sensitivities, ResultType resultType)

**Gets the baseline values for a specific metric**.

Observable<BaselineResponseInner> getAsync(String resourceUri, String metricName)

**Gets the baseline values for a specific metric**.

ServiceFuture<BaselineResponseInner> getAsync(String resourceUri, String metricName, final ServiceCallback<BaselineResponseInner> serviceCallback)

**Gets the baseline values for a specific metric**.

Observable<BaselineResponseInner> getAsync(String resourceUri, String metricName, String timespan, Period interval, String aggregation, String sensitivities, ResultType resultType)

**Gets the baseline values for a specific metric**.

ServiceFuture<BaselineResponseInner> getAsync(String resourceUri, String metricName, String timespan, Period interval, String aggregation, String sensitivities, ResultType resultType, final ServiceCallback<BaselineResponseInner> serviceCallback)

**Gets the baseline values for a specific metric**.

Observable<ServiceResponse<BaselineResponseInner>> getWithServiceResponseAsync(String resourceUri, String metricName)

**Gets the baseline values for a specific metric**.

Observable<ServiceResponse<BaselineResponseInner>> getWithServiceResponseAsync(String resourceUri, String metricName, String timespan, Period interval, String aggregation, String sensitivities, ResultType resultType)

**Gets the baseline values for a specific metric**.

Constructor Details

MetricBaselinesInner

public MetricBaselinesInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of MetricBaselinesInner.

Parameters:

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

Method Details

calculateBaseline

public CalculateBaselineResponseInner calculateBaseline(String resourceUri, TimeSeriesInformation timeSeriesInformation)

**Lists the baseline values for a resource**.

Parameters:

resourceUri - The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
timeSeriesInformation - Information that need to be specified to calculate a baseline on a time series.

Returns:

the CalculateBaselineResponseInner 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

calculateBaselineAsync

public Observable calculateBaselineAsync(String resourceUri, TimeSeriesInformation timeSeriesInformation)

**Lists the baseline values for a resource**.

Parameters:

resourceUri - The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
timeSeriesInformation - Information that need to be specified to calculate a baseline on a time series.

Returns:

the observable to the CalculateBaselineResponseInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

calculateBaselineAsync

public ServiceFuture calculateBaselineAsync(String resourceUri, TimeSeriesInformation timeSeriesInformation, final ServiceCallback serviceCallback)

**Lists the baseline values for a resource**.

Parameters:

resourceUri - The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
timeSeriesInformation - Information that need to be specified to calculate a baseline on a time series.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

calculateBaselineWithServiceResponseAsync

public Observable<>> calculateBaselineWithServiceResponseAsync(String resourceUri, TimeSeriesInformation timeSeriesInformation)

**Lists the baseline values for a resource**.

Parameters:

resourceUri - The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
timeSeriesInformation - Information that need to be specified to calculate a baseline on a time series.

Returns:

the observable to the CalculateBaselineResponseInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

get

public BaselineResponseInner get(String resourceUri, String metricName)

**Gets the baseline values for a specific metric**.

Parameters:

resourceUri - The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
metricName - The name of the metric to retrieve the baseline for.

Returns:

the BaselineResponseInner 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

get

public BaselineResponseInner get(String resourceUri, String metricName, String timespan, Period interval, String aggregation, String sensitivities, ResultType resultType)

**Gets the baseline values for a specific metric**.

Parameters:

resourceUri - The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
metricName - The name of the metric to retrieve the baseline for.
timespan - The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.
interval - The interval (i.e. timegrain) of the query.
aggregation - The aggregation type of the metric to retrieve the baseline for.
sensitivities - The list of sensitivities (comma separated) to retrieve.
resultType - Allows retrieving only metadata of the baseline. On data request all information is retrieved. Possible values include: 'Data', 'Metadata'

Returns:

the BaselineResponseInner 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

getAsync

public Observable getAsync(String resourceUri, String metricName)

**Gets the baseline values for a specific metric**.

Parameters:

resourceUri - The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
metricName - The name of the metric to retrieve the baseline for.

Returns:

the observable to the BaselineResponseInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getAsync

public ServiceFuture getAsync(String resourceUri, String metricName, final ServiceCallback serviceCallback)

**Gets the baseline values for a specific metric**.

Parameters:

resourceUri - The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
metricName - The name of the metric to retrieve the baseline for.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getAsync

public Observable getAsync(String resourceUri, String metricName, String timespan, Period interval, String aggregation, String sensitivities, ResultType resultType)

**Gets the baseline values for a specific metric**.

Parameters:

resourceUri - The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
metricName - The name of the metric to retrieve the baseline for.
timespan - The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.
interval - The interval (i.e. timegrain) of the query.
aggregation - The aggregation type of the metric to retrieve the baseline for.
sensitivities - The list of sensitivities (comma separated) to retrieve.
resultType - Allows retrieving only metadata of the baseline. On data request all information is retrieved. Possible values include: 'Data', 'Metadata'

Returns:

the observable to the BaselineResponseInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getAsync

public ServiceFuture getAsync(String resourceUri, String metricName, String timespan, Period interval, String aggregation, String sensitivities, ResultType resultType, final ServiceCallback serviceCallback)

**Gets the baseline values for a specific metric**.

Parameters:

resourceUri - The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
metricName - The name of the metric to retrieve the baseline for.
timespan - The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.
interval - The interval (i.e. timegrain) of the query.
aggregation - The aggregation type of the metric to retrieve the baseline for.
sensitivities - The list of sensitivities (comma separated) to retrieve.
resultType - Allows retrieving only metadata of the baseline. On data request all information is retrieved. Possible values include: 'Data', 'Metadata'
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getWithServiceResponseAsync

public Observable<>> getWithServiceResponseAsync(String resourceUri, String metricName)

**Gets the baseline values for a specific metric**.

Parameters:

resourceUri - The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
metricName - The name of the metric to retrieve the baseline for.

Returns:

the observable to the BaselineResponseInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getWithServiceResponseAsync

public Observable<>> getWithServiceResponseAsync(String resourceUri, String metricName, String timespan, Period interval, String aggregation, String sensitivities, ResultType resultType)

**Gets the baseline values for a specific metric**.

Parameters:

resourceUri - The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1
metricName - The name of the metric to retrieve the baseline for.
timespan - The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.
interval - The interval (i.e. timegrain) of the query.
aggregation - The aggregation type of the metric to retrieve the baseline for.
sensitivities - The list of sensitivities (comma separated) to retrieve.
resultType - Allows retrieving only metadata of the baseline. On data request all information is retrieved. Possible values include: 'Data', 'Metadata'

Returns:

the observable to the BaselineResponseInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to