Home
last modified time | relevance | path

Searched refs:append (Results 1 - 25 of 303) sorted by relevance

12345678910>>...13

/3.0.3-GA/healthchecker/
H A Dcluster_stats.py62 num_warn.append({"node":node, "value":symptom})
63 abnormal_vals.append(seg_avg[main_counter])
65 trend.append((node, {"value" : util.pretty_float(sum(abnormal_vals)/len(abnormal_vals)) + "%",
69 trend.append(("warn", num_warn))
153 res.append(("total", accessor["symptom"] % (total_ddoc, total_view)))
185 item_avg[counter].append((node, avg))
197 res.append((active[0], ratio))
198 sizing[active[0]].append((bucket, ratio))
201 res.append((active[0], {"value" : util.pretty_float(ratio) + "%",
204 sizing[active[0]].append((bucke
[all...]
H A Ddiskqueue_stats.py54 abnormal_vals.append(dwq_avg)
56 disk_queue_avg_error.append({"node":node, "value":symptom})
58 disk_queue_avg_warn.append({"node":node, "level":"yellow", "value":symptom})
60 res.append((node, {"value":util.number_label(dwq_avg), "raw":abnormal_vals}))
61 total.append(node_avg_dwq)
63 res.append(("error", disk_queue_avg_error))
65 res.append(("warn", disk_queue_avg_warn))
69 res.append(("total", {"value" : util.number_label(rate),
95 trend_error.append({"node":node, "level":"red", "value":symptom})
96 res.append((nod
[all...]
H A Dbucket_stats.py21 ops_avg[counter].append((bucket, node, avg))
22 ops_avg[counter].append((bucket, "total", total / len(nodeStats)))
28 result.append((read[0], read[1], "0:0:0"))
33 result.append((read[0], read[1], "%s%% reads : %s%% writes : %s%% deletes" % (read_ratio, write_ratio, del_ratio)))
52 ops_avg[counter].append((node, avg))
53 ops_avg[counter].append(("total", total / len(nodeStats)))
58 result.append((active[0], "0:0"))
62 result.append((active[0], "%s:%s" % (active_ratio, replica_ratio)))
77 trend.append((bucket, node, a, b))
92 trend.append((bucke
[all...]
H A Dnode_stats.py59 result[node].append((key, val))
70 result[node].append((values['StorageInfo']['type'], val[accessor["counter"]]))
92 result[node].append((bucket, trend))
111 result[node].append((bucket, util.pretty_float(avg)))
139 result[node].append((bucket, avg))
148 result.append({"name": bucket, "type": bucketinfo["bucketType"]})
209 trend.append((node, 0, 0))
212 trend.append((node, a, vals[-1]))
231 trend.append((node, util.pretty_float(avg)))
248 stats.append((nod
[all...]
H A Danalyzer.py124 node_error.append(node["node"])
129 node_warn.append(node["node"])
136 bucket_symptoms[bucket].append({"description":counter["description"],
141 bucket_symptoms[bucket].append({"description":counter["description"],
159 bucket_node_symptoms[bucket][val[0]].append({"description" : description,
164 bucket_node_symptoms[bucket][val[0]].append({"description" : description,
195 sizing_symptoms[node][counter["category"]].append(
228 indicator_error[counter["name"]].append({"description" : counter["description"],
237 indicator_error[counter["name"]].append({"description" : counter["description"],
253 indicator_warn[counter["name"]].append({"descriptio
[all...]
/3.0.3-GA/couchbase-cli/
H A Dnode_stats.py9 result.append({"ip": node, "port": node_info['port'], "version" :node_info['version'], "os": node_info['os'], "status" :node_info['status']})
15 result.append(len(stats_buffer.nodes))
21 result.append(len(filter(lambda (a, b): b["status"]=="down", stats_buffer.nodes.items())))
27 result.append(len(filter(lambda (a, b): b["status"]=="warmup", stats_buffer.nodes.items())))
33 result.append(len(filter(lambda (a, b): b["clusterMembership"]!="active", stats_buffer.nodes.items())))
40 result.append({"name": bucket})
49 result.append({"ip": values["host"],
58 result.append({"ip": values["host"],
71 result.append({"ip": values["host"],
94 trend.append((nod
[all...]
H A Dcluster_stats.py40 item_avg[counter].append((node, avg))
45 res.append((active[0], "No replica"))
48 res.append((active[0], util.pretty_float(ratio)))
50 num_error.append({"node":active[0], "value": ratio})
54 res.append(("total", "no replica"))
58 res.append(("total", util.pretty_float(ratio)))
60 num_error.append({"node":"total", "value": ratio})
85 ops_avg[counter].append((node, avg))
91 res.append((read[0], "0:0:0"))
99 res.append((rea
[all...]
H A Ddiskqueue_stats.py17 disk_queue_avg_error.append({"node":node, "level":"red", "value":avg})
19 disk_queue_avg_warn.append({"node":node, "level":"yellow", "value":avg})
40 trend_error.append({"node":node, "level":"red", "value":a})
42 trend_warn.append({"node":node, "level":"yellow", "value":a})
63 trend_error.append({"node":node, "level":"red", "value":a})
65 trend_warn.append({"node":node, "level":"yellow", "value":a})
88 disk_queue_avg_error.append({"node":node, "level":"red", "value":avg})
H A Dcbworkloadgen37 local_args.append(src)
38 local_args.append(sink)
40 local_args.append(v[0])
41 local_args.append(v[1])
46 local_args.append(v[0])
153 sys.path.append(python_lib)
H A Dcbbackupwrapper150 aliases.append(nodeip)
153 aliases.append(node)
158 aliases.append(node)
160 aliases.append(nodeip)
188 localvbucketlist.append(vbucket)
193 localvbucketlist.append(vbucket)
214 bucketsOnCluster.append(bucket)
271 bucketList.append(args.bucket_source)
284 vbucketList.append(item)
/3.0.3-GA/couchbase-python-client/unittest2/test/
H A Dtest_functiontestcase.py27 events.append('setUp')
31 events.append('test')
34 events.append('tearDown')
52 events.append('setUp')
55 events.append('test')
59 events.append('tearDown')
78 events.append('setUp')
81 events.append('test')
85 events.append('tearDown')
104 events.append('setU
[all...]
H A Dsupport.py26 self.errors.append((test, err))
29 self.failures.append((test, err))
46 self._events.append('startTest')
50 self._events.append('startTestRun')
54 self._events.append('stopTest')
58 self._events.append('stopTestRun')
62 self._events.append('addFailure')
66 self._events.append('addSuccess')
70 self._events.append('addError')
74 self._events.append('addSki
[all...]
H A Dtest_setups.py187 results.append('Module1.setUpModule')
190 results.append('Module1.tearDownModule')
195 results.append('Module2.setUpModule')
198 results.append('Module2.tearDownModule')
203 results.append('setup 1')
206 results.append('teardown 1')
208 results.append('Test1.testOne')
210 results.append('Test1.testTwo')
215 results.append('setup 2')
218 results.append('teardow
[all...]
/3.0.3-GA/testrunner/lib/membase/performance/
H A Dstats.py43 rv.append((percentiles[0], bin))
76 self._task["threads"].append(
79 self._task["threads"].append(
82 self._task["threads"].append(
85 self._task["threads"].append(
88 self._task["threads"].append(
91 self._task["threads"].append(
95 self._task["threads"].append(
98 self._task["threads"].append(
103 self._task["threads"].append(
[all...]
/3.0.3-GA/testrunner/pytests/tuqquery/
H A Dtuq_nulls.py162 expected_result.append({'feature_name' : doc['feature_name'],
165 expected_result.append({'feature_name' : doc['feature_name'],
181 expected_result.append({'feature_name' : doc['feature_name']})
183 expected_result.append({'feature_name' : doc['feature_name'],
199 expected_result.append({'feature_name' : doc['feature_name'],
202 expected_result.append({'feature_name' : doc['feature_name'],
205 expected_result.append({'feature_name' : doc['feature_name'],
234 expected_result.append({'feature_name' : doc['feature_name'],
237 expected_result.append({'feature_name' : doc['feature_name'],
255 expected_result.append({'feature_nam
[all...]
/3.0.3-GA/couchdb/test/etap/
H A Druntest.py109 erl_libs.append(env)
111 erl_libs.append(libsdir)
116 erl_flags.append(env)
118 erl_flags.append(flags)
121 erl_libs.append(path)
129 erl_flags.append("-pa" + " ".join(paths))
/3.0.3-GA/healthchecker/reports/js/
H A Dnv.d3.js303 var wrapEnter = wrap.enter().append('g').attr('class', 'nvd3 nv-wrap nv-axis');
304 var gEnter = wrapEnter.append('g');
334 axisLabel.enter().append('text').attr('class', 'nv-axislabel');
343 axisMaxMin.enter().append('g').attr('class', 'nv-axisMaxMin').append('text');
381 axisLabel.enter().append('text').attr('class', 'nv-axislabel');
392 axisMaxMin.enter().append('g').attr('class', 'nv-axisMaxMin').append('text');
420 axisLabel.enter().append('text').attr('class', 'nv-axislabel');
429 axisMaxMin.enter().append('
[all...]
H A Dline.js65 var wrapEnter = wrap.enter().append('g').attr('class', 'nvd3 nv-wrap nv-line');
66 var defsEnter = wrapEnter.append('defs');
67 var gEnter = wrapEnter.append('g');
70 gEnter.append('g').attr('class', 'nv-groups');
71 gEnter.append('g').attr('class', 'nv-scatterWrap');
91 defsEnter.append('clipPath')
93 .append('rect');
108 groups.enter().append('g')
128 areaPaths.enter().append('path')
167 linePaths.enter().append('pat
[all...]
H A Dnv.d3.min.js1 !function(){var nv=window.nv||{};nv.version="0.0.1a";nv.dev=true;window.nv=nv;nv.tooltip={};nv.utils={};nv.models={};nv.charts={};nv.graphs=[];nv.logs={};nv.dispatch=d3.dispatch("render_start","render_end");if(nv.dev){nv.dispatch.on("render_start",function(e){nv.logs.startTime=+new Date});nv.dispatch.on("render_end",function(e){nv.logs.endTime=+new Date;nv.logs.totalTime=nv.logs.endTime-nv.logs.startTime;nv.log("total",nv.logs.totalTime)})}nv.log=function(){if(nv.dev&&console.log&&console.log.apply)console.log.apply(console,arguments);else if(nv.dev&&console.log&&Function.prototype.bind){var log=Function.prototype.bind.call(console.log,console);log.apply(console,arguments)}return arguments[arguments.length-1]};nv.render=function render(step){step=step||1;nv.render.active=true;nv.dispatch.render_start();setTimeout(function(){var chart,graph;for(var i=0;i<step&&(graph=nv.render.queue[i]);i++){chart=graph.generate();if(typeof graph.callback==typeof Function)graph.callback(chart);nv.graphs.push(chart)}nv.render.queue.splice(0,i);if(nv.render.queue.length)setTimeout(arguments.callee,0);else{nv.render.active=false;nv.dispatch.render_end()}},0)};nv.render.active=false;nv.render.queue=[];nv.addGraph=function(obj){if(typeof arguments[0]===typeof Function)obj={generate:arguments[0],callback:arguments[1]};nv.render.queue.push(obj);if(!nv.render.active)nv.render()};nv.identity=function(d){return d};nv.strip=function(s){return s.replace(/(\s|&)/g,"")};function daysInMonth(month,year){return new Date(year,month+1,0).getDate()}function d3_time_range(floor,step,number){return function(t0,t1,dt){var time=floor(t0),times=[];if(time<t0)step(time);if(dt>1){while(time<t1){var date=new Date(+time);if(number(date)%dt===0)times.push(date);step(time)}}else{while(time<t1){times.push(new Date(+time));step(time)}}return times}}d3.time.monthEnd=function(date){return new Date(date.getFullYear(),date.getMonth(),0)};d3.time.monthEnds=d3_time_range(d3.time.monthEnd,function(date){date.setUTCDate(date.getUTCDate()+1);date.setDate(daysInMonth(date.getMonth()+1,date.getFullYear()))},function(date){return date.getMonth()});!function(){var nvtooltip=window.nv.tooltip={};nvtooltip.show=function(pos,content,gravity,dist,parentContainer,classes){var container=document.createElement("div");container.className="nvtooltip "+(classes?classes:"xy-tooltip");gravity=gravity||"s";dist=dist||20;var body=parentContainer;if(!parentContainer||parentContainer.tagName.match(/g|svg/i)){body=document.getElementsByTagName("body")[0]}container.innerHTML=content;container.style.left=0;container.style.top=0;container.style.opacity=0;body.appendChild(container);var height=parseInt(container.offsetHeight),width=parseInt(container.offsetWidth),windowWidth=nv.utils.windowSize().width,windowHeight=nv.utils.windowSize().height,scrollTop=window.scrollY,scrollLeft=window.scrollX,left,top;windowHeight=window.innerWidth>=document.body.scrollWidth?windowHeight:windowHeight-16;windowWidth=window.innerHeight>=document.body.scrollHeight?windowWidth:windowWidth-16;var tooltipTop=function(Elem){var offsetTop=top;do{if(!isNaN(Elem.offsetTop)){offsetTop+=Elem.offsetTop}}while(Elem=Elem.offsetParent);return offsetTop};var tooltipLeft=function(Elem){var offsetLeft=left;do{if(!isNaN(Elem.offsetLeft)){offsetLeft+=Elem.offsetLeft}}while(Elem=Elem.offsetParent);return offsetLeft};switch(gravity){case"e":left=pos[0]-width-dist;top=pos[1]-height/2;var tLeft=tooltipLeft(container);var tTop=tooltipTop(container);if(tLeft<scrollLeft)left=pos[0]+dist>scrollLeft?pos[0]+dist:scrollLeft-tLeft+left;if(tTop<scrollTop)top=scrollTop-tTop+top;if(tTop+height>scrollTop+windowHeight)top=scrollTop+windowHeight-tTop+top-height;break;case"w":left=pos[0]+dist;top=pos[1]-height/2;if(tLeft+width>windowWidth)left=pos[0]-width-dist;if(tTop<scrollTop)top=scrollTop+5;if(tTop+height>scrollTop+windowHeight)top=scrollTop-height-5;break;case"n":left=pos[0]-width/2-5;top=pos[1]+dist;var tLeft=tooltipLeft(container);var tTop=tooltipTop(container);if(tLeft<scrollLeft)left=scrollLeft+5;if(tLeft+width>windowWidth)left=left-width/2+5;if(tTop+height>scrollTop+windowHeight)top=scrollTop+windowHeight-tTop+top-height;break;case"s":left=pos[0]-width/2;top=pos[1]-height-dist;var tLeft=tooltipLeft(container);var tTop=tooltipTop(container);if(tLeft<scrollLeft)left=scrollLeft+5;if(tLeft+width>windowWidth)left=left-width/2+5;if(scrollTop>tTop)top=scrollTop;break}container.style.left=left+"px";container.style.top=top+"px";container.style.opacity=1;container.style.position="absolute";container.style.pointerEvents="none";return container};nvtooltip.cleanup=function(){var tooltips=document.getElementsByClassName("nvtooltip");var purging=[];while(tooltips.length){purging.push(tooltips[0]);tooltips[0].style.transitionDelay="0 !important";tooltips[0].style.opacity=0;tooltips[0].className="nvtooltip-pending-removal"}setTimeout(function(){while(purging.length){var removeMe=purging.pop();removeMe.parentNode.removeChild(removeMe)}},500)}}();nv.utils.windowSize=function(){var size={width:640,height:480};if(document.body&&document.body.offsetWidth){size.width=document.body.offsetWidth;size.height=document.body.offsetHeight}if(document.compatMode=="CSS1Compat"&&document.documentElement&&document.documentElement.offsetWidth){size.width=document.documentElement.offsetWidth;size.height=document.documentElement.offsetHeight}if(window.innerWidth&&window.innerHeight){size.width=window.innerWidth;size.height=window.innerHeight}return size};nv.utils.windowResize=function(fun){var oldresize=window.onresize;window.onresize=function(e){if(typeof oldresize=="function")oldresize(e);fun(e)}};nv.utils.getColor=function(color){if(!arguments.length)return nv.utils.defaultColor();if(Object.prototype.toString.call(color)==="[object Array]")return function(d,i){return d.color||color[i%color.length]};else return color};nv.utils.defaultColor=function(){var colors=d3.scale.category20().range();return function(d,i){return d.color||colors[i%colors.length]}};nv.utils.customTheme=function(dictionary,getKey,defaultColors){getKey=getKey||function(series){return series.key};defaultColors=defaultColors||d3.scale.category20().range();var defIndex=defaultColors.length;return function(series,index){var key=getKey(series);if(!defIndex)defIndex=defaultColors.length;if(typeof dictionary[key]!=="undefined")return typeof dictionary[key]==="function"?dictionary[key]():dictionary[key];else return defaultColors[--defIndex]}};nv.utils.pjax=function(links,content){d3.selectAll(links).on("click",function(){history.pushState(this.href,this.textContent,this.href);load(this.href);d3.event.preventDefault()});function load(href){d3.html(href,function(fragment){var target=d3.select(content).node();target.parentNode.replaceChild(d3.select(fragment).select(content).node(),target);nv.utils.pjax(links,content)})}d3.select(window).on("popstate",function(){if(d3.event.state)load(d3.event.state)})};nv.utils.calcApproxTextWidth=function(svgTextElem){if(svgTextElem instanceof d3.selection){var fontSize=parseInt(svgTextElem.style("font-size").replace("px",""));var textLength=svgTextElem.text().length;return textLength*fontSize*.5}return 0};nv.models.axis=function(){var axis=d3.svg.axis();var margin={top:0,right:0,bottom:0,left:0},width=75,height=60,scale=d3.scale.linear(),axisLabelText=null,showMaxMin=true,highlightZero=true,rotateLabels=0,rotateYLabel=true,staggerLabels=false,isOrdinal=false,ticks=null;axis.scale(scale).orient("bottom").tickFormat(function(d){return d});var scale0;function chart(selection){selection.each(function(data){var container=d3.select(this);var wrap=container.selectAll("g.nv-wrap.nv-axis").data([data]);var wrapEnter=wrap.enter().append("g").attr("class","nvd3 nv-wrap nv-axis");var gEnter=wrapEnter.append("g");var g=wrap.select("g");if(ticks!==null)axis.ticks(ticks);else if(axis.orient()=="top"||axis.orient()=="bottom")axis.ticks(Math.abs(scale.range()[1]-scale.range()[0])/100);d3.transition(g).call(axis);scale0=scale0||axis.scale();var fmt=axis.tickFormat();if(fmt==null){fmt=scale0.tickFormat()}var axisLabel=g.selectAll("text.nv-axislabel").data([axisLabelText||null]);axisLabel.exit().remove();switch(axis.orient()){case"top":axisLabel.enter().append("text").attr("class","nv-axislabel");var w=scale.range().length==2?scale.range()[1]:scale.range()[scale.range().length-1]+(scale.range()[1]-scale.range()[0]);axisLabel.attr("text-anchor","middle").attr("y",0).attr("x",w/2);if(showMaxMin){var axisMaxMin=wrap.selectAll("g.nv-axisMaxMin").data(scale.domain());axisMaxMin.enter().append("g").attr("class","nv-axisMaxMin").append("text");axisMaxMin.exit().remove();axisMaxMin.attr("transform",function(d,i){return"translate("+scale(d)+",0)"}).select("text").attr("dy","0em").attr("y",-axis.tickPadding()).attr("text-anchor","middle").text(function(d,i){var v=fmt(d);return(""+v).match("NaN")?"":v});d3.transition(axisMaxMin).attr("transform",function(d,i){return"translate("+scale.range()[i]+",0)"})}break;case"bottom":var xLabelMargin=36;var maxTextWidth=30;var xTicks=g.selectAll("g").select("text");if(rotateLabels%360){xTicks.each(function(d,i){var width=this.getBBox().width;if(width>maxTextWidth)maxTextWidth=width});var sin=Math.abs(Math.sin(rotateLabels*Math.PI/180));var xLabelMargin=(sin?sin*maxTextWidth:maxTextWidth)+30;xTicks.attr("transform",function(d,i,j){return"rotate("+rotateLabels+" 0,0)"}).attr("text-anchor",rotateLabels%360>0?"start":"end")}axisLabel.enter().append("text").attr("class","nv-axislabel");var w=scale.range().length==2?scale.range()[1]:scale.range()[scale.range().length-1]+(scale.range()[1]-scale.range()[0]);axisLabel.attr("text-anchor","middle").attr("y",xLabelMargin).attr("x",w/2);if(showMaxMin){var axisMaxMin=wrap.selectAll("g.nv-axisMaxMin").data([scale.domain()[0],scale.domain()[scale.domain().length-1]]);axisMaxMin.enter().append("g").attr("class","nv-axisMaxMin").append("text");axisMaxMin.exit().remove();axisMaxMin.attr("transform",function(d,i){return"translate("+(scale(d)+(isOrdinal?scale.rangeBand()/2:0))+",0)"}).select("text").attr("dy",".71em").attr("y",axis.tickPadding()).attr("transform",function(d,i,j){return"rotate("+rotateLabels+" 0,0)"}).attr("text-anchor",rotateLabels?rotateLabels%360>0?"start":"end":"middle").text(function(d,i){var v=fmt(d);return(""+v).match("NaN")?"":v});d3.transition(axisMaxMin).attr("transform",function(d,i){return"translate("+(scale(d)+(isOrdinal?scale.rangeBand()/2:0))+",0)"})}if(staggerLabels)xTicks.attr("transform",function(d,i){return"translate(0,"+(i%2==0?"0":"12")+")"});break;case"right":axisLabel.enter().append("text").attr("class","nv-axislabel");axisLabel.attr("text-anchor",rotateYLabel?"middle":"begin").attr("transform",rotateYLabel?"rotate(90)":"").attr("y",rotateYLabel?-Math.max(margin.right,width)+12:-10).attr("x",rotateYLabel?scale.range()[0]/2:axis.tickPadding());if(showMaxMin){var axisMaxMin=wrap.selectAll("g.nv-axisMaxMin").data(scale.domain());axisMaxMin.enter().append("
[all...]
/3.0.3-GA/platform/src/
H A Ddirutils.cc96 entry.append("\\"); in findFilesWithPrefix()
97 entry.append(FindFileData.cFileName); in findFilesWithPrefix()
121 entry.append("/"); in findFilesWithPrefix()
122 entry.append(de->d_name); in findFilesWithPrefix()
156 entry.append("\\"); in findFilesContaining()
157 entry.append(FindFileData.cFileName); in findFilesContaining()
179 entry.append("/"); in findFilesContaining()
180 entry.append(de->d_name); in findFilesContaining()
/3.0.3-GA/testrunner/scripts/
H A Dssh.py64 remotes.append(ScriptRunner(server, params["script"]))
66 remotes.append(CommandRunner(server, params["command"]))
79 remotes.append(ScriptRunner(server, params["script"]))
81 remotes.append(CommandRunner(server, params["command"]))
85 remote_threads.append(Thread(target=remote.run))
/3.0.3-GA/couchbase-python-client/unittest2/
H A Dutil.py41 missing.append(e)
46 unexpected.append(a)
79 missing.append(item)
90 unexpected.append(item)
H A Dresult.py108 self.errors.append((test, self._exc_info_to_string(err, test)))
115 self.failures.append((test, self._exc_info_to_string(err, test)))
124 self.skipped.append((test, reason))
128 self.expectedFailures.append(
134 self.unexpectedSuccesses.append(test)
163 msgLines.append(STDOUT_LINE % output)
167 msgLines.append(STDERR_LINE % error)
/3.0.3-GA/healthchecker/Cheetah/
H A DCompiler.py390 self._docStringLines.append(line.replace('%', '%%'))
395 self._methodBodyChunks.append(chunk)
429 self._pendingStrConstChunks.append(strConst)
454 out.append("'''")
455 out.append(body)
456 out.append("'''")
458 out.append('"""')
459 out.append(body)
460 out.append('"""')
630 argStringChunks.append(chun
[all...]
/3.0.3-GA/testrunner/pysystests/tools/
H A Dpush_stats.py19 sys.path.append(".")
125 sorted_data.append(data[ts])
202 archives.append(ph_csv_gz)
281 dbs.append(db)
285 dbs.append(DB('atop'+cluster,db))
289 dbs.append(DB('',db))
312 archives.append(fname)
316 archives.append("%s/%s" % (path, specName))

Completed in 63 milliseconds

12345678910>>...13