def refresh_one_content_summary(user, org, content_item_id): """ Refresh content summary metrics """ since = arg_int('since', 24) # rollup timeseries => summary rollup_metric.content_summary(org, [content_item_id], since) # compute metrics compute_metric.content_summary(org, ids=[content_item_id]) return jsonify({'success': True})
def refresh_content_summary(user, org): """ Refresh content summary metrics """ # how many hours since last update should we refresh? since = arg_int('since', 24) # rollup timeseries => summary rollup_metric.content_summary(org, [], since) # compute metrics compute_metric.content_summary(org, []) # simple response return jsonify({'success': True})