Skip to content

Commit

Permalink
Rename ErrorCode to MetricsAdvisorErrorCode
Browse files Browse the repository at this point in the history
  • Loading branch information
anuchandy committed May 28, 2021
1 parent 5b0eea0 commit 83ad566
Show file tree
Hide file tree
Showing 10 changed files with 434 additions and 426 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import com.azure.ai.metricsadvisor.models.DataPointAnomaly;
import com.azure.ai.metricsadvisor.models.DimensionKey;
import com.azure.ai.metricsadvisor.models.EnrichmentStatus;
import com.azure.ai.metricsadvisor.models.ErrorCodeException;
import com.azure.ai.metricsadvisor.models.MetricsAdvisorErrorCodeException;
import com.azure.ai.metricsadvisor.models.IncidentRootCause;
import com.azure.ai.metricsadvisor.models.ListAlertOptions;
import com.azure.ai.metricsadvisor.models.ListAnomaliesAlertedOptions;
Expand Down Expand Up @@ -129,7 +129,7 @@ public class MetricsAdvisorAsyncClient {
*
* @return A {@link PagedFlux} of the {@link MetricSeriesDefinition metric series definitions}.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code metricId} or {@code activeSince}
* is null.
*/
Expand Down Expand Up @@ -219,7 +219,7 @@ private Mono<PagedResponse<MetricSeriesDefinition>> listMetricSeriesDefinitionNe
*
* @return A {@link PagedFlux} of the {@link MetricSeriesData metric series data points}.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code metricId}, {@code startTime} or {@code endTime}
* is null.
*/
Expand Down Expand Up @@ -275,7 +275,7 @@ private Mono<PagedResponse<MetricSeriesData>> listMetricSeriesDataInternal(Strin
*
* @return the {@link PagedFlux} of the dimension values for that metric.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code metricId} or {@code dimensionName} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
Expand All @@ -297,7 +297,7 @@ public PagedFlux<String> listMetricDimensionValues(
*
* @return the {@link PagedFlux} of the dimension values for that metric.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code metricId} or {@code dimensionName} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
Expand Down Expand Up @@ -388,7 +388,7 @@ private Mono<PagedResponse<String>> listMetricDimensionValuesNextPageAsync(Strin
*
* @return the list of enrichment status's for the specified metric.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if {@code metricId}, {@code startTime} and {@code endTime}
* is null.
*/
Expand Down Expand Up @@ -790,7 +790,7 @@ private Mono<PagedResponse<AnomalyIncident>> listIncidentsForDetectionConfigNext
*
* @return the list of root causes for that incident.
* @throws IllegalArgumentException thrown if {@code detectionConfigurationId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code detectionConfigurationId} or {@code incidentId} is null.
**/
@ServiceMethod(returns = ReturnType.COLLECTION)
Expand Down Expand Up @@ -833,7 +833,7 @@ PagedFlux<IncidentRootCause> listIncidentRootCauses(
*
* @return the list of root causes for that anomalyIncident.
* @throws IllegalArgumentException thrown if {@code detectionConfigurationId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code detectionConfigurationId} or {@code incidentId} is null.
**/
@ServiceMethod(returns = ReturnType.COLLECTION)
Expand Down Expand Up @@ -1450,7 +1450,7 @@ Mono<Response<MetricFeedback>> getFeedbackWithResponse(String feedbackId, Contex
* @return A {@link PagedFlux} containing information of all the {@link MetricFeedback metric feedbacks}
* in the account.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code metricId} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
Expand All @@ -1471,7 +1471,7 @@ public PagedFlux<MetricFeedback> listFeedback(String metricId) {
* @return A {@link PagedFlux} containing information of all the {@link MetricFeedback metric feedbacks} in
* the account.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code metricId} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.azure.ai.metricsadvisor.models.DataPointAnomaly;
import com.azure.ai.metricsadvisor.models.DimensionKey;
import com.azure.ai.metricsadvisor.models.EnrichmentStatus;
import com.azure.ai.metricsadvisor.models.ErrorCodeException;
import com.azure.ai.metricsadvisor.models.MetricsAdvisorErrorCodeException;
import com.azure.ai.metricsadvisor.models.IncidentRootCause;
import com.azure.ai.metricsadvisor.models.ListAlertOptions;
import com.azure.ai.metricsadvisor.models.ListAnomaliesAlertedOptions;
Expand Down Expand Up @@ -70,7 +70,7 @@ public class MetricsAdvisorClient {
* @param activeSince the start time for querying series ingested after this time.
* @return A {@link PagedIterable} of the {@link MetricSeriesDefinition metric series definitions}.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code metricId} or {@code activeSince}
* is null.
*/
Expand All @@ -93,7 +93,7 @@ public PagedIterable<MetricSeriesDefinition> listMetricSeriesDefinitions(
*
* @return A {@link PagedIterable} of the {@link MetricSeriesDefinition metric series definitions}.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code metricId} or {@code activeSince}
* is null.
*/
Expand Down Expand Up @@ -169,7 +169,7 @@ public PagedIterable<MetricSeriesData> listMetricSeriesData(String metricId, Lis
* @param endTime The end time for querying the time series data.
* @return the list of enrichment status's for the specified metric.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if {@code metricId}, {@code startTime} and {@code endTime}
* is null.
*/
Expand All @@ -193,7 +193,7 @@ public PagedIterable<EnrichmentStatus> listMetricEnrichmentStatus(
*
* @return the list of enrichment status's for the specified metric.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if {@code metricId}, {@code startTime} and {@code endTime}
* is null.
*/
Expand Down Expand Up @@ -377,7 +377,7 @@ public PagedIterable<AnomalyIncident> listIncidents(
*
* @return the list of root causes for that incident.
* @throws IllegalArgumentException thrown if {@code detectionConfigurationId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code detectionConfigurationId} or {@code incidentId} is null.
**/
@ServiceMethod(returns = ReturnType.COLLECTION)
Expand All @@ -399,7 +399,7 @@ public PagedIterable<IncidentRootCause> listIncidentRootCauses(
*
* @return the list of root causes for that incident.
* @throws IllegalArgumentException thrown if {@code detectionConfigurationId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code detectionConfigurationId} or {@code incidentId} is null.
**/
@ServiceMethod(returns = ReturnType.COLLECTION)
Expand All @@ -419,7 +419,7 @@ public PagedIterable<IncidentRootCause> listIncidentRootCauses(
*
* @return the list of root causes for that anomalyIncident.
* @throws IllegalArgumentException thrown if {@code detectionConfigurationId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code detectionConfigurationId} or {@code incidentId} is null.
**/
@ServiceMethod(returns = ReturnType.COLLECTION)
Expand Down Expand Up @@ -706,7 +706,7 @@ public Response<MetricFeedback> getFeedbackWithResponse(String feedbackId, Conte
* @return A {@link PagedIterable} containing information of all the {@link MetricFeedback metric feedbacks}
* in the account.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code metricId} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
Expand All @@ -729,7 +729,7 @@ public PagedIterable<MetricFeedback> listFeedback(
* @return A {@link PagedIterable} containing information of all the {@link MetricFeedback metric feedbacks}
* in the account.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code metricId} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
Expand All @@ -751,7 +751,7 @@ public PagedIterable<MetricFeedback> listFeedback(
*
* @return the {@link PagedIterable} of the dimension values for that metric.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code metricId} or {@code dimensionName} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
Expand All @@ -774,7 +774,7 @@ public PagedIterable<String> listMetricDimensionValues(
*
* @return the {@link PagedIterable} of the dimension values for that metric.
* @throws IllegalArgumentException thrown if {@code metricId} fail the UUID format validation.
* @throws ErrorCodeException thrown if the request is rejected by server.
* @throws MetricsAdvisorErrorCodeException thrown if the request is rejected by server.
* @throws NullPointerException thrown if the {@code metricId} or {@code dimensionName} is null.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
Expand Down
Loading

0 comments on commit 83ad566

Please sign in to comment.