"schedule.resource", subject.getId());
}
CriteriaQueryRunner<MeasurementDataTrait> queryRunner = new CriteriaQueryRunner(criteria, generator,
this.entityManager);
PageList<MeasurementDataTrait> results = queryRunner.execute();
// Fetch the metric definition for each schedule, so the results include the trait names.
for (MeasurementDataTrait result : results) {
result.getSchedule().getDefinition().getName();
}