def history_of(cls, metric_name, kalibro_module_id, repository_id):
     response = Repository.request(
         action=":id/metric_result_history_of",
         params={"metric_name": metric_name, "kalibro_module_id": kalibro_module_id, "id": repository_id},
     )["metric_result_history_of"]
     return [
         kalibro_client.miscellaneous.date_metric_result.DateMetricResult(**date_metric_result_hash)
         for date_metric_result_hash in response
     ]
Exemplo n.º 2
0
 def history_of(cls, module_result, repository_id):
     response = Repository.request(action=':id/module_result_history_of',
                                   params={'id': repository_id, 'kalibro_module_id': module_result.kalibro_module.id})['module_result_history_of']
     return [kalibro_client.miscellaneous.date_module_result.DateModuleResult(element[0], element[1]) for element in response]