def get(self, client_id): """ Get time-based metrics for a particular Client. """ args = date_arguments.parse_args(request) (startdate, enddate) = get_time_window(args, TIME_BINS) timebin = args.get('timebin') results = DATA.get_client_metrics(client_id, timebin, startdate, enddate) return results
def get(self, server_id): """ Get time-based metrics for a Server """ args = DATE_ARGUMENTS.parse_args(request) (startdate, enddate) = get_time_window(args, TIME_BINS) timebin = args.get('timebin') results = DATA.get_server_metrics(server_id, timebin, startdate, enddate) return results
def get(self, server_id): """ Get time-based metrics for a Server """ args = date_arguments.parse_args(request) (startdate, enddate) = get_time_window(args, TIME_BINS) timebin = args.get('timebin') results = DATA.get_server_metrics(server_id, timebin, startdate, enddate) return results
def get(self, client_id, server_id): """ Get time-based metrics for a specific Client + Server """ args = DATE_ARGUMENTS.parse_args(request) (startdate, enddate) = get_time_window(args, TIME_BINS) timebin = args.get('timebin') results = DATA.get_client_server_metrics(client_id, server_id, timebin, startdate, enddate) return results
def get(self, location_id): """ Get time-based metrics for a Location """ location_id = normalize_key(location_id) args = date_arguments.parse_args(request) (startdate, enddate) = get_time_window(args, TIME_BINS) timebin = args.get('timebin') results = DATA.get_location_metrics(location_id, timebin, startdate, enddate) return results
def get(self, location_id, client_id): """ Get time-based metrics for a Location + Client """ location_id = normalize_key(location_id) args = DATE_ARGUMENTS.parse_args(request) (startdate, enddate) = get_time_window(args, TIME_BINS) timebin = args.get('timebin') results = DATA.get_location_client_metrics(location_id, client_id, timebin, startdate, enddate) return results
def get(self, location_id, client_id, server_id): """ Get time-based metrics for a Location + Client + Server """ location_id = normalize_key(location_id) args = DATE_ARGUMENTS.parse_args(request) (startdate, enddate) = get_time_window(args, TIME_BINS) timebin = args.get('timebin') results = DATA.get_location_client_server_metrics( location_id, client_id, server_id, timebin, startdate, enddate) return results