Class MonitoringClient

java.lang.Object
com.algolia.ApiClient
com.algolia.api.MonitoringClient

public class MonitoringClient extends ApiClient
  • Constructor Details

  • Method Details

    • del

      public Object del(String path, Map<String,Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException
      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:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • del

      public Object del(String path, Map<String,Object> parameters) throws AlgoliaRuntimeException
      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

      public Object del(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      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

      public Object del(String path) throws AlgoliaRuntimeException
      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 The awaitable future
      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 The awaitable future
      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 The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • delAsync

      public CompletableFuture<Object> delAsync(String path) 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)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • get

      public Object get(String path, Map<String,Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException
      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:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • get

      public Object get(String path, Map<String,Object> parameters) throws AlgoliaRuntimeException
      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

      public Object get(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      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

      public Object get(String path) throws AlgoliaRuntimeException
      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 The awaitable future
      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 The awaitable future
      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 The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getAsync

      public CompletableFuture<Object> getAsync(String path) 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)
      Returns:
      CompletableFuture The awaitable future
      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

      public IncidentsResponse getClusterIncidents(String clusters) throws AlgoliaRuntimeException
      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

      public StatusResponse getClusterStatus(String clusters) throws AlgoliaRuntimeException
      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

      public IncidentsResponse getIncidents(RequestOptions requestOptions) throws AlgoliaRuntimeException
      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

      public IncidentsResponse getIncidents() throws AlgoliaRuntimeException
      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

      public CompletableFuture<IncidentsResponse> getIncidentsAsync() throws AlgoliaRuntimeException
      (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

      public IndexingTimeResponse getIndexingTime(String clusters) throws AlgoliaRuntimeException
      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

      public InventoryResponse getInventory(RequestOptions requestOptions) throws AlgoliaRuntimeException
      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

      public InventoryResponse getInventory() throws AlgoliaRuntimeException
      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

      public CompletableFuture<InventoryResponse> getInventoryAsync() 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.
      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

      public LatencyResponse getLatency(String clusters) throws AlgoliaRuntimeException
      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,Boolean>> getReachability(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,Boolean>> getReachability(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,Boolean>>> getReachabilityAsync(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,Boolean>>> getReachabilityAsync(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

      public StatusResponse getStatus(RequestOptions requestOptions) throws AlgoliaRuntimeException
      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

      public StatusResponse getStatus() throws AlgoliaRuntimeException
      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

      public CompletableFuture<StatusResponse> getStatusAsync() 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.
      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 AlgoliaRuntimeException
      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:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • post

      public Object post(String path, Map<String,Object> parameters, Object body) throws AlgoliaRuntimeException
      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:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • post

      public Object post(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      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

      public Object post(String path) throws AlgoliaRuntimeException
      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 The awaitable future
      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 The awaitable future
      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 The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • postAsync

      public CompletableFuture<Object> postAsync(String path) 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)
      Returns:
      CompletableFuture The awaitable future
      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 AlgoliaRuntimeException
      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:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • put

      public Object put(String path, Map<String,Object> parameters, Object body) throws AlgoliaRuntimeException
      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:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • put

      public Object put(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      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

      public Object put(String path) throws AlgoliaRuntimeException
      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 The awaitable future
      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 The awaitable future
      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 The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • putAsync

      public CompletableFuture<Object> putAsync(String path) 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)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call