com.azure.ai.metricsadvisor.implementation.MetricsAdvisorImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-ai-metricsadvisor Show documentation
Show all versions of azure-ai-metricsadvisor Show documentation
This package contains the Microsoft Azure Cognitive Services Metrics Advisor SDK.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.ai.metricsadvisor.implementation;
import com.azure.ai.metricsadvisor.implementation.models.AlertResultList;
import com.azure.ai.metricsadvisor.implementation.models.AlertingResultQuery;
import com.azure.ai.metricsadvisor.implementation.models.AnomalyAlertingConfiguration;
import com.azure.ai.metricsadvisor.implementation.models.AnomalyAlertingConfigurationList;
import com.azure.ai.metricsadvisor.implementation.models.AnomalyAlertingConfigurationPatch;
import com.azure.ai.metricsadvisor.implementation.models.AnomalyDetectionConfiguration;
import com.azure.ai.metricsadvisor.implementation.models.AnomalyDetectionConfigurationList;
import com.azure.ai.metricsadvisor.implementation.models.AnomalyDetectionConfigurationPatch;
import com.azure.ai.metricsadvisor.implementation.models.AnomalyDimensionList;
import com.azure.ai.metricsadvisor.implementation.models.AnomalyDimensionQuery;
import com.azure.ai.metricsadvisor.implementation.models.AnomalyResult;
import com.azure.ai.metricsadvisor.implementation.models.AnomalyResultList;
import com.azure.ai.metricsadvisor.implementation.models.CreateAnomalyAlertingConfigurationResponse;
import com.azure.ai.metricsadvisor.implementation.models.CreateAnomalyDetectionConfigurationResponse;
import com.azure.ai.metricsadvisor.implementation.models.CreateCredentialResponse;
import com.azure.ai.metricsadvisor.implementation.models.CreateDataFeedResponse;
import com.azure.ai.metricsadvisor.implementation.models.CreateHookResponse;
import com.azure.ai.metricsadvisor.implementation.models.CreateMetricFeedbackResponse;
import com.azure.ai.metricsadvisor.implementation.models.DataFeedDetail;
import com.azure.ai.metricsadvisor.implementation.models.DataFeedDetailPatch;
import com.azure.ai.metricsadvisor.implementation.models.DataFeedIngestionProgress;
import com.azure.ai.metricsadvisor.implementation.models.DataFeedIngestionStatus;
import com.azure.ai.metricsadvisor.implementation.models.DataFeedList;
import com.azure.ai.metricsadvisor.implementation.models.DataSourceCredential;
import com.azure.ai.metricsadvisor.implementation.models.DataSourceCredentialList;
import com.azure.ai.metricsadvisor.implementation.models.DataSourceCredentialPatch;
import com.azure.ai.metricsadvisor.implementation.models.DataSourceType;
import com.azure.ai.metricsadvisor.implementation.models.DetectionAnomalyResultQuery;
import com.azure.ai.metricsadvisor.implementation.models.DetectionIncidentResultQuery;
import com.azure.ai.metricsadvisor.implementation.models.DetectionSeriesQuery;
import com.azure.ai.metricsadvisor.implementation.models.EnrichmentStatusList;
import com.azure.ai.metricsadvisor.implementation.models.EnrichmentStatusQueryOption;
import com.azure.ai.metricsadvisor.implementation.models.EntityStatus;
import com.azure.ai.metricsadvisor.implementation.models.Granularity;
import com.azure.ai.metricsadvisor.implementation.models.HookInfo;
import com.azure.ai.metricsadvisor.implementation.models.HookInfoPatch;
import com.azure.ai.metricsadvisor.implementation.models.HookList;
import com.azure.ai.metricsadvisor.implementation.models.IncidentResult;
import com.azure.ai.metricsadvisor.implementation.models.IncidentResultList;
import com.azure.ai.metricsadvisor.implementation.models.IngestionProgressResetOptions;
import com.azure.ai.metricsadvisor.implementation.models.IngestionStatusList;
import com.azure.ai.metricsadvisor.implementation.models.IngestionStatusQueryOptions;
import com.azure.ai.metricsadvisor.implementation.models.MetricDataList;
import com.azure.ai.metricsadvisor.implementation.models.MetricDataQueryOptions;
import com.azure.ai.metricsadvisor.implementation.models.MetricDimensionList;
import com.azure.ai.metricsadvisor.implementation.models.MetricDimensionQueryOptions;
import com.azure.ai.metricsadvisor.implementation.models.MetricFeedback;
import com.azure.ai.metricsadvisor.implementation.models.MetricFeedbackFilter;
import com.azure.ai.metricsadvisor.implementation.models.MetricFeedbackList;
import com.azure.ai.metricsadvisor.implementation.models.MetricSeriesItem;
import com.azure.ai.metricsadvisor.implementation.models.MetricSeriesList;
import com.azure.ai.metricsadvisor.implementation.models.MetricSeriesQueryOptions;
import com.azure.ai.metricsadvisor.implementation.models.RootCauseList;
import com.azure.ai.metricsadvisor.implementation.models.SeriesResultList;
import com.azure.ai.metricsadvisor.implementation.models.UsageStats;
import com.azure.ai.metricsadvisor.models.AnomalyAlert;
import com.azure.ai.metricsadvisor.models.EnrichmentStatus;
import com.azure.ai.metricsadvisor.models.MetricsAdvisorResponseException;
import com.azure.core.annotation.BodyParam;
import com.azure.core.annotation.Delete;
import com.azure.core.annotation.ExpectedResponses;
import com.azure.core.annotation.Get;
import com.azure.core.annotation.HeaderParam;
import com.azure.core.annotation.Host;
import com.azure.core.annotation.HostParam;
import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
import com.azure.core.annotation.Post;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceInterface;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.annotation.UnexpectedResponseExceptionType;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.PagedResponse;
import com.azure.core.http.rest.PagedResponseBase;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.RestProxy;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
import com.azure.core.util.serializer.JacksonAdapter;
import com.azure.core.util.serializer.SerializerAdapter;
import java.util.UUID;
import reactor.core.publisher.Mono;
/**
* Initializes a new instance of the MetricsAdvisor type.
*/
public final class MetricsAdvisorImpl {
/**
* The proxy service used to perform REST calls.
*/
private final MetricsAdvisorService service;
/**
* Supported Cognitive Services endpoints (protocol and hostname, for example:
* https://<resource-name>.cognitiveservices.azure.com).
*/
private final String endpoint;
/**
* Gets Supported Cognitive Services endpoints (protocol and hostname, for example:
* https://<resource-name>.cognitiveservices.azure.com).
*
* @return the endpoint value.
*/
public String getEndpoint() {
return this.endpoint;
}
/**
* The HTTP pipeline to send requests through.
*/
private final HttpPipeline httpPipeline;
/**
* Gets The HTTP pipeline to send requests through.
*
* @return the httpPipeline value.
*/
public HttpPipeline getHttpPipeline() {
return this.httpPipeline;
}
/**
* The serializer to serialize an object into a string.
*/
private final SerializerAdapter serializerAdapter;
/**
* Gets The serializer to serialize an object into a string.
*
* @return the serializerAdapter value.
*/
public SerializerAdapter getSerializerAdapter() {
return this.serializerAdapter;
}
/**
* Initializes an instance of MetricsAdvisor client.
*
* @param endpoint Supported Cognitive Services endpoints (protocol and hostname, for example:
* https://<resource-name>.cognitiveservices.azure.com).
*/
MetricsAdvisorImpl(String endpoint) {
this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(),
JacksonAdapter.createDefaultSerializerAdapter(), endpoint);
}
/**
* Initializes an instance of MetricsAdvisor client.
*
* @param httpPipeline The HTTP pipeline to send requests through.
* @param endpoint Supported Cognitive Services endpoints (protocol and hostname, for example:
* https://<resource-name>.cognitiveservices.azure.com).
*/
MetricsAdvisorImpl(HttpPipeline httpPipeline, String endpoint) {
this(httpPipeline, JacksonAdapter.createDefaultSerializerAdapter(), endpoint);
}
/**
* Initializes an instance of MetricsAdvisor client.
*
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
* @param endpoint Supported Cognitive Services endpoints (protocol and hostname, for example:
* https://<resource-name>.cognitiveservices.azure.com).
*/
MetricsAdvisorImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String endpoint) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.endpoint = endpoint;
this.service = RestProxy.create(MetricsAdvisorService.class, this.httpPipeline, this.getSerializerAdapter());
}
/**
* The interface defining all the services for MetricsAdvisor to be used by the proxy service to perform REST
* calls.
*/
@Host("{endpoint}/metricsadvisor/v1.0")
@ServiceInterface(name = "MetricsAdvisor")
public interface MetricsAdvisorService {
@Get("/stats/latest")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getActiveSeriesCount(@HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("/stats/latest")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getActiveSeriesCountSync(@HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("/alert/anomaly/configurations/{configurationId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getAnomalyAlertingConfiguration(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@HeaderParam("Accept") String accept, Context context);
@Get("/alert/anomaly/configurations/{configurationId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getAnomalyAlertingConfigurationSync(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@HeaderParam("Accept") String accept, Context context);
@Patch("/alert/anomaly/configurations/{configurationId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> updateAnomalyAlertingConfiguration(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@BodyParam("application/merge-patch+json") AnomalyAlertingConfigurationPatch body,
@HeaderParam("Accept") String accept, Context context);
@Patch("/alert/anomaly/configurations/{configurationId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response updateAnomalyAlertingConfigurationSync(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@BodyParam("application/merge-patch+json") AnomalyAlertingConfigurationPatch body,
@HeaderParam("Accept") String accept, Context context);
@Delete("/alert/anomaly/configurations/{configurationId}")
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> deleteAnomalyAlertingConfiguration(@HostParam("endpoint") String endpoint,
@PathParam("configurationId") UUID configurationId, @HeaderParam("Accept") String accept, Context context);
@Delete("/alert/anomaly/configurations/{configurationId}")
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response deleteAnomalyAlertingConfigurationSync(@HostParam("endpoint") String endpoint,
@PathParam("configurationId") UUID configurationId, @HeaderParam("Accept") String accept, Context context);
@Post("/alert/anomaly/configurations")
@ExpectedResponses({ 201 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono createAnomalyAlertingConfiguration(
@HostParam("endpoint") String endpoint, @BodyParam("application/json") AnomalyAlertingConfiguration body,
@HeaderParam("Accept") String accept, Context context);
@Post("/alert/anomaly/configurations")
@ExpectedResponses({ 201 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
CreateAnomalyAlertingConfigurationResponse createAnomalyAlertingConfigurationSync(
@HostParam("endpoint") String endpoint, @BodyParam("application/json") AnomalyAlertingConfiguration body,
@HeaderParam("Accept") String accept, Context context);
@Post("/alert/anomaly/configurations/{configurationId}/alerts/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getAlertsByAnomalyAlertingConfiguration(@HostParam("endpoint") String endpoint,
@PathParam("configurationId") UUID configurationId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize, @BodyParam("application/json") AlertingResultQuery body,
@HeaderParam("Accept") String accept, Context context);
@Post("/alert/anomaly/configurations/{configurationId}/alerts/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getAlertsByAnomalyAlertingConfigurationSync(@HostParam("endpoint") String endpoint,
@PathParam("configurationId") UUID configurationId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize, @BodyParam("application/json") AlertingResultQuery body,
@HeaderParam("Accept") String accept, Context context);
@Get("/alert/anomaly/configurations/{configurationId}/alerts/{alertId}/anomalies")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getAnomaliesFromAlertByAnomalyAlertingConfiguration(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@PathParam("alertId") String alertId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize, @HeaderParam("Accept") String accept, Context context);
@Get("/alert/anomaly/configurations/{configurationId}/alerts/{alertId}/anomalies")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getAnomaliesFromAlertByAnomalyAlertingConfigurationSync(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@PathParam("alertId") String alertId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize, @HeaderParam("Accept") String accept, Context context);
@Get("/alert/anomaly/configurations/{configurationId}/alerts/{alertId}/incidents")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getIncidentsFromAlertByAnomalyAlertingConfiguration(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@PathParam("alertId") String alertId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize, @HeaderParam("Accept") String accept, Context context);
@Get("/alert/anomaly/configurations/{configurationId}/alerts/{alertId}/incidents")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getIncidentsFromAlertByAnomalyAlertingConfigurationSync(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@PathParam("alertId") String alertId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize, @HeaderParam("Accept") String accept, Context context);
@Get("/enrichment/anomalyDetection/configurations/{configurationId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getAnomalyDetectionConfiguration(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@HeaderParam("Accept") String accept, Context context);
@Get("/enrichment/anomalyDetection/configurations/{configurationId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getAnomalyDetectionConfigurationSync(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@HeaderParam("Accept") String accept, Context context);
@Patch("/enrichment/anomalyDetection/configurations/{configurationId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> updateAnomalyDetectionConfiguration(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@BodyParam("application/merge-patch+json") AnomalyDetectionConfigurationPatch body,
@HeaderParam("Accept") String accept, Context context);
@Patch("/enrichment/anomalyDetection/configurations/{configurationId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response updateAnomalyDetectionConfigurationSync(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@BodyParam("application/merge-patch+json") AnomalyDetectionConfigurationPatch body,
@HeaderParam("Accept") String accept, Context context);
@Delete("/enrichment/anomalyDetection/configurations/{configurationId}")
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> deleteAnomalyDetectionConfiguration(@HostParam("endpoint") String endpoint,
@PathParam("configurationId") UUID configurationId, @HeaderParam("Accept") String accept, Context context);
@Delete("/enrichment/anomalyDetection/configurations/{configurationId}")
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response deleteAnomalyDetectionConfigurationSync(@HostParam("endpoint") String endpoint,
@PathParam("configurationId") UUID configurationId, @HeaderParam("Accept") String accept, Context context);
@Post("/enrichment/anomalyDetection/configurations")
@ExpectedResponses({ 201 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono createAnomalyDetectionConfiguration(
@HostParam("endpoint") String endpoint, @BodyParam("application/json") AnomalyDetectionConfiguration body,
@HeaderParam("Accept") String accept, Context context);
@Post("/enrichment/anomalyDetection/configurations")
@ExpectedResponses({ 201 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
CreateAnomalyDetectionConfigurationResponse createAnomalyDetectionConfigurationSync(
@HostParam("endpoint") String endpoint, @BodyParam("application/json") AnomalyDetectionConfiguration body,
@HeaderParam("Accept") String accept, Context context);
@Get("/enrichment/anomalyDetection/configurations/{configurationId}/alert/anomaly/configurations")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono>
getAnomalyAlertingConfigurationsByAnomalyDetectionConfiguration(@HostParam("endpoint") String endpoint,
@PathParam("configurationId") UUID configurationId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize, @HeaderParam("Accept") String accept, Context context);
@Get("/enrichment/anomalyDetection/configurations/{configurationId}/alert/anomaly/configurations")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationSync(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@QueryParam("$skip") Integer skip, @QueryParam("$maxpagesize") Integer maxpagesize,
@HeaderParam("Accept") String accept, Context context);
@Post("/enrichment/anomalyDetection/configurations/{configurationId}/series/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getSeriesByAnomalyDetectionConfiguration(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@BodyParam("application/json") DetectionSeriesQuery body, @HeaderParam("Accept") String accept,
Context context);
@Post("/enrichment/anomalyDetection/configurations/{configurationId}/series/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getSeriesByAnomalyDetectionConfigurationSync(@HostParam("endpoint") String endpoint,
@PathParam("configurationId") UUID configurationId,
@BodyParam("application/json") DetectionSeriesQuery body, @HeaderParam("Accept") String accept,
Context context);
@Post("/enrichment/anomalyDetection/configurations/{configurationId}/anomalies/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getAnomaliesByAnomalyDetectionConfiguration(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@QueryParam("$skip") Integer skip, @QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") DetectionAnomalyResultQuery body, @HeaderParam("Accept") String accept,
Context context);
@Post("/enrichment/anomalyDetection/configurations/{configurationId}/anomalies/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getAnomaliesByAnomalyDetectionConfigurationSync(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@QueryParam("$skip") Integer skip, @QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") DetectionAnomalyResultQuery body, @HeaderParam("Accept") String accept,
Context context);
@Post("/enrichment/anomalyDetection/configurations/{configurationId}/anomalies/dimension/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getDimensionOfAnomaliesByAnomalyDetectionConfiguration(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@QueryParam("$skip") Integer skip, @QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") AnomalyDimensionQuery body, @HeaderParam("Accept") String accept,
Context context);
@Post("/enrichment/anomalyDetection/configurations/{configurationId}/anomalies/dimension/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getDimensionOfAnomaliesByAnomalyDetectionConfigurationSync(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@QueryParam("$skip") Integer skip, @QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") AnomalyDimensionQuery body, @HeaderParam("Accept") String accept,
Context context);
@Post("/enrichment/anomalyDetection/configurations/{configurationId}/incidents/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getIncidentsByAnomalyDetectionConfiguration(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") DetectionIncidentResultQuery body, @HeaderParam("Accept") String accept,
Context context);
@Post("/enrichment/anomalyDetection/configurations/{configurationId}/incidents/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getIncidentsByAnomalyDetectionConfigurationSync(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") DetectionIncidentResultQuery body, @HeaderParam("Accept") String accept,
Context context);
@Get("/enrichment/anomalyDetection/configurations/{configurationId}/incidents/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getIncidentsByAnomalyDetectionConfigurationNextPages(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@QueryParam("$maxpagesize") Integer maxpagesize, @QueryParam("$token") String token,
@HeaderParam("Accept") String accept, Context context);
@Get("/enrichment/anomalyDetection/configurations/{configurationId}/incidents/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getIncidentsByAnomalyDetectionConfigurationNextPagesSync(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@QueryParam("$maxpagesize") Integer maxpagesize, @QueryParam("$token") String token,
@HeaderParam("Accept") String accept, Context context);
@Get("/enrichment/anomalyDetection/configurations/{configurationId}/incidents/{incidentId}/rootCause")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getRootCauseOfIncidentByAnomalyDetectionConfiguration(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@PathParam("incidentId") String incidentId, @HeaderParam("Accept") String accept, Context context);
@Get("/enrichment/anomalyDetection/configurations/{configurationId}/incidents/{incidentId}/rootCause")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getRootCauseOfIncidentByAnomalyDetectionConfigurationSync(
@HostParam("endpoint") String endpoint, @PathParam("configurationId") UUID configurationId,
@PathParam("incidentId") String incidentId, @HeaderParam("Accept") String accept, Context context);
@Post("/credentials")
@ExpectedResponses({ 201 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono createCredential(@HostParam("endpoint") String endpoint,
@BodyParam("application/json") DataSourceCredential body, @HeaderParam("Accept") String accept,
Context context);
@Post("/credentials")
@ExpectedResponses({ 201 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
CreateCredentialResponse createCredentialSync(@HostParam("endpoint") String endpoint,
@BodyParam("application/json") DataSourceCredential body, @HeaderParam("Accept") String accept,
Context context);
@Get("/credentials")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> listCredentials(@HostParam("endpoint") String endpoint,
@QueryParam("$skip") Integer skip, @QueryParam("$maxpagesize") Integer maxpagesize,
@HeaderParam("Accept") String accept, Context context);
@Get("/credentials")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response listCredentialsSync(@HostParam("endpoint") String endpoint,
@QueryParam("$skip") Integer skip, @QueryParam("$maxpagesize") Integer maxpagesize,
@HeaderParam("Accept") String accept, Context context);
@Patch("/credentials/{credentialId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> updateCredential(@HostParam("endpoint") String endpoint,
@PathParam("credentialId") UUID credentialId,
@BodyParam("application/merge-patch+json") DataSourceCredentialPatch body,
@HeaderParam("Accept") String accept, Context context);
@Patch("/credentials/{credentialId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response updateCredentialSync(@HostParam("endpoint") String endpoint,
@PathParam("credentialId") UUID credentialId,
@BodyParam("application/merge-patch+json") DataSourceCredentialPatch body,
@HeaderParam("Accept") String accept, Context context);
@Delete("/credentials/{credentialId}")
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> deleteCredential(@HostParam("endpoint") String endpoint,
@PathParam("credentialId") UUID credentialId, @HeaderParam("Accept") String accept, Context context);
@Delete("/credentials/{credentialId}")
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response deleteCredentialSync(@HostParam("endpoint") String endpoint,
@PathParam("credentialId") UUID credentialId, @HeaderParam("Accept") String accept, Context context);
@Get("/credentials/{credentialId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getCredential(@HostParam("endpoint") String endpoint,
@PathParam("credentialId") UUID credentialId, @HeaderParam("Accept") String accept, Context context);
@Get("/credentials/{credentialId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getCredentialSync(@HostParam("endpoint") String endpoint,
@PathParam("credentialId") UUID credentialId, @HeaderParam("Accept") String accept, Context context);
@Get("/dataFeeds")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> listDataFeeds(@HostParam("endpoint") String endpoint,
@QueryParam("dataFeedName") String dataFeedName,
@QueryParam("dataSourceType") DataSourceType dataSourceType,
@QueryParam("granularityName") Granularity granularityName, @QueryParam("status") EntityStatus status,
@QueryParam("creator") String creator, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize, @HeaderParam("Accept") String accept, Context context);
@Get("/dataFeeds")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response listDataFeedsSync(@HostParam("endpoint") String endpoint,
@QueryParam("dataFeedName") String dataFeedName,
@QueryParam("dataSourceType") DataSourceType dataSourceType,
@QueryParam("granularityName") Granularity granularityName, @QueryParam("status") EntityStatus status,
@QueryParam("creator") String creator, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize, @HeaderParam("Accept") String accept, Context context);
@Post("/dataFeeds")
@ExpectedResponses({ 201 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono createDataFeed(@HostParam("endpoint") String endpoint,
@BodyParam("application/json") DataFeedDetail body, @HeaderParam("Accept") String accept, Context context);
@Post("/dataFeeds")
@ExpectedResponses({ 201 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
CreateDataFeedResponse createDataFeedSync(@HostParam("endpoint") String endpoint,
@BodyParam("application/json") DataFeedDetail body, @HeaderParam("Accept") String accept, Context context);
@Get("/dataFeeds/{dataFeedId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getDataFeedById(@HostParam("endpoint") String endpoint,
@PathParam("dataFeedId") UUID dataFeedId, @HeaderParam("Accept") String accept, Context context);
@Get("/dataFeeds/{dataFeedId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getDataFeedByIdSync(@HostParam("endpoint") String endpoint,
@PathParam("dataFeedId") UUID dataFeedId, @HeaderParam("Accept") String accept, Context context);
@Patch("/dataFeeds/{dataFeedId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> updateDataFeed(@HostParam("endpoint") String endpoint,
@PathParam("dataFeedId") UUID dataFeedId,
@BodyParam("application/merge-patch+json") DataFeedDetailPatch body, @HeaderParam("Accept") String accept,
Context context);
@Patch("/dataFeeds/{dataFeedId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response updateDataFeedSync(@HostParam("endpoint") String endpoint,
@PathParam("dataFeedId") UUID dataFeedId,
@BodyParam("application/merge-patch+json") DataFeedDetailPatch body, @HeaderParam("Accept") String accept,
Context context);
@Delete("/dataFeeds/{dataFeedId}")
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> deleteDataFeed(@HostParam("endpoint") String endpoint,
@PathParam("dataFeedId") UUID dataFeedId, @HeaderParam("Accept") String accept, Context context);
@Delete("/dataFeeds/{dataFeedId}")
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response deleteDataFeedSync(@HostParam("endpoint") String endpoint,
@PathParam("dataFeedId") UUID dataFeedId, @HeaderParam("Accept") String accept, Context context);
@Get("/feedback/metric/{feedbackId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getMetricFeedback(@HostParam("endpoint") String endpoint,
@PathParam("feedbackId") UUID feedbackId, @HeaderParam("Accept") String accept, Context context);
@Get("/feedback/metric/{feedbackId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getMetricFeedbackSync(@HostParam("endpoint") String endpoint,
@PathParam("feedbackId") UUID feedbackId, @HeaderParam("Accept") String accept, Context context);
@Post("/feedback/metric/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> listMetricFeedbacks(@HostParam("endpoint") String endpoint,
@QueryParam("$skip") Integer skip, @QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") MetricFeedbackFilter body, @HeaderParam("Accept") String accept,
Context context);
@Post("/feedback/metric/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response listMetricFeedbacksSync(@HostParam("endpoint") String endpoint,
@QueryParam("$skip") Integer skip, @QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") MetricFeedbackFilter body, @HeaderParam("Accept") String accept,
Context context);
@Post("/feedback/metric")
@ExpectedResponses({ 201 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono createMetricFeedback(@HostParam("endpoint") String endpoint,
@BodyParam("application/json") MetricFeedback body, @HeaderParam("Accept") String accept, Context context);
@Post("/feedback/metric")
@ExpectedResponses({ 201 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
CreateMetricFeedbackResponse createMetricFeedbackSync(@HostParam("endpoint") String endpoint,
@BodyParam("application/json") MetricFeedback body, @HeaderParam("Accept") String accept, Context context);
@Get("/hooks")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> listHooks(@HostParam("endpoint") String endpoint,
@QueryParam("hookName") String hookName, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize, @HeaderParam("Accept") String accept, Context context);
@Get("/hooks")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response listHooksSync(@HostParam("endpoint") String endpoint,
@QueryParam("hookName") String hookName, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize, @HeaderParam("Accept") String accept, Context context);
@Post("/hooks")
@ExpectedResponses({ 201 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono createHook(@HostParam("endpoint") String endpoint,
@BodyParam("application/json") HookInfo body, @HeaderParam("Accept") String accept, Context context);
@Post("/hooks")
@ExpectedResponses({ 201 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
CreateHookResponse createHookSync(@HostParam("endpoint") String endpoint,
@BodyParam("application/json") HookInfo body, @HeaderParam("Accept") String accept, Context context);
@Get("/hooks/{hookId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getHook(@HostParam("endpoint") String endpoint, @PathParam("hookId") UUID hookId,
@HeaderParam("Accept") String accept, Context context);
@Get("/hooks/{hookId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getHookSync(@HostParam("endpoint") String endpoint, @PathParam("hookId") UUID hookId,
@HeaderParam("Accept") String accept, Context context);
@Patch("/hooks/{hookId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> updateHook(@HostParam("endpoint") String endpoint, @PathParam("hookId") UUID hookId,
@BodyParam("application/merge-patch+json") HookInfoPatch body, @HeaderParam("Accept") String accept,
Context context);
@Patch("/hooks/{hookId}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response updateHookSync(@HostParam("endpoint") String endpoint, @PathParam("hookId") UUID hookId,
@BodyParam("application/merge-patch+json") HookInfoPatch body, @HeaderParam("Accept") String accept,
Context context);
@Delete("/hooks/{hookId}")
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> deleteHook(@HostParam("endpoint") String endpoint, @PathParam("hookId") UUID hookId,
@HeaderParam("Accept") String accept, Context context);
@Delete("/hooks/{hookId}")
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response deleteHookSync(@HostParam("endpoint") String endpoint, @PathParam("hookId") UUID hookId,
@HeaderParam("Accept") String accept, Context context);
@Post("/dataFeeds/{dataFeedId}/ingestionStatus/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getDataFeedIngestionStatus(@HostParam("endpoint") String endpoint,
@PathParam("dataFeedId") UUID dataFeedId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") IngestionStatusQueryOptions body, @HeaderParam("Accept") String accept,
Context context);
@Post("/dataFeeds/{dataFeedId}/ingestionStatus/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getDataFeedIngestionStatusSync(@HostParam("endpoint") String endpoint,
@PathParam("dataFeedId") UUID dataFeedId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") IngestionStatusQueryOptions body, @HeaderParam("Accept") String accept,
Context context);
@Post("/dataFeeds/{dataFeedId}/ingestionProgress/reset")
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> resetDataFeedIngestionStatus(@HostParam("endpoint") String endpoint,
@PathParam("dataFeedId") UUID dataFeedId, @BodyParam("application/json") IngestionProgressResetOptions body,
@HeaderParam("Accept") String accept, Context context);
@Post("/dataFeeds/{dataFeedId}/ingestionProgress/reset")
@ExpectedResponses({ 204 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response resetDataFeedIngestionStatusSync(@HostParam("endpoint") String endpoint,
@PathParam("dataFeedId") UUID dataFeedId, @BodyParam("application/json") IngestionProgressResetOptions body,
@HeaderParam("Accept") String accept, Context context);
@Get("/dataFeeds/{dataFeedId}/ingestionProgress")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getIngestionProgress(@HostParam("endpoint") String endpoint,
@PathParam("dataFeedId") UUID dataFeedId, @HeaderParam("Accept") String accept, Context context);
@Get("/dataFeeds/{dataFeedId}/ingestionProgress")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getIngestionProgressSync(@HostParam("endpoint") String endpoint,
@PathParam("dataFeedId") UUID dataFeedId, @HeaderParam("Accept") String accept, Context context);
@Post("/metrics/{metricId}/data/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getMetricData(@HostParam("endpoint") String endpoint,
@PathParam("metricId") UUID metricId, @BodyParam("application/json") MetricDataQueryOptions body,
@HeaderParam("Accept") String accept, Context context);
@Post("/metrics/{metricId}/data/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getMetricDataSync(@HostParam("endpoint") String endpoint,
@PathParam("metricId") UUID metricId, @BodyParam("application/json") MetricDataQueryOptions body,
@HeaderParam("Accept") String accept, Context context);
@Post("/metrics/{metricId}/series/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getMetricSeries(@HostParam("endpoint") String endpoint,
@PathParam("metricId") UUID metricId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") MetricSeriesQueryOptions body, @HeaderParam("Accept") String accept,
Context context);
@Post("/metrics/{metricId}/series/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getMetricSeriesSync(@HostParam("endpoint") String endpoint,
@PathParam("metricId") UUID metricId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") MetricSeriesQueryOptions body, @HeaderParam("Accept") String accept,
Context context);
@Post("/metrics/{metricId}/dimension/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getMetricDimension(@HostParam("endpoint") String endpoint,
@PathParam("metricId") UUID metricId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") MetricDimensionQueryOptions body, @HeaderParam("Accept") String accept,
Context context);
@Post("/metrics/{metricId}/dimension/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getMetricDimensionSync(@HostParam("endpoint") String endpoint,
@PathParam("metricId") UUID metricId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") MetricDimensionQueryOptions body, @HeaderParam("Accept") String accept,
Context context);
@Get("/metrics/{metricId}/enrichment/anomalyDetection/configurations")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getAnomalyDetectionConfigurationsByMetric(
@HostParam("endpoint") String endpoint, @PathParam("metricId") UUID metricId,
@QueryParam("$skip") Integer skip, @QueryParam("$maxpagesize") Integer maxpagesize,
@HeaderParam("Accept") String accept, Context context);
@Get("/metrics/{metricId}/enrichment/anomalyDetection/configurations")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getAnomalyDetectionConfigurationsByMetricSync(
@HostParam("endpoint") String endpoint, @PathParam("metricId") UUID metricId,
@QueryParam("$skip") Integer skip, @QueryParam("$maxpagesize") Integer maxpagesize,
@HeaderParam("Accept") String accept, Context context);
@Post("/metrics/{metricId}/status/enrichment/anomalyDetection/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getEnrichmentStatusByMetric(@HostParam("endpoint") String endpoint,
@PathParam("metricId") UUID metricId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") EnrichmentStatusQueryOption body, @HeaderParam("Accept") String accept,
Context context);
@Post("/metrics/{metricId}/status/enrichment/anomalyDetection/query")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getEnrichmentStatusByMetricSync(@HostParam("endpoint") String endpoint,
@PathParam("metricId") UUID metricId, @QueryParam("$skip") Integer skip,
@QueryParam("$maxpagesize") Integer maxpagesize,
@BodyParam("application/json") EnrichmentStatusQueryOption body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getAlertsByAnomalyAlertingConfigurationNext(
@HostParam("endpoint") String endpoint, @PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") AlertingResultQuery body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getAlertsByAnomalyAlertingConfigurationNextSync(
@HostParam("endpoint") String endpoint, @PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") AlertingResultQuery body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getAnomaliesByAnomalyDetectionConfigurationNext(
@HostParam("endpoint") String endpoint, @PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") DetectionAnomalyResultQuery body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getAnomaliesByAnomalyDetectionConfigurationNextSync(
@HostParam("endpoint") String endpoint, @PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") DetectionAnomalyResultQuery body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getDimensionOfAnomaliesByAnomalyDetectionConfigurationNext(
@HostParam("endpoint") String endpoint, @PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") AnomalyDimensionQuery body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getDimensionOfAnomaliesByAnomalyDetectionConfigurationNextSync(
@HostParam("endpoint") String endpoint, @PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") AnomalyDimensionQuery body, @HeaderParam("Accept") String accept,
Context context);
@Post("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> listMetricFeedbacksNext(@HostParam("endpoint") String endpoint,
@PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") MetricFeedbackFilter body, @HeaderParam("Accept") String accept,
Context context);
@Post("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response listMetricFeedbacksNextSync(@HostParam("endpoint") String endpoint,
@PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") MetricFeedbackFilter body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getDataFeedIngestionStatusNext(@HostParam("endpoint") String endpoint,
@PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") IngestionStatusQueryOptions body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getDataFeedIngestionStatusNextSync(@HostParam("endpoint") String endpoint,
@PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") IngestionStatusQueryOptions body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getMetricSeriesNext(@HostParam("endpoint") String endpoint,
@PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") MetricSeriesQueryOptions body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getMetricSeriesNextSync(@HostParam("endpoint") String endpoint,
@PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") MetricSeriesQueryOptions body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getMetricDimensionNext(@HostParam("endpoint") String endpoint,
@PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") MetricDimensionQueryOptions body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getMetricDimensionNextSync(@HostParam("endpoint") String endpoint,
@PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") MetricDimensionQueryOptions body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getEnrichmentStatusByMetricNext(@HostParam("endpoint") String endpoint,
@PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") EnrichmentStatusQueryOption body, @HeaderParam("Accept") String accept,
Context context);
@Post("/{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getEnrichmentStatusByMetricNextSync(@HostParam("endpoint") String endpoint,
@PathParam(value = "nextLink", encoded = true) String nextLink,
@BodyParam("application/json") EnrichmentStatusQueryOption body, @HeaderParam("Accept") String accept,
Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getAnomaliesFromAlertByAnomalyAlertingConfigurationNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getAnomaliesFromAlertByAnomalyAlertingConfigurationNextSync(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getIncidentsFromAlertByAnomalyAlertingConfigurationNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getIncidentsFromAlertByAnomalyAlertingConfigurationNextSync(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono>
getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response
getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationNextSync(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getIncidentsByAnomalyDetectionConfigurationNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getIncidentsByAnomalyDetectionConfigurationNextSync(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getIncidentsByAnomalyDetectionConfigurationNextPagesNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getIncidentsByAnomalyDetectionConfigurationNextPagesNextSync(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> listCredentialsNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response listCredentialsNextSync(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> listDataFeedsNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
@HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response listDataFeedsNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
@HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> listHooksNext(@PathParam(value = "nextLink", encoded = true) String nextLink,
@HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response listHooksNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
@HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Mono> getAnomalyDetectionConfigurationsByMetricNext(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(MetricsAdvisorResponseException.class)
Response getAnomalyDetectionConfigurationsByMetricNextSync(
@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
/**
* Get latest usage stats.
*
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return latest usage stats along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getActiveSeriesCountWithResponseAsync() {
final String accept = "application/json";
return FluxUtil.withContext(context -> service.getActiveSeriesCount(this.getEndpoint(), accept, context));
}
/**
* Get latest usage stats.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return latest usage stats along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getActiveSeriesCountWithResponseAsync(Context context) {
final String accept = "application/json";
return service.getActiveSeriesCount(this.getEndpoint(), accept, context);
}
/**
* Get latest usage stats.
*
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return latest usage stats on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono getActiveSeriesCountAsync() {
return getActiveSeriesCountWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Get latest usage stats.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return latest usage stats on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono getActiveSeriesCountAsync(Context context) {
return getActiveSeriesCountWithResponseAsync(context).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Get latest usage stats.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return latest usage stats along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getActiveSeriesCountWithResponse(Context context) {
final String accept = "application/json";
return service.getActiveSeriesCountSync(this.getEndpoint(), accept, context);
}
/**
* Get latest usage stats.
*
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return latest usage stats.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public UsageStats getActiveSeriesCount() {
return getActiveSeriesCountWithResponse(Context.NONE).getValue();
}
/**
* Query a single anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono>
getAnomalyAlertingConfigurationWithResponseAsync(UUID configurationId) {
final String accept = "application/json";
return FluxUtil.withContext(
context -> service.getAnomalyAlertingConfiguration(this.getEndpoint(), configurationId, accept, context));
}
/**
* Query a single anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono>
getAnomalyAlertingConfigurationWithResponseAsync(UUID configurationId, Context context) {
final String accept = "application/json";
return service.getAnomalyAlertingConfiguration(this.getEndpoint(), configurationId, accept, context);
}
/**
* Query a single anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono getAnomalyAlertingConfigurationAsync(UUID configurationId) {
return getAnomalyAlertingConfigurationWithResponseAsync(configurationId)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Query a single anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono getAnomalyAlertingConfigurationAsync(UUID configurationId,
Context context) {
return getAnomalyAlertingConfigurationWithResponseAsync(configurationId, context)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Query a single anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getAnomalyAlertingConfigurationWithResponse(UUID configurationId,
Context context) {
final String accept = "application/json";
return service.getAnomalyAlertingConfigurationSync(this.getEndpoint(), configurationId, accept, context);
}
/**
* Query a single anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public AnomalyAlertingConfiguration getAnomalyAlertingConfiguration(UUID configurationId) {
return getAnomalyAlertingConfigurationWithResponse(configurationId, Context.NONE).getValue();
}
/**
* Update anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body anomaly alerting configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> updateAnomalyAlertingConfigurationWithResponseAsync(
UUID configurationId, AnomalyAlertingConfigurationPatch body) {
final String accept = "application/json";
return FluxUtil.withContext(context -> service.updateAnomalyAlertingConfiguration(this.getEndpoint(),
configurationId, body, accept, context));
}
/**
* Update anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body anomaly alerting configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> updateAnomalyAlertingConfigurationWithResponseAsync(
UUID configurationId, AnomalyAlertingConfigurationPatch body, Context context) {
final String accept = "application/json";
return service.updateAnomalyAlertingConfiguration(this.getEndpoint(), configurationId, body, accept, context);
}
/**
* Update anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body anomaly alerting configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono updateAnomalyAlertingConfigurationAsync(UUID configurationId,
AnomalyAlertingConfigurationPatch body) {
return updateAnomalyAlertingConfigurationWithResponseAsync(configurationId, body)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Update anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body anomaly alerting configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono updateAnomalyAlertingConfigurationAsync(UUID configurationId,
AnomalyAlertingConfigurationPatch body, Context context) {
return updateAnomalyAlertingConfigurationWithResponseAsync(configurationId, body, context)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Update anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body anomaly alerting configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response updateAnomalyAlertingConfigurationWithResponse(UUID configurationId,
AnomalyAlertingConfigurationPatch body, Context context) {
final String accept = "application/json";
return service.updateAnomalyAlertingConfigurationSync(this.getEndpoint(), configurationId, body, accept,
context);
}
/**
* Update anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body anomaly alerting configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public AnomalyAlertingConfiguration updateAnomalyAlertingConfiguration(UUID configurationId,
AnomalyAlertingConfigurationPatch body) {
return updateAnomalyAlertingConfigurationWithResponse(configurationId, body, Context.NONE).getValue();
}
/**
* Delete anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> deleteAnomalyAlertingConfigurationWithResponseAsync(UUID configurationId) {
final String accept = "application/json";
return FluxUtil.withContext(context -> service.deleteAnomalyAlertingConfiguration(this.getEndpoint(),
configurationId, accept, context));
}
/**
* Delete anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> deleteAnomalyAlertingConfigurationWithResponseAsync(UUID configurationId,
Context context) {
final String accept = "application/json";
return service.deleteAnomalyAlertingConfiguration(this.getEndpoint(), configurationId, accept, context);
}
/**
* Delete anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono deleteAnomalyAlertingConfigurationAsync(UUID configurationId) {
return deleteAnomalyAlertingConfigurationWithResponseAsync(configurationId).flatMap(ignored -> Mono.empty());
}
/**
* Delete anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono deleteAnomalyAlertingConfigurationAsync(UUID configurationId, Context context) {
return deleteAnomalyAlertingConfigurationWithResponseAsync(configurationId, context)
.flatMap(ignored -> Mono.empty());
}
/**
* Delete anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteAnomalyAlertingConfigurationWithResponse(UUID configurationId, Context context) {
final String accept = "application/json";
return service.deleteAnomalyAlertingConfigurationSync(this.getEndpoint(), configurationId, accept, context);
}
/**
* Delete anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public void deleteAnomalyAlertingConfiguration(UUID configurationId) {
deleteAnomalyAlertingConfigurationWithResponse(configurationId, Context.NONE);
}
/**
* Create anomaly alerting configuration.
*
* @param body anomaly alerting configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono
createAnomalyAlertingConfigurationWithResponseAsync(AnomalyAlertingConfiguration body) {
final String accept = "application/json";
return FluxUtil.withContext(
context -> service.createAnomalyAlertingConfiguration(this.getEndpoint(), body, accept, context));
}
/**
* Create anomaly alerting configuration.
*
* @param body anomaly alerting configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono
createAnomalyAlertingConfigurationWithResponseAsync(AnomalyAlertingConfiguration body, Context context) {
final String accept = "application/json";
return service.createAnomalyAlertingConfiguration(this.getEndpoint(), body, accept, context);
}
/**
* Create anomaly alerting configuration.
*
* @param body anomaly alerting configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono createAnomalyAlertingConfigurationAsync(AnomalyAlertingConfiguration body) {
return createAnomalyAlertingConfigurationWithResponseAsync(body).flatMap(ignored -> Mono.empty());
}
/**
* Create anomaly alerting configuration.
*
* @param body anomaly alerting configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono createAnomalyAlertingConfigurationAsync(AnomalyAlertingConfiguration body, Context context) {
return createAnomalyAlertingConfigurationWithResponseAsync(body, context).flatMap(ignored -> Mono.empty());
}
/**
* Create anomaly alerting configuration.
*
* @param body anomaly alerting configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public CreateAnomalyAlertingConfigurationResponse
createAnomalyAlertingConfigurationWithResponse(AnomalyAlertingConfiguration body, Context context) {
final String accept = "application/json";
return service.createAnomalyAlertingConfigurationSync(this.getEndpoint(), body, accept, context);
}
/**
* Create anomaly alerting configuration.
*
* @param body anomaly alerting configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public void createAnomalyAlertingConfiguration(AnomalyAlertingConfiguration body) {
createAnomalyAlertingConfigurationWithResponse(body, Context.NONE);
}
/**
* Query alerts under anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body query alerting result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getAlertsByAnomalyAlertingConfigurationSinglePageAsync(
UUID configurationId, AlertingResultQuery body, Integer skip, Integer maxpagesize) {
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getAlertsByAnomalyAlertingConfiguration(this.getEndpoint(), configurationId,
skip, maxpagesize, body, accept, context))
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query alerts under anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body query alerting result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getAlertsByAnomalyAlertingConfigurationSinglePageAsync(
UUID configurationId, AlertingResultQuery body, Integer skip, Integer maxpagesize, Context context) {
final String accept = "application/json";
return service
.getAlertsByAnomalyAlertingConfiguration(this.getEndpoint(), configurationId, skip, maxpagesize, body,
accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query alerts under anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body query alerting result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getAlertsByAnomalyAlertingConfigurationAsync(UUID configurationId,
AlertingResultQuery body, Integer skip, Integer maxpagesize) {
return new PagedFlux<>(
() -> getAlertsByAnomalyAlertingConfigurationSinglePageAsync(configurationId, body, skip, maxpagesize),
nextLink -> getAlertsByAnomalyAlertingConfigurationNextSinglePageAsync(nextLink, body));
}
/**
* Query alerts under anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body query alerting result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getAlertsByAnomalyAlertingConfigurationAsync(UUID configurationId,
AlertingResultQuery body, Integer skip, Integer maxpagesize, Context context) {
return new PagedFlux<>(
() -> getAlertsByAnomalyAlertingConfigurationSinglePageAsync(configurationId, body, skip, maxpagesize,
context),
nextLink -> getAlertsByAnomalyAlertingConfigurationNextSinglePageAsync(nextLink, body, context));
}
/**
* Query alerts under anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body query alerting result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getAlertsByAnomalyAlertingConfigurationSinglePage(UUID configurationId,
AlertingResultQuery body, Integer skip, Integer maxpagesize) {
final String accept = "application/json";
Response res = service.getAlertsByAnomalyAlertingConfigurationSync(this.getEndpoint(),
configurationId, skip, maxpagesize, body, accept, Context.NONE);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query alerts under anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body query alerting result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getAlertsByAnomalyAlertingConfigurationSinglePage(UUID configurationId,
AlertingResultQuery body, Integer skip, Integer maxpagesize, Context context) {
final String accept = "application/json";
Response res = service.getAlertsByAnomalyAlertingConfigurationSync(this.getEndpoint(),
configurationId, skip, maxpagesize, body, accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query alerts under anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body query alerting result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getAlertsByAnomalyAlertingConfiguration(UUID configurationId,
AlertingResultQuery body, Integer skip, Integer maxpagesize) {
return new PagedIterable<>(() -> getAlertsByAnomalyAlertingConfigurationSinglePage(configurationId, body, skip,
maxpagesize, Context.NONE),
nextLink -> getAlertsByAnomalyAlertingConfigurationNextSinglePage(nextLink, body));
}
/**
* Query alerts under anomaly alerting configuration.
*
* @param configurationId anomaly alerting configuration unique id.
* @param body query alerting result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getAlertsByAnomalyAlertingConfiguration(UUID configurationId,
AlertingResultQuery body, Integer skip, Integer maxpagesize, Context context) {
return new PagedIterable<>(
() -> getAlertsByAnomalyAlertingConfigurationSinglePage(configurationId, body, skip, maxpagesize, context),
nextLink -> getAlertsByAnomalyAlertingConfigurationNextSinglePage(nextLink, body, context));
}
/**
* Query anomalies under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getAnomaliesFromAlertByAnomalyAlertingConfigurationSinglePageAsync(
UUID configurationId, String alertId, Integer skip, Integer maxpagesize) {
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getAnomaliesFromAlertByAnomalyAlertingConfiguration(this.getEndpoint(),
configurationId, alertId, skip, maxpagesize, accept, context))
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query anomalies under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getAnomaliesFromAlertByAnomalyAlertingConfigurationSinglePageAsync(
UUID configurationId, String alertId, Integer skip, Integer maxpagesize, Context context) {
final String accept = "application/json";
return service
.getAnomaliesFromAlertByAnomalyAlertingConfiguration(this.getEndpoint(), configurationId, alertId, skip,
maxpagesize, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query anomalies under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getAnomaliesFromAlertByAnomalyAlertingConfigurationAsync(UUID configurationId,
String alertId, Integer skip, Integer maxpagesize) {
return new PagedFlux<>(
() -> getAnomaliesFromAlertByAnomalyAlertingConfigurationSinglePageAsync(configurationId, alertId, skip,
maxpagesize),
nextLink -> getAnomaliesFromAlertByAnomalyAlertingConfigurationNextSinglePageAsync(nextLink));
}
/**
* Query anomalies under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getAnomaliesFromAlertByAnomalyAlertingConfigurationAsync(UUID configurationId,
String alertId, Integer skip, Integer maxpagesize, Context context) {
return new PagedFlux<>(
() -> getAnomaliesFromAlertByAnomalyAlertingConfigurationSinglePageAsync(configurationId, alertId, skip,
maxpagesize, context),
nextLink -> getAnomaliesFromAlertByAnomalyAlertingConfigurationNextSinglePageAsync(nextLink, context));
}
/**
* Query anomalies under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getAnomaliesFromAlertByAnomalyAlertingConfigurationSinglePage(
UUID configurationId, String alertId, Integer skip, Integer maxpagesize) {
final String accept = "application/json";
Response res = service.getAnomaliesFromAlertByAnomalyAlertingConfigurationSync(
this.getEndpoint(), configurationId, alertId, skip, maxpagesize, accept, Context.NONE);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query anomalies under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getAnomaliesFromAlertByAnomalyAlertingConfigurationSinglePage(
UUID configurationId, String alertId, Integer skip, Integer maxpagesize, Context context) {
final String accept = "application/json";
Response res = service.getAnomaliesFromAlertByAnomalyAlertingConfigurationSync(
this.getEndpoint(), configurationId, alertId, skip, maxpagesize, accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query anomalies under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getAnomaliesFromAlertByAnomalyAlertingConfiguration(UUID configurationId,
String alertId, Integer skip, Integer maxpagesize) {
return new PagedIterable<>(
() -> getAnomaliesFromAlertByAnomalyAlertingConfigurationSinglePage(configurationId, alertId, skip,
maxpagesize, Context.NONE),
nextLink -> getAnomaliesFromAlertByAnomalyAlertingConfigurationNextSinglePage(nextLink));
}
/**
* Query anomalies under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getAnomaliesFromAlertByAnomalyAlertingConfiguration(UUID configurationId,
String alertId, Integer skip, Integer maxpagesize, Context context) {
return new PagedIterable<>(
() -> getAnomaliesFromAlertByAnomalyAlertingConfigurationSinglePage(configurationId, alertId, skip,
maxpagesize, context),
nextLink -> getAnomaliesFromAlertByAnomalyAlertingConfigurationNextSinglePage(nextLink, context));
}
/**
* Query incidents under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getIncidentsFromAlertByAnomalyAlertingConfigurationSinglePageAsync(
UUID configurationId, String alertId, Integer skip, Integer maxpagesize) {
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getIncidentsFromAlertByAnomalyAlertingConfiguration(this.getEndpoint(),
configurationId, alertId, skip, maxpagesize, accept, context))
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query incidents under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getIncidentsFromAlertByAnomalyAlertingConfigurationSinglePageAsync(
UUID configurationId, String alertId, Integer skip, Integer maxpagesize, Context context) {
final String accept = "application/json";
return service
.getIncidentsFromAlertByAnomalyAlertingConfiguration(this.getEndpoint(), configurationId, alertId, skip,
maxpagesize, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query incidents under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getIncidentsFromAlertByAnomalyAlertingConfigurationAsync(UUID configurationId,
String alertId, Integer skip, Integer maxpagesize) {
return new PagedFlux<>(
() -> getIncidentsFromAlertByAnomalyAlertingConfigurationSinglePageAsync(configurationId, alertId, skip,
maxpagesize),
nextLink -> getIncidentsFromAlertByAnomalyAlertingConfigurationNextSinglePageAsync(nextLink));
}
/**
* Query incidents under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getIncidentsFromAlertByAnomalyAlertingConfigurationAsync(UUID configurationId,
String alertId, Integer skip, Integer maxpagesize, Context context) {
return new PagedFlux<>(
() -> getIncidentsFromAlertByAnomalyAlertingConfigurationSinglePageAsync(configurationId, alertId, skip,
maxpagesize, context),
nextLink -> getIncidentsFromAlertByAnomalyAlertingConfigurationNextSinglePageAsync(nextLink, context));
}
/**
* Query incidents under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getIncidentsFromAlertByAnomalyAlertingConfigurationSinglePage(
UUID configurationId, String alertId, Integer skip, Integer maxpagesize) {
final String accept = "application/json";
Response res = service.getIncidentsFromAlertByAnomalyAlertingConfigurationSync(
this.getEndpoint(), configurationId, alertId, skip, maxpagesize, accept, Context.NONE);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query incidents under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getIncidentsFromAlertByAnomalyAlertingConfigurationSinglePage(
UUID configurationId, String alertId, Integer skip, Integer maxpagesize, Context context) {
final String accept = "application/json";
Response res = service.getIncidentsFromAlertByAnomalyAlertingConfigurationSync(
this.getEndpoint(), configurationId, alertId, skip, maxpagesize, accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query incidents under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getIncidentsFromAlertByAnomalyAlertingConfiguration(UUID configurationId,
String alertId, Integer skip, Integer maxpagesize) {
return new PagedIterable<>(
() -> getIncidentsFromAlertByAnomalyAlertingConfigurationSinglePage(configurationId, alertId, skip,
maxpagesize, Context.NONE),
nextLink -> getIncidentsFromAlertByAnomalyAlertingConfigurationNextSinglePage(nextLink));
}
/**
* Query incidents under a specific alert.
*
* @param configurationId anomaly alerting configuration unique id.
* @param alertId alert id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getIncidentsFromAlertByAnomalyAlertingConfiguration(UUID configurationId,
String alertId, Integer skip, Integer maxpagesize, Context context) {
return new PagedIterable<>(
() -> getIncidentsFromAlertByAnomalyAlertingConfigurationSinglePage(configurationId, alertId, skip,
maxpagesize, context),
nextLink -> getIncidentsFromAlertByAnomalyAlertingConfigurationNextSinglePage(nextLink, context));
}
/**
* Query a single anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono>
getAnomalyDetectionConfigurationWithResponseAsync(UUID configurationId) {
final String accept = "application/json";
return FluxUtil.withContext(
context -> service.getAnomalyDetectionConfiguration(this.getEndpoint(), configurationId, accept, context));
}
/**
* Query a single anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono>
getAnomalyDetectionConfigurationWithResponseAsync(UUID configurationId, Context context) {
final String accept = "application/json";
return service.getAnomalyDetectionConfiguration(this.getEndpoint(), configurationId, accept, context);
}
/**
* Query a single anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono getAnomalyDetectionConfigurationAsync(UUID configurationId) {
return getAnomalyDetectionConfigurationWithResponseAsync(configurationId)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Query a single anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono getAnomalyDetectionConfigurationAsync(UUID configurationId,
Context context) {
return getAnomalyDetectionConfigurationWithResponseAsync(configurationId, context)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Query a single anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getAnomalyDetectionConfigurationWithResponse(UUID configurationId,
Context context) {
final String accept = "application/json";
return service.getAnomalyDetectionConfigurationSync(this.getEndpoint(), configurationId, accept, context);
}
/**
* Query a single anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public AnomalyDetectionConfiguration getAnomalyDetectionConfiguration(UUID configurationId) {
return getAnomalyDetectionConfigurationWithResponse(configurationId, Context.NONE).getValue();
}
/**
* Update anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body anomaly detection configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> updateAnomalyDetectionConfigurationWithResponseAsync(
UUID configurationId, AnomalyDetectionConfigurationPatch body) {
final String accept = "application/json";
return FluxUtil.withContext(context -> service.updateAnomalyDetectionConfiguration(this.getEndpoint(),
configurationId, body, accept, context));
}
/**
* Update anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body anomaly detection configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> updateAnomalyDetectionConfigurationWithResponseAsync(
UUID configurationId, AnomalyDetectionConfigurationPatch body, Context context) {
final String accept = "application/json";
return service.updateAnomalyDetectionConfiguration(this.getEndpoint(), configurationId, body, accept, context);
}
/**
* Update anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body anomaly detection configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono updateAnomalyDetectionConfigurationAsync(UUID configurationId,
AnomalyDetectionConfigurationPatch body) {
return updateAnomalyDetectionConfigurationWithResponseAsync(configurationId, body)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Update anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body anomaly detection configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono updateAnomalyDetectionConfigurationAsync(UUID configurationId,
AnomalyDetectionConfigurationPatch body, Context context) {
return updateAnomalyDetectionConfigurationWithResponseAsync(configurationId, body, context)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Update anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body anomaly detection configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response updateAnomalyDetectionConfigurationWithResponse(UUID configurationId,
AnomalyDetectionConfigurationPatch body, Context context) {
final String accept = "application/json";
return service.updateAnomalyDetectionConfigurationSync(this.getEndpoint(), configurationId, body, accept,
context);
}
/**
* Update anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body anomaly detection configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public AnomalyDetectionConfiguration updateAnomalyDetectionConfiguration(UUID configurationId,
AnomalyDetectionConfigurationPatch body) {
return updateAnomalyDetectionConfigurationWithResponse(configurationId, body, Context.NONE).getValue();
}
/**
* Delete anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> deleteAnomalyDetectionConfigurationWithResponseAsync(UUID configurationId) {
final String accept = "application/json";
return FluxUtil.withContext(context -> service.deleteAnomalyDetectionConfiguration(this.getEndpoint(),
configurationId, accept, context));
}
/**
* Delete anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> deleteAnomalyDetectionConfigurationWithResponseAsync(UUID configurationId,
Context context) {
final String accept = "application/json";
return service.deleteAnomalyDetectionConfiguration(this.getEndpoint(), configurationId, accept, context);
}
/**
* Delete anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono deleteAnomalyDetectionConfigurationAsync(UUID configurationId) {
return deleteAnomalyDetectionConfigurationWithResponseAsync(configurationId).flatMap(ignored -> Mono.empty());
}
/**
* Delete anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono deleteAnomalyDetectionConfigurationAsync(UUID configurationId, Context context) {
return deleteAnomalyDetectionConfigurationWithResponseAsync(configurationId, context)
.flatMap(ignored -> Mono.empty());
}
/**
* Delete anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response deleteAnomalyDetectionConfigurationWithResponse(UUID configurationId, Context context) {
final String accept = "application/json";
return service.deleteAnomalyDetectionConfigurationSync(this.getEndpoint(), configurationId, accept, context);
}
/**
* Delete anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public void deleteAnomalyDetectionConfiguration(UUID configurationId) {
deleteAnomalyDetectionConfigurationWithResponse(configurationId, Context.NONE);
}
/**
* Create anomaly detection configuration.
*
* @param body anomaly detection configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono
createAnomalyDetectionConfigurationWithResponseAsync(AnomalyDetectionConfiguration body) {
final String accept = "application/json";
return FluxUtil.withContext(
context -> service.createAnomalyDetectionConfiguration(this.getEndpoint(), body, accept, context));
}
/**
* Create anomaly detection configuration.
*
* @param body anomaly detection configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono
createAnomalyDetectionConfigurationWithResponseAsync(AnomalyDetectionConfiguration body, Context context) {
final String accept = "application/json";
return service.createAnomalyDetectionConfiguration(this.getEndpoint(), body, accept, context);
}
/**
* Create anomaly detection configuration.
*
* @param body anomaly detection configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono createAnomalyDetectionConfigurationAsync(AnomalyDetectionConfiguration body) {
return createAnomalyDetectionConfigurationWithResponseAsync(body).flatMap(ignored -> Mono.empty());
}
/**
* Create anomaly detection configuration.
*
* @param body anomaly detection configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono createAnomalyDetectionConfigurationAsync(AnomalyDetectionConfiguration body, Context context) {
return createAnomalyDetectionConfigurationWithResponseAsync(body, context).flatMap(ignored -> Mono.empty());
}
/**
* Create anomaly detection configuration.
*
* @param body anomaly detection configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public CreateAnomalyDetectionConfigurationResponse
createAnomalyDetectionConfigurationWithResponse(AnomalyDetectionConfiguration body, Context context) {
final String accept = "application/json";
return service.createAnomalyDetectionConfigurationSync(this.getEndpoint(), body, accept, context);
}
/**
* Create anomaly detection configuration.
*
* @param body anomaly detection configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public void createAnomalyDetectionConfiguration(AnomalyDetectionConfiguration body) {
createAnomalyDetectionConfigurationWithResponse(body, Context.NONE);
}
/**
* List all anomaly alerting configurations for specific anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono>
getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationSinglePageAsync(UUID configurationId,
Integer skip, Integer maxpagesize) {
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getAnomalyAlertingConfigurationsByAnomalyDetectionConfiguration(
this.getEndpoint(), configurationId, skip, maxpagesize, accept, context))
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* List all anomaly alerting configurations for specific anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono>
getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationSinglePageAsync(UUID configurationId,
Integer skip, Integer maxpagesize, Context context) {
final String accept = "application/json";
return service
.getAnomalyAlertingConfigurationsByAnomalyDetectionConfiguration(this.getEndpoint(), configurationId, skip,
maxpagesize, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* List all anomaly alerting configurations for specific anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationAsync(
UUID configurationId, Integer skip, Integer maxpagesize) {
return new PagedFlux<>(
() -> getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationSinglePageAsync(configurationId, skip,
maxpagesize),
nextLink -> getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationNextSinglePageAsync(nextLink));
}
/**
* List all anomaly alerting configurations for specific anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationAsync(
UUID configurationId, Integer skip, Integer maxpagesize, Context context) {
return new PagedFlux<>(
() -> getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationSinglePageAsync(configurationId, skip,
maxpagesize, context),
nextLink -> getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationNextSinglePageAsync(nextLink,
context));
}
/**
* List all anomaly alerting configurations for specific anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse
getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationSinglePage(UUID configurationId, Integer skip,
Integer maxpagesize) {
final String accept = "application/json";
Response res
= service.getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationSync(this.getEndpoint(),
configurationId, skip, maxpagesize, accept, Context.NONE);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* List all anomaly alerting configurations for specific anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse
getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationSinglePage(UUID configurationId, Integer skip,
Integer maxpagesize, Context context) {
final String accept = "application/json";
Response res
= service.getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationSync(this.getEndpoint(),
configurationId, skip, maxpagesize, accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* List all anomaly alerting configurations for specific anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getAnomalyAlertingConfigurationsByAnomalyDetectionConfiguration(
UUID configurationId, Integer skip, Integer maxpagesize) {
return new PagedIterable<>(
() -> getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationSinglePage(configurationId, skip,
maxpagesize, Context.NONE),
nextLink -> getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationNextSinglePage(nextLink));
}
/**
* List all anomaly alerting configurations for specific anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getAnomalyAlertingConfigurationsByAnomalyDetectionConfiguration(
UUID configurationId, Integer skip, Integer maxpagesize, Context context) {
return new PagedIterable<>(
() -> getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationSinglePage(configurationId, skip,
maxpagesize, context),
nextLink -> getAnomalyAlertingConfigurationsByAnomalyDetectionConfigurationNextSinglePage(nextLink,
context));
}
/**
* Query series enriched by anomaly detection.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query series detection result request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono>
getSeriesByAnomalyDetectionConfigurationWithResponseAsync(UUID configurationId, DetectionSeriesQuery body) {
final String accept = "application/json";
return FluxUtil.withContext(context -> service.getSeriesByAnomalyDetectionConfiguration(this.getEndpoint(),
configurationId, body, accept, context));
}
/**
* Query series enriched by anomaly detection.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query series detection result request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getSeriesByAnomalyDetectionConfigurationWithResponseAsync(
UUID configurationId, DetectionSeriesQuery body, Context context) {
final String accept = "application/json";
return service.getSeriesByAnomalyDetectionConfiguration(this.getEndpoint(), configurationId, body, accept,
context);
}
/**
* Query series enriched by anomaly detection.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query series detection result request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono getSeriesByAnomalyDetectionConfigurationAsync(UUID configurationId,
DetectionSeriesQuery body) {
return getSeriesByAnomalyDetectionConfigurationWithResponseAsync(configurationId, body)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Query series enriched by anomaly detection.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query series detection result request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono getSeriesByAnomalyDetectionConfigurationAsync(UUID configurationId,
DetectionSeriesQuery body, Context context) {
return getSeriesByAnomalyDetectionConfigurationWithResponseAsync(configurationId, body, context)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Query series enriched by anomaly detection.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query series detection result request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getSeriesByAnomalyDetectionConfigurationWithResponse(UUID configurationId,
DetectionSeriesQuery body, Context context) {
final String accept = "application/json";
return service.getSeriesByAnomalyDetectionConfigurationSync(this.getEndpoint(), configurationId, body, accept,
context);
}
/**
* Query series enriched by anomaly detection.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query series detection result request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public SeriesResultList getSeriesByAnomalyDetectionConfiguration(UUID configurationId, DetectionSeriesQuery body) {
return getSeriesByAnomalyDetectionConfigurationWithResponse(configurationId, body, Context.NONE).getValue();
}
/**
* Query anomalies under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection anomaly result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getAnomaliesByAnomalyDetectionConfigurationSinglePageAsync(
UUID configurationId, DetectionAnomalyResultQuery body, Integer skip, Integer maxpagesize) {
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getAnomaliesByAnomalyDetectionConfiguration(this.getEndpoint(),
configurationId, skip, maxpagesize, body, accept, context))
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query anomalies under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection anomaly result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getAnomaliesByAnomalyDetectionConfigurationSinglePageAsync(
UUID configurationId, DetectionAnomalyResultQuery body, Integer skip, Integer maxpagesize, Context context) {
final String accept = "application/json";
return service
.getAnomaliesByAnomalyDetectionConfiguration(this.getEndpoint(), configurationId, skip, maxpagesize, body,
accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query anomalies under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection anomaly result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getAnomaliesByAnomalyDetectionConfigurationAsync(UUID configurationId,
DetectionAnomalyResultQuery body, Integer skip, Integer maxpagesize) {
return new PagedFlux<>(
() -> getAnomaliesByAnomalyDetectionConfigurationSinglePageAsync(configurationId, body, skip, maxpagesize),
nextLink -> getAnomaliesByAnomalyDetectionConfigurationNextSinglePageAsync(nextLink, body));
}
/**
* Query anomalies under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection anomaly result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getAnomaliesByAnomalyDetectionConfigurationAsync(UUID configurationId,
DetectionAnomalyResultQuery body, Integer skip, Integer maxpagesize, Context context) {
return new PagedFlux<>(
() -> getAnomaliesByAnomalyDetectionConfigurationSinglePageAsync(configurationId, body, skip, maxpagesize,
context),
nextLink -> getAnomaliesByAnomalyDetectionConfigurationNextSinglePageAsync(nextLink, body, context));
}
/**
* Query anomalies under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection anomaly result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getAnomaliesByAnomalyDetectionConfigurationSinglePage(UUID configurationId,
DetectionAnomalyResultQuery body, Integer skip, Integer maxpagesize) {
final String accept = "application/json";
Response res = service.getAnomaliesByAnomalyDetectionConfigurationSync(this.getEndpoint(),
configurationId, skip, maxpagesize, body, accept, Context.NONE);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query anomalies under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection anomaly result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getAnomaliesByAnomalyDetectionConfigurationSinglePage(UUID configurationId,
DetectionAnomalyResultQuery body, Integer skip, Integer maxpagesize, Context context) {
final String accept = "application/json";
Response res = service.getAnomaliesByAnomalyDetectionConfigurationSync(this.getEndpoint(),
configurationId, skip, maxpagesize, body, accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query anomalies under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection anomaly result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getAnomaliesByAnomalyDetectionConfiguration(UUID configurationId,
DetectionAnomalyResultQuery body, Integer skip, Integer maxpagesize) {
return new PagedIterable<>(() -> getAnomaliesByAnomalyDetectionConfigurationSinglePage(configurationId, body,
skip, maxpagesize, Context.NONE),
nextLink -> getAnomaliesByAnomalyDetectionConfigurationNextSinglePage(nextLink, body));
}
/**
* Query anomalies under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection anomaly result request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getAnomaliesByAnomalyDetectionConfiguration(UUID configurationId,
DetectionAnomalyResultQuery body, Integer skip, Integer maxpagesize, Context context) {
return new PagedIterable<>(
() -> getAnomaliesByAnomalyDetectionConfigurationSinglePage(configurationId, body, skip, maxpagesize,
context),
nextLink -> getAnomaliesByAnomalyDetectionConfigurationNextSinglePage(nextLink, body, context));
}
/**
* Query dimension values of anomalies.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query dimension values request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getDimensionOfAnomaliesByAnomalyDetectionConfigurationSinglePageAsync(
UUID configurationId, AnomalyDimensionQuery body, Integer skip, Integer maxpagesize) {
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getDimensionOfAnomaliesByAnomalyDetectionConfiguration(this.getEndpoint(),
configurationId, skip, maxpagesize, body, accept, context))
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query dimension values of anomalies.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query dimension values request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getDimensionOfAnomaliesByAnomalyDetectionConfigurationSinglePageAsync(
UUID configurationId, AnomalyDimensionQuery body, Integer skip, Integer maxpagesize, Context context) {
final String accept = "application/json";
return service
.getDimensionOfAnomaliesByAnomalyDetectionConfiguration(this.getEndpoint(), configurationId, skip,
maxpagesize, body, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query dimension values of anomalies.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query dimension values request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getDimensionOfAnomaliesByAnomalyDetectionConfigurationAsync(UUID configurationId,
AnomalyDimensionQuery body, Integer skip, Integer maxpagesize) {
return new PagedFlux<>(
() -> getDimensionOfAnomaliesByAnomalyDetectionConfigurationSinglePageAsync(configurationId, body, skip,
maxpagesize),
nextLink -> getDimensionOfAnomaliesByAnomalyDetectionConfigurationNextSinglePageAsync(nextLink, body));
}
/**
* Query dimension values of anomalies.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query dimension values request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getDimensionOfAnomaliesByAnomalyDetectionConfigurationAsync(UUID configurationId,
AnomalyDimensionQuery body, Integer skip, Integer maxpagesize, Context context) {
return new PagedFlux<>(
() -> getDimensionOfAnomaliesByAnomalyDetectionConfigurationSinglePageAsync(configurationId, body, skip,
maxpagesize, context),
nextLink -> getDimensionOfAnomaliesByAnomalyDetectionConfigurationNextSinglePageAsync(nextLink, body,
context));
}
/**
* Query dimension values of anomalies.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query dimension values request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getDimensionOfAnomaliesByAnomalyDetectionConfigurationSinglePage(UUID configurationId,
AnomalyDimensionQuery body, Integer skip, Integer maxpagesize) {
final String accept = "application/json";
Response res = service.getDimensionOfAnomaliesByAnomalyDetectionConfigurationSync(
this.getEndpoint(), configurationId, skip, maxpagesize, body, accept, Context.NONE);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query dimension values of anomalies.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query dimension values request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getDimensionOfAnomaliesByAnomalyDetectionConfigurationSinglePage(UUID configurationId,
AnomalyDimensionQuery body, Integer skip, Integer maxpagesize, Context context) {
final String accept = "application/json";
Response res = service.getDimensionOfAnomaliesByAnomalyDetectionConfigurationSync(
this.getEndpoint(), configurationId, skip, maxpagesize, body, accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query dimension values of anomalies.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query dimension values request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getDimensionOfAnomaliesByAnomalyDetectionConfiguration(UUID configurationId,
AnomalyDimensionQuery body, Integer skip, Integer maxpagesize) {
return new PagedIterable<>(
() -> getDimensionOfAnomaliesByAnomalyDetectionConfigurationSinglePage(configurationId, body, skip,
maxpagesize, Context.NONE),
nextLink -> getDimensionOfAnomaliesByAnomalyDetectionConfigurationNextSinglePage(nextLink, body));
}
/**
* Query dimension values of anomalies.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query dimension values request.
* @param skip for paging, skipped number.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getDimensionOfAnomaliesByAnomalyDetectionConfiguration(UUID configurationId,
AnomalyDimensionQuery body, Integer skip, Integer maxpagesize, Context context) {
return new PagedIterable<>(
() -> getDimensionOfAnomaliesByAnomalyDetectionConfigurationSinglePage(configurationId, body, skip,
maxpagesize, context),
nextLink -> getDimensionOfAnomaliesByAnomalyDetectionConfigurationNextSinglePage(nextLink, body, context));
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection incident result request.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getIncidentsByAnomalyDetectionConfigurationSinglePageAsync(
UUID configurationId, DetectionIncidentResultQuery body, Integer maxpagesize) {
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getIncidentsByAnomalyDetectionConfiguration(this.getEndpoint(),
configurationId, maxpagesize, body, accept, context))
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection incident result request.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getIncidentsByAnomalyDetectionConfigurationSinglePageAsync(
UUID configurationId, DetectionIncidentResultQuery body, Integer maxpagesize, Context context) {
final String accept = "application/json";
return service
.getIncidentsByAnomalyDetectionConfiguration(this.getEndpoint(), configurationId, maxpagesize, body, accept,
context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection incident result request.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getIncidentsByAnomalyDetectionConfigurationAsync(UUID configurationId,
DetectionIncidentResultQuery body, Integer maxpagesize) {
return new PagedFlux<>(
() -> getIncidentsByAnomalyDetectionConfigurationSinglePageAsync(configurationId, body, maxpagesize),
nextLink -> getIncidentsByAnomalyDetectionConfigurationNextSinglePageAsync(nextLink));
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection incident result request.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getIncidentsByAnomalyDetectionConfigurationAsync(UUID configurationId,
DetectionIncidentResultQuery body, Integer maxpagesize, Context context) {
return new PagedFlux<>(
() -> getIncidentsByAnomalyDetectionConfigurationSinglePageAsync(configurationId, body, maxpagesize,
context),
nextLink -> getIncidentsByAnomalyDetectionConfigurationNextSinglePageAsync(nextLink, context));
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection incident result request.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getIncidentsByAnomalyDetectionConfigurationSinglePage(UUID configurationId,
DetectionIncidentResultQuery body, Integer maxpagesize) {
final String accept = "application/json";
Response res = service.getIncidentsByAnomalyDetectionConfigurationSync(this.getEndpoint(),
configurationId, maxpagesize, body, accept, Context.NONE);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection incident result request.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getIncidentsByAnomalyDetectionConfigurationSinglePage(UUID configurationId,
DetectionIncidentResultQuery body, Integer maxpagesize, Context context) {
final String accept = "application/json";
Response res = service.getIncidentsByAnomalyDetectionConfigurationSync(this.getEndpoint(),
configurationId, maxpagesize, body, accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection incident result request.
* @param maxpagesize the maximum number of items in one page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getIncidentsByAnomalyDetectionConfiguration(UUID configurationId,
DetectionIncidentResultQuery body, Integer maxpagesize) {
return new PagedIterable<>(() -> getIncidentsByAnomalyDetectionConfigurationSinglePage(configurationId, body,
maxpagesize, Context.NONE),
nextLink -> getIncidentsByAnomalyDetectionConfigurationNextSinglePage(nextLink));
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param body query detection incident result request.
* @param maxpagesize the maximum number of items in one page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getIncidentsByAnomalyDetectionConfiguration(UUID configurationId,
DetectionIncidentResultQuery body, Integer maxpagesize, Context context) {
return new PagedIterable<>(
() -> getIncidentsByAnomalyDetectionConfigurationSinglePage(configurationId, body, maxpagesize, context),
nextLink -> getIncidentsByAnomalyDetectionConfigurationNextSinglePage(nextLink, context));
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param maxpagesize the maximum number of items in one page.
* @param token the token for getting the next page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getIncidentsByAnomalyDetectionConfigurationNextPagesSinglePageAsync(
UUID configurationId, Integer maxpagesize, String token) {
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getIncidentsByAnomalyDetectionConfigurationNextPages(this.getEndpoint(),
configurationId, maxpagesize, token, accept, context))
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param maxpagesize the maximum number of items in one page.
* @param token the token for getting the next page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getIncidentsByAnomalyDetectionConfigurationNextPagesSinglePageAsync(
UUID configurationId, Integer maxpagesize, String token, Context context) {
final String accept = "application/json";
return service
.getIncidentsByAnomalyDetectionConfigurationNextPages(this.getEndpoint(), configurationId, maxpagesize,
token, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null));
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param maxpagesize the maximum number of items in one page.
* @param token the token for getting the next page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getIncidentsByAnomalyDetectionConfigurationNextPagesAsync(UUID configurationId,
Integer maxpagesize, String token) {
return new PagedFlux<>(
() -> getIncidentsByAnomalyDetectionConfigurationNextPagesSinglePageAsync(configurationId, maxpagesize,
token),
nextLink -> getIncidentsByAnomalyDetectionConfigurationNextPagesNextSinglePageAsync(nextLink));
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param maxpagesize the maximum number of items in one page.
* @param token the token for getting the next page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedFlux getIncidentsByAnomalyDetectionConfigurationNextPagesAsync(UUID configurationId,
Integer maxpagesize, String token, Context context) {
return new PagedFlux<>(
() -> getIncidentsByAnomalyDetectionConfigurationNextPagesSinglePageAsync(configurationId, maxpagesize,
token, context),
nextLink -> getIncidentsByAnomalyDetectionConfigurationNextPagesNextSinglePageAsync(nextLink, context));
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param maxpagesize the maximum number of items in one page.
* @param token the token for getting the next page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getIncidentsByAnomalyDetectionConfigurationNextPagesSinglePage(
UUID configurationId, Integer maxpagesize, String token) {
final String accept = "application/json";
Response res = service.getIncidentsByAnomalyDetectionConfigurationNextPagesSync(
this.getEndpoint(), configurationId, maxpagesize, token, accept, Context.NONE);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param maxpagesize the maximum number of items in one page.
* @param token the token for getting the next page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public PagedResponse getIncidentsByAnomalyDetectionConfigurationNextPagesSinglePage(
UUID configurationId, Integer maxpagesize, String token, Context context) {
final String accept = "application/json";
Response res = service.getIncidentsByAnomalyDetectionConfigurationNextPagesSync(
this.getEndpoint(), configurationId, maxpagesize, token, accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().getValue(), res.getValue().getNextLink(), null);
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param maxpagesize the maximum number of items in one page.
* @param token the token for getting the next page.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getIncidentsByAnomalyDetectionConfigurationNextPages(UUID configurationId,
Integer maxpagesize, String token) {
return new PagedIterable<>(
() -> getIncidentsByAnomalyDetectionConfigurationNextPagesSinglePage(configurationId, maxpagesize, token,
Context.NONE),
nextLink -> getIncidentsByAnomalyDetectionConfigurationNextPagesNextSinglePage(nextLink));
}
/**
* Query incidents under anomaly detection configuration.
*
* @param configurationId anomaly detection configuration unique id.
* @param maxpagesize the maximum number of items in one page.
* @param token the token for getting the next page.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable getIncidentsByAnomalyDetectionConfigurationNextPages(UUID configurationId,
Integer maxpagesize, String token, Context context) {
return new PagedIterable<>(
() -> getIncidentsByAnomalyDetectionConfigurationNextPagesSinglePage(configurationId, maxpagesize, token,
context),
nextLink -> getIncidentsByAnomalyDetectionConfigurationNextPagesNextSinglePage(nextLink, context));
}
/**
* Query root cause for incident.
*
* @param configurationId anomaly detection configuration unique id.
* @param incidentId incident id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getRootCauseOfIncidentByAnomalyDetectionConfigurationWithResponseAsync(
UUID configurationId, String incidentId) {
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getRootCauseOfIncidentByAnomalyDetectionConfiguration(this.getEndpoint(),
configurationId, incidentId, accept, context));
}
/**
* Query root cause for incident.
*
* @param configurationId anomaly detection configuration unique id.
* @param incidentId incident id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono> getRootCauseOfIncidentByAnomalyDetectionConfigurationWithResponseAsync(
UUID configurationId, String incidentId, Context context) {
final String accept = "application/json";
return service.getRootCauseOfIncidentByAnomalyDetectionConfiguration(this.getEndpoint(), configurationId,
incidentId, accept, context);
}
/**
* Query root cause for incident.
*
* @param configurationId anomaly detection configuration unique id.
* @param incidentId incident id.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono getRootCauseOfIncidentByAnomalyDetectionConfigurationAsync(UUID configurationId,
String incidentId) {
return getRootCauseOfIncidentByAnomalyDetectionConfigurationWithResponseAsync(configurationId, incidentId)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Query root cause for incident.
*
* @param configurationId anomaly detection configuration unique id.
* @param incidentId incident id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono getRootCauseOfIncidentByAnomalyDetectionConfigurationAsync(UUID configurationId,
String incidentId, Context context) {
return getRootCauseOfIncidentByAnomalyDetectionConfigurationWithResponseAsync(configurationId, incidentId,
context).flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
* Query root cause for incident.
*
* @param configurationId anomaly detection configuration unique id.
* @param incidentId incident id.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws MetricsAdvisorResponseException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response