Sep 20, 2024
Retrieve metrics
Retrieves metrics related to your Algolia infrastructure, aggregated over a selected time window.
Access to this API is available as part of the Premium or Elevate plans.
You must authenticate requests with the x-algolia-application-id
and x-algolia-api-key
headers (using the Monitoring API key).
Usage
Copy
1
2
3
4
5
6
import com.algolia.api.MonitoringClient;
import com.algolia.config.*;
MonitoringClient client = new MonitoringClient("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY");
client.getMetrics(Metric.AVG_BUILD_TIME, Period.MINUTE);
Did you find this page helpful?