def show_cluster_operation(request, id): cluster = dbutil.get_cluster(id) endpoint = dbutil.map_cluster_to_endpoint(cluster.name) group = 'Cluster' params = { 'cluster' : cluster, 'tsdb_metrics' : metric_helper.make_operation_metrics(endpoint, cluster.hbasecluster, group), 'endpoint' : endpoint } return respond(request, 'monitor/hbase_cluster_operation.html', params)
def show_cluster_operation(request, id): cluster = dbutil.get_cluster(id) endpoint = dbutil.map_cluster_to_endpoint(cluster.name) group = "Cluster" params = { "cluster": cluster, "tsdb_metrics": metric_helper.make_operation_metrics(endpoint, cluster.hbasecluster, group), "endpoint": endpoint, } return respond(request, "monitor/hbase_cluster_operation.html", params)
def show_table_operation(request, id): table = dbutil.get_table(id) cluster = table.cluster endpoint = dbutil.map_cluster_to_endpoint(cluster.name) group = str(table) params = { 'cluster' : cluster, 'table' : table, 'tsdb_metrics' : metric_helper.make_operation_metrics(endpoint, table, group), 'endpoint' : endpoint } return respond(request, 'monitor/hbase_table_operation.html', params)
def show_table_operation(request, id): table = dbutil.get_table(id) cluster = table.cluster endpoint = dbutil.map_cluster_to_endpoint(cluster.name) group = str(table) params = { "cluster": cluster, "table": table, "tsdb_metrics": metric_helper.make_operation_metrics(endpoint, table, group), "endpoint": endpoint, } return respond(request, "monitor/hbase_table_operation.html", params)