List<DataEntry> entries = feed.getEntries();
if (entries.size() == 0) {
System.out.println("No entries found");
return;
}
DataEntry singleEntry = entries.get(0);
// properties specific to all the entries returned in the feed
System.out.println("Entry ID = " + singleEntry.getId());
System.out.println("Entry Title = " + singleEntry.getTitle().getPlainText());
// iterate through all the dimensions
List<Dimension> dimensions = singleEntry.getDimensions();
for (Dimension dimension : dimensions) {
System.out.println("Dimension Name = " + dimension.getName());
System.out.println("Dimension Value = " + dimension.getValue());
}
// iterate through all the metrics
List<Metric> metrics = singleEntry.getMetrics();
for (Metric metric : metrics) {
System.out.println("Metric Name = " + metric.getName());
System.out.println("Metric Value = " + metric.getValue());
System.out.println("Metric Type = " + metric.getType());
System.out.println("Metric CI = " + metric.getConfidenceInterval().toString());