Package com.algolia.api
Class MonitoringClient
java.lang.Object
com.algolia.ApiClient
com.algolia.api.MonitoringClient
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMonitoringClient
(String appId, String apiKey) MonitoringClient
(String appId, String apiKey, ClientOptions options) -
Method Summary
Modifier and TypeMethodDescriptionThis method allow you to send requests to the Algolia REST API.del
(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.delAsync
(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.get
(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.getAsync
(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.getClusterIncidents
(String clusters) List known incidents for selected clusters.getClusterIncidents
(String clusters, RequestOptions requestOptions) List known incidents for selected clusters.getClusterIncidentsAsync
(String clusters) (asynchronously) List known incidents for selected clusters.getClusterIncidentsAsync
(String clusters, RequestOptions requestOptions) (asynchronously) List known incidents for selected clusters.getClusterStatus
(String clusters) Report whether a cluster is operational.getClusterStatus
(String clusters, RequestOptions requestOptions) Report whether a cluster is operational.getClusterStatusAsync
(String clusters) (asynchronously) Report whether a cluster is operational.getClusterStatusAsync
(String clusters, RequestOptions requestOptions) (asynchronously) Report whether a cluster is operational.List known incidents for all clusters.getIncidents
(RequestOptions requestOptions) List known incidents for all clusters.(asynchronously) List known incidents for all clusters.getIncidentsAsync
(RequestOptions requestOptions) (asynchronously) List known incidents for all clusters.getIndexingTime
(String clusters) List the average times for indexing operations for selected clusters.getIndexingTime
(String clusters, RequestOptions requestOptions) List the average times for indexing operations for selected clusters.getIndexingTimeAsync
(String clusters) (asynchronously) List the average times for indexing operations for selected clusters.getIndexingTimeAsync
(String clusters, RequestOptions requestOptions) (asynchronously) List the average times for indexing operations for selected clusters.List the servers belonging to clusters.getInventory
(RequestOptions requestOptions) List the servers belonging to clusters.(asynchronously) List the servers belonging to clusters.getInventoryAsync
(RequestOptions requestOptions) (asynchronously) List the servers belonging to clusters.getLatency
(String clusters) List the average latency for search requests for selected clusters.getLatency
(String clusters, RequestOptions requestOptions) List the average latency for search requests for selected clusters.getLatencyAsync
(String clusters) (asynchronously) List the average latency for search requests for selected clusters.getLatencyAsync
(String clusters, RequestOptions requestOptions) (asynchronously) List the average latency for search requests for selected clusters.getMetrics
(Metric metric, Period period) Report the aggregate value of a metric for a selected period of time.getMetrics
(Metric metric, Period period, RequestOptions requestOptions) Report the aggregate value of a metric for a selected period of time.getMetricsAsync
(Metric metric, Period period) (asynchronously) Report the aggregate value of a metric for a selected period of time.getMetricsAsync
(Metric metric, Period period, RequestOptions requestOptions) (asynchronously) Report the aggregate value of a metric for a selected period of time.getReachability
(String clusters) Test whether clusters are reachable or not.getReachability
(String clusters, RequestOptions requestOptions) Test whether clusters are reachable or not.getReachabilityAsync
(String clusters) (asynchronously) Test whether clusters are reachable or not.getReachabilityAsync
(String clusters, RequestOptions requestOptions) (asynchronously) Test whether clusters are reachable or not.Report whether clusters are operational.getStatus
(RequestOptions requestOptions) Report whether clusters are operational.(asynchronously) Report whether clusters are operational.getStatusAsync
(RequestOptions requestOptions) (asynchronously) Report whether clusters are operational.This method allow you to send requests to the Algolia REST API.post
(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.postAsync
(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.put
(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.putAsync
(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.Methods inherited from class com.algolia.ApiClient
addAlgoliaAgent, addDefaultHeader, buildCall, buildRequest, buildUrl, escapeString, executeAsync, executeAsync, executeAsync, getConnectTimeout, getReadTimeout, getWriteTimeout, isDebugging, parameterToString, processHeaderParams, removeAlgoliaAgent, serialize, setConnectTimeout, setHosts, setLogLevel, setReadTimeout, setWriteTimeout
-
Constructor Details
-
MonitoringClient
-
MonitoringClient
-
-
Method Details
-
del
public Object del(String path, Map<String, Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
del
This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
del
This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
del
This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
delAsync
public CompletableFuture<Object> delAsync(String path, Map<String, Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
delAsync
public CompletableFuture<Object> delAsync(String path, Map<String, Object> parameters) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
delAsync
public CompletableFuture<Object> delAsync(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
delAsync
(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
get
public Object get(String path, Map<String, Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
get
This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
get
This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
get
This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getAsync
public CompletableFuture<Object> getAsync(String path, Map<String, Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getAsync
public CompletableFuture<Object> getAsync(String path, Map<String, Object> parameters) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getAsync
public CompletableFuture<Object> getAsync(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getAsync
(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getClusterIncidents
public IncidentsResponse getClusterIncidents(String clusters, RequestOptions requestOptions) throws AlgoliaRuntimeException List known incidents for selected clusters.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- IncidentsResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getClusterIncidents
List known incidents for selected clusters.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)- Returns:
- IncidentsResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getClusterIncidentsAsync
public CompletableFuture<IncidentsResponse> getClusterIncidentsAsync(String clusters, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) List known incidents for selected clusters.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getClusterIncidentsAsync
public CompletableFuture<IncidentsResponse> getClusterIncidentsAsync(String clusters) throws AlgoliaRuntimeException (asynchronously) List known incidents for selected clusters.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getClusterStatus
public StatusResponse getClusterStatus(String clusters, RequestOptions requestOptions) throws AlgoliaRuntimeException Report whether a cluster is operational.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- StatusResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getClusterStatus
Report whether a cluster is operational.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)- Returns:
- StatusResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getClusterStatusAsync
public CompletableFuture<StatusResponse> getClusterStatusAsync(String clusters, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Report whether a cluster is operational.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getClusterStatusAsync
public CompletableFuture<StatusResponse> getClusterStatusAsync(String clusters) throws AlgoliaRuntimeException (asynchronously) Report whether a cluster is operational.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getIncidents
List known incidents for all clusters.- Parameters:
requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- IncidentsResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getIncidents
List known incidents for all clusters.- Returns:
- IncidentsResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getIncidentsAsync
public CompletableFuture<IncidentsResponse> getIncidentsAsync(RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) List known incidents for all clusters.- Parameters:
requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getIncidentsAsync
(asynchronously) List known incidents for all clusters.- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getIndexingTime
public IndexingTimeResponse getIndexingTime(String clusters, RequestOptions requestOptions) throws AlgoliaRuntimeException List the average times for indexing operations for selected clusters.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- IndexingTimeResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getIndexingTime
List the average times for indexing operations for selected clusters.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)- Returns:
- IndexingTimeResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getIndexingTimeAsync
public CompletableFuture<IndexingTimeResponse> getIndexingTimeAsync(String clusters, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) List the average times for indexing operations for selected clusters.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getIndexingTimeAsync
public CompletableFuture<IndexingTimeResponse> getIndexingTimeAsync(String clusters) throws AlgoliaRuntimeException (asynchronously) List the average times for indexing operations for selected clusters.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getInventory
List the servers belonging to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application's cluster. - Without authentication, the response lists the servers for all Algolia clusters.- Parameters:
requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- InventoryResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getInventory
List the servers belonging to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application's cluster. - Without authentication, the response lists the servers for all Algolia clusters.- Returns:
- InventoryResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getInventoryAsync
public CompletableFuture<InventoryResponse> getInventoryAsync(RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) List the servers belonging to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application's cluster. - Without authentication, the response lists the servers for all Algolia clusters.- Parameters:
requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getInventoryAsync
(asynchronously) List the servers belonging to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application's cluster. - Without authentication, the response lists the servers for all Algolia clusters.- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getLatency
public LatencyResponse getLatency(String clusters, RequestOptions requestOptions) throws AlgoliaRuntimeException List the average latency for search requests for selected clusters.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- LatencyResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getLatency
List the average latency for search requests for selected clusters.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)- Returns:
- LatencyResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getLatencyAsync
public CompletableFuture<LatencyResponse> getLatencyAsync(String clusters, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) List the average latency for search requests for selected clusters.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getLatencyAsync
public CompletableFuture<LatencyResponse> getLatencyAsync(String clusters) throws AlgoliaRuntimeException (asynchronously) List the average latency for search requests for selected clusters.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getMetrics
public InfrastructureResponse getMetrics(Metric metric, Period period, RequestOptions requestOptions) throws AlgoliaRuntimeException Report the aggregate value of a metric for a selected period of time.- Parameters:
metric
- Metric to report. For more information about the individual metrics, see the response. To include all metrics, use `*` as the parameter. (required)period
- Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- InfrastructureResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getMetrics
public InfrastructureResponse getMetrics(Metric metric, Period period) throws AlgoliaRuntimeException Report the aggregate value of a metric for a selected period of time.- Parameters:
metric
- Metric to report. For more information about the individual metrics, see the response. To include all metrics, use `*` as the parameter. (required)period
- Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day. (required)- Returns:
- InfrastructureResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getMetricsAsync
public CompletableFuture<InfrastructureResponse> getMetricsAsync(Metric metric, Period period, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Report the aggregate value of a metric for a selected period of time.- Parameters:
metric
- Metric to report. For more information about the individual metrics, see the response. To include all metrics, use `*` as the parameter. (required)period
- Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getMetricsAsync
public CompletableFuture<InfrastructureResponse> getMetricsAsync(Metric metric, Period period) throws AlgoliaRuntimeException (asynchronously) Report the aggregate value of a metric for a selected period of time.- Parameters:
metric
- Metric to report. For more information about the individual metrics, see the response. To include all metrics, use `*` as the parameter. (required)period
- Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day. (required)- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getReachability
public Map<String,Map<String, getReachabilityBoolean>> (String clusters, RequestOptions requestOptions) throws AlgoliaRuntimeException Test whether clusters are reachable or not.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- Map<String, Map<String, Boolean>>
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getReachability
public Map<String,Map<String, getReachabilityBoolean>> (String clusters) throws AlgoliaRuntimeException Test whether clusters are reachable or not.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)- Returns:
- Map<String, Map<String, Boolean>>
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getReachabilityAsync
public CompletableFuture<Map<String,Map<String, getReachabilityAsyncBoolean>>> (String clusters, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Test whether clusters are reachable or not.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture<Map<String, Map<String, Boolean>>> The awaitable future
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getReachabilityAsync
public CompletableFuture<Map<String,Map<String, getReachabilityAsyncBoolean>>> (String clusters) throws AlgoliaRuntimeException (asynchronously) Test whether clusters are reachable or not.- Parameters:
clusters
- Subset of clusters, separated by comma. (required)- Returns:
- CompletableFuture<Map<String, Map<String, Boolean>>> The awaitable future
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getStatus
Report whether clusters are operational. The response depends on whether you authenticate your API request. - With authentication, the response includes the status of the cluster assigned to your Algolia application. - Without authentication, the response lists the statuses of all public Algolia clusters.- Parameters:
requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- StatusResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getStatus
Report whether clusters are operational. The response depends on whether you authenticate your API request. - With authentication, the response includes the status of the cluster assigned to your Algolia application. - Without authentication, the response lists the statuses of all public Algolia clusters.- Returns:
- StatusResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getStatusAsync
public CompletableFuture<StatusResponse> getStatusAsync(RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Report whether clusters are operational. The response depends on whether you authenticate your API request. - With authentication, the response includes the status of the cluster assigned to your Algolia application. - Without authentication, the response lists the statuses of all public Algolia clusters.- Parameters:
requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getStatusAsync
(asynchronously) Report whether clusters are operational. The response depends on whether you authenticate your API request. - With authentication, the response includes the status of the cluster assigned to your Algolia application. - Without authentication, the response lists the statuses of all public Algolia clusters.- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
post
public Object post(String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)body
- Parameters to send with the custom request. (optional)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
post
public Object post(String path, Map<String, Object> parameters, Object body) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)body
- Parameters to send with the custom request. (optional)- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
post
This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
post
This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
postAsync
public CompletableFuture<Object> postAsync(String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)body
- Parameters to send with the custom request. (optional)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
postAsync
public CompletableFuture<Object> postAsync(String path, Map<String, Object> parameters, Object body) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)body
- Parameters to send with the custom request. (optional)- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
postAsync
public CompletableFuture<Object> postAsync(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
postAsync
(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
put
public Object put(String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)body
- Parameters to send with the custom request. (optional)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
put
public Object put(String path, Map<String, Object> parameters, Object body) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)body
- Parameters to send with the custom request. (optional)- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
put
This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
put
This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)- Returns:
- Object
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
putAsync
public CompletableFuture<Object> putAsync(String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)body
- Parameters to send with the custom request. (optional)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
putAsync
public CompletableFuture<Object> putAsync(String path, Map<String, Object> parameters, Object body) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters
- Query parameters to apply to the current query. (optional)body
- Parameters to send with the custom request. (optional)- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
putAsync
public CompletableFuture<Object> putAsync(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
putAsync
(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path
- Path of the endpoint, anything after \"/1\" must be specified. (required)- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-