Iris is a Java library that allows your Java applications to communicate with Metricly’s REST API. You can use Iris to send metrics from your applications to Metricly, create dashboards, tags, elements, and much more.
MetriclyElementClient elementClient = new MetriclyElementRestClient ("username", "password");
3. You may now send requests to the Metricly REST API. To read more about our API, find links to explore our API, and test some requests, see the API help section. Links to each client.java file follow where you can find the types of requests you can make and what parameters you can pass in:
elementClient.listElements(new ListElementsRequest() .withStartDate([date]) .withEndDate([date]));
eventClient.getEvents(new GetEventsRequest() .withIsExternal(true) .withCategory("CRITICAL"));
metricClient.getMetricStatistics(new GetMetricStatisticsRequest() .withRollup("5M") .withFqn("aws.ec2.cpuutilization"));