-
Notifications
You must be signed in to change notification settings - Fork 7
/
mongodb-metrics.sublime-workspace
732 lines (732 loc) · 40.6 KB
/
mongodb-metrics.sublime-workspace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
{
"auto_complete":
{
"selected_items":
[
[
"ke",
"key"
],
[
"w",
"work"
],
[
"cli",
"client"
],
[
"re",
"require"
],
[
"inter",
"intervalLoop"
],
[
"ser",
"server"
],
[
"requ",
"requesition"
],
[
"metr",
"metrics"
],
[
"prop",
"propName"
],
[
"get",
"getWriter"
],
[
"req",
"requesition"
],
[
"res",
"requesition"
],
[
"serve",
"serverStatus"
],
[
"fet",
"fetchServerStatus"
],
[
"conn",
"connectToMongoDb"
],
[
"mongo",
"mongoDbUrl"
],
[
"fetc",
"fetchDataForInstance"
]
]
},
"buffers":
[
{
"file": "config.json",
"settings":
{
"buffer_size": 644,
"line_ending": "Windows"
}
},
{
"file": "//dashboards/d$/Inetpub/GiraffeOps/dashboards.js",
"settings":
{
"buffer_size": 15823,
"line_ending": "Windows"
}
},
{
"file": "gruntfile.js",
"settings":
{
"buffer_size": 918,
"line_ending": "Windows"
}
},
{
"contents": "/*\n rq.js\n\n Douglas Crockford\n 2013-06-22\n Public Domain\n\nThis package uses four kinds of functions:\n requestor\n requestion\n quash\n requestory\n\n\nrequestor(requestion [, initial])\n may return a quash function\n\n A requestor is a function that makes a request. Such a request need not\n be satisified immediately. It is likely that the request will not be\n satisified until some future turn. Requestors provide a means of dealing\n with future activities without blocking.\n\n A requestor is a function that takes a requestion function as its first\n parameter, and optionally an initial value as its second parameter. The\n requestor uses the requestion to report its result. A requestor may\n optionally return a quash function that might be used to cancel the\n request, triggering the requestion function with a failure result.\n\n The initial parameter contains a value that may be used to initialize the\n request. It is provided specifically for RQ.sequence, but it may be passed\n to any requestor.\n\n\nrequestion(success, failure)\n returns undefined\n\n A requestion function is a continuation or callback. It is used to deliver\n the result of a request. A requestion takes two arguments: success and\n failure. If the request succeeds, then the result will be passed to the\n requestion function as the success parameter, and the failure parameter\n will be undefined. If the request fails, then the requestion function will\n be passed the reason as the failure parameter. If failure is undefined,\n then the request succeeded. If failure is any other value, then the request\n failed.\n\n\nquash(reason)\n returns undefined\n\n If a request is likely to be expensive to satisfy, the requestor may\n optionally return a quash function that would allow the request to be\n cancelled. A requestor is not required to return a quash function, and\n the quash function will not be guaranteed to cancel the request. The\n quash's reason argument may become the requestion's failure argument.\n\n\nrequestory([arguments])\n returns a requestor function\n\n A requestory is a factory function that produces a requestor function. A\n requestory function will usually take parameters that will customize or\n specialize a request. It is possible to write requestor functions by hand,\n but it is usually easier to generate them with requestories.\n\n\nThe RQ object contains some requestory functions that permit the composition of\nrequestors:\n\n RQ.fallback(requestors, milliseconds)\n RQ.race(requestors, milliseconds)\n RQ.parallel(requestors, optionals, milliseconds, tilliseconds)\n RQ.sequence(requestors, milliseconds)\n\nEach of these four requestory functions returns a requestor function that\nreturns a quash function.\n\n\nRQ.fallback(requestors, milliseconds)\n\n RQ.fallback returns a requestor function that will call the first element\n in the requestors array. If that is ultimately successful, its value will\n be passed to the requestion. But if it fails, the next element will be\n called, and so on. If none of the elements are successful, then the\n fallback fails. If any succeeds, then the fallback succeeds.\n\n If the optional milliseconds argument is supplied, then if a request is not\n successful in the allotted time, then the fallback fails, and the pending\n requestor is cancelled.\n\n\nRQ.race(requestors [, milliseconds])\n\n RQ.race returns a requestor that starts all of the functions in the\n requestors array in parallel. Its result is the result of the first of\n those requestors to successfully finish (all of the other requestors are\n cancelled). If all of those requestors fail, then the race fails.\n\n If the optional milliseconds argument is supplied, then if no requestor has\n been successful in the allotted time, then the race fails, and all pending\n requestors are cancelled.\n\n\nRQ.parallel(requestors [, milliseconds])\nRQ.parallel(requestors, optionals [, milliseconds, [tilliseconds]])\n\n RQ.parallel returns a requestor that processes many requestors in parallel,\n producing an array of all of the successful results. It can take two arrays\n of requests: Those that are required to produce results, and those that may\n optionally produce results. Each of the optional requestors has until all\n of the required requestors have finished, or until the optional\n tilliseconds timer has expired.\n\n The result maps the requestors and optionals into a single array. The\n value produced by the first element of the requestors array provides the\n first element of the result.\n\n If the optional milliseconds argument is supplied, then if all of the\n required requestors are not successful in the allotted time, then the\n parallel fails. If there are no required requestors, and if at least one\n optional requestor is successful within the allotted time, then the\n parallel succeeds.\n\n\nRQ.sequence(requestors [, milliseconds])\n\n RQ.sequence returns a requestor that processes each element of the\n requestors array one at a time. Each will be passed the result of the\n previous. If all succeed, then the sequence succeeds, having the result of\n the last of the requestors. If any fail, then the sequence fails.\n\n If the optional milliseconds argument is supplied, then if all of the\n requestors have not all completed in the allotted time, then the sequence\n fails and the pending requestor is cancelled.\n*/\n\n/*global\n clearTimeout, setImmediate, setTimeout\n*/\n\n/*properties\n array, evidence, fallback, freeze, forEach, index, isArray, length,\n message, method, milliseconds, name, parallel, race, sequence, value\n*/\n\nmodule.exports = {};\n\nmodule.exports = (function () {\n 'use strict';\n\n function expired(method, milliseconds) {\n\n// Make an expired exception.\n\n return {\n name: \"expired\",\n method: method,\n message: \"expired after \" + milliseconds,\n milliseconds: milliseconds\n };\n }\n\n function check(method, requestors, milliseconds, optionals, tilliseconds) {\n\n// Verify that the arguments are typed properly.\n\n function is_function(value, index, array) {\n if (typeof value !== 'function') {\n var e = new TypeError(\"not a function\");\n e.array = array;\n e.index = index;\n e.method = method;\n e.value = value;\n throw e;\n }\n }\n\n// requestors must be an array of functions, and it may be empty only if\n// optionals is present.\n\n if (optionals === undefined) {\n if (!Array.isArray(requestors) || requestors.length === 0) {\n throw new TypeError(method + \" requestors\");\n }\n } else {\n if (requestors && !Array.isArray(requestors)) {\n throw new TypeError(method + \" requestors\");\n }\n if (!Array.isArray(optionals) || optionals.length === 0) {\n throw new TypeError(method + \" optionals\");\n }\n optionals.forEach(is_function);\n }\n requestors.forEach(is_function);\n if (milliseconds &&\n (typeof milliseconds !== 'number' || milliseconds < 0)) {\n throw new TypeError(method + \" milliseconds\");\n }\n if (tilliseconds &&\n (typeof tilliseconds !== 'number' || tilliseconds < 0)) {\n throw new TypeError(method + \" tilliseconds\");\n }\n }\n\n function check_requestion(method, requestion, initial) {\n if (typeof requestion !== 'function') {\n throw new TypeError(method + \" requestion\");\n }\n if (initial !== null && typeof initial === 'object') {\n Object.freeze(initial);\n }\n }\n\n return {\n fallback : function fallback(requestors, milliseconds) {\n\n// RQ.fallback takes an array of requestor functions, and returns a requestor\n// that will call them each in order until it finds a successful outcome.\n\n// If all of the requestor functions fail, then the fallback fails. If the time\n// expires, then work in progress is cancelled.\n\n check(\"RQ.fallack\", requestors, milliseconds);\n return function requestor(requestion, initial) {\n var cancel,\n timeout_id;\n\n function finish(success, failure) {\n var r = requestion;\n cancel = null;\n if (r) {\n if (timeout_id) {\n clearTimeout(timeout_id);\n }\n requestion = null;\n timeout_id = null;\n return r(success, failure);\n }\n }\n\n function quash(reason) {\n if (requestion && typeof cancel === 'function') {\n setImmediate(cancel, reason);\n }\n return finish(undefined, reason || true);\n }\n\n check_requestion(\"RQ.fallack\", requestion, initial);\n if (milliseconds) {\n timeout_id = setTimeout(function () {\n return quash(expired(\"RQ.fallback\", milliseconds));\n }, milliseconds);\n }\n (function next(index, failure) {\n if (typeof requestion === 'function') {\n\n// If there are no more requestors, then signal failure.\n\n if (index >= requestors.length) {\n clearTimeout(timeout_id);\n cancel = null;\n return quash(failure);\n }\n\n// If there is another requestor, call it in the next turn, passing the value\n// and a requestion that will take the next step.\n\n var requestor = requestors[index];\n setImmediate(function () {\n var once = true;\n if (typeof requestion === 'function') {\n cancel = requestor(\n function requestion(success, failure) {\n if (once) {\n once = false;\n cancel = null;\n return failure === undefined\n ? finish(success)\n : next(index + 1, failure);\n }\n },\n initial\n );\n }\n });\n }\n }(0));\n return quash;\n };\n },\n parallel: function parallel(requestors, optionals, milliseconds,\n tilliseconds) {\n\n// RQ.parallel takes an array of requestors, and an optional second array of\n// requestors, and starts them all. It succeeds if all of the requestors in\n// the first array finish successfully before the time expires. The result\n// is an array collecting the results of all of the requestors.\n\n if (typeof optionals === 'number') {\n milliseconds = optionals;\n tilliseconds = undefined;\n optionals = undefined;\n }\n check(\"RQ.parallel\", requestors, milliseconds, optionals,\n tilliseconds);\n\n return function requestor(requestion, initial) {\n var quashes = [],\n optionals_remaining,\n optionals_successes = 0,\n requestors_length = requestors.length,\n requestors_remaining = requestors.length,\n results = [],\n timeout_till,\n timeout_id;\n\n function finish(success, failure) {\n var r = requestion;\n if (r) {\n requestion = null;\n if (timeout_id) {\n cle\n arTimeout(timeout_id);\n timeout_id = null;\n }\n if (timeout_till) {\n clearTimeout(timeout_till);\n timeout_till = null;\n }\n quashes.forEach(function (quash) {\n if (typeof quash === 'function') {\n return setImmediate(quash, failure);\n }\n });\n quashes = null;\n results = null;\n return r(success, failure);\n }\n }\n\n function quash(reason) {\n return finish(undefined, reason || true);\n }\n\n check_requestion(\"RQ.parallel\", requestion, initial);\n\n// milliseconds, if specified, says take no longer to process this request. If\n// any of the required requestors are not successful by this time, the parallel\n// requestor fails.\n\n if (milliseconds) {\n timeout_id = setTimeout(function () {\n timeout_id = null;\n return requestors_remaining === 0 &&\n (requestors_length > 0 ||\n optionals_successes > 0)\n ? finish(results)\n : quash(expired(\"RQ.parallel\", milliseconds));\n }, milliseconds);\n\n// tilliseconds, if specified, gives more time for the optional requestors to\n// complete. Normally, the optional requestors have until all of the required\n// requestors finish. If tilliseconds is larger than milliseconds, milliseconds\n// wins.\n\n }\n if (tilliseconds) {\n timeout_till = setTimeout(function () {\n timeout_till = null;\n if (requestors_remaining === 0) {\n return finish(results);\n }\n }, tilliseconds);\n }\n if (requestors) {\n requestors.forEach(function (requestor, index) {\n return setImmediate(function () {\n var once = true, cancel = requestor(\n function requestion(success, failure) {\n if (once && quashes) {\n once = false;\n quashes[index] = null;\n if (failure !== undefined) {\n return quash(failure);\n }\n results[index] = success;\n requestors_remaining -= 1;\n if (requestors_remaining === 0 &&\n !timeout_till) {\n return finish(results);\n }\n }\n },\n initial\n );\n if (quashes && quashes[index] === undefined) {\n quashes[index] = cancel;\n }\n });\n });\n }\n if (optionals) {\n optionals_remaining = optionals.length;\n optionals.forEach(function (requestor, index) {\n return setImmediate(function () {\n var once = true, cancel = requestor(\n function requestion(success, failure) {\n if (once && quashes) {\n once = false;\n quashes[requestors_length + index]\n = null;\n if (failure === undefined) {\n results[requestors_length + index]\n = success;\n optionals_successes += 1;\n }\n optionals_remaining -= 1;\n if (optionals_remaining === 0) {\n if (requestors_remaining === 0) {\n return requestors_length > 0 ||\n optionals_successes > 0\n ? finish(results)\n : quash(failure);\n }\n if (timeout_till) {\n clearTimeout(timeout_till);\n timeout_till = null;\n }\n }\n }\n },\n initial\n );\n if (quashes[requestors_length + index] ===\n undefined) {\n quashes[requestors_length + index] = cancel;\n }\n });\n });\n }\n return quash;\n };\n },\n race: function race(requestors, milliseconds) {\n\n// RQ.race takes an array of requestor functions. It starts them all\n// immediately. The first to finish wins. A race is successful if any\n// contestant is successful. It fails if all requestors fail or if the time\n// expires.\n\n check(\"RQ.race\", requestors, milliseconds);\n return function requestor(requestion, initial) {\n var quashes = [],\n remaining = requestors.length,\n timeout_id;\n\n function finish(success, failure) {\n var r = requestion;\n if (r) {\n requestion = null;\n if (timeout_id) {\n clearTimeout(timeout_id);\n }\n quashes.forEach(function stop(quash) {\n if (typeof quash === 'function') {\n return setImmediate(quash);\n }\n });\n quashes = null;\n return r(success, failure);\n }\n }\n\n function quash(reason) {\n return finish(undefined, reason || true);\n }\n\n check_requestion(\"RQ.race\", requestion, initial);\n if (milliseconds) {\n timeout_id = setTimeout(function timeout_id() {\n return quash(expired(\"RQ.race\", milliseconds));\n }, milliseconds);\n }\n requestors.forEach(function (requestor, index) {\n return setImmediate(function () {\n var once = true, cancel = requestor(\n function requestion(success, failure) {\n if (once && quashes) {\n once = false;\n quashes[index] = null;\n if (failure === undefined) {\n return finish(success);\n }\n remaining -= 1;\n if (remaining === 0) {\n return quash(failure);\n }\n }\n },\n initial\n );\n if (quashes[index] === undefined) {\n quashes[index] = cancel;\n }\n });\n });\n return quash;\n };\n },\n sequence: function sequence(requestors, milliseconds) {\n\n// RQ.sequence takes an array of requestor functions, and returns a requestor\n// that will call them each in order. An initial value is passed to each, which\n// is the previous success result.\n\n// If any of the requestor functions fail, then the whole sequence fails, and\n// the remaining requestors are not called.\n\n check(\"RQ.sequence\", requestors, milliseconds);\n return function requestor(requestion, initial) {\n var cancel,\n timeout_id;\n\n function finish(success, failure) {\n var r = requestion;\n cancel = null;\n if (r) {\n if (timeout_id) {\n clearTimeout(timeout_id);\n }\n requestion = null;\n return r(success, failure);\n }\n }\n\n function quash(reason) {\n if (requestion && typeof cancel === 'function') {\n setImmediate(cancel, reason);\n }\n return finish(undefined, reason || true);\n }\n\n check_requestion(\"RQ.sequence\", requestion, initial);\n if (milliseconds) {\n timeout_id = setTimeout(function () {\n timeout_id = null;\n return quash(expired(\"RQ.sequence\", milliseconds));\n }, milliseconds);\n }\n (function next(index) {\n var requestor, r = requestion;\n if (typeof r === 'function') {\n\n// If there are no more requestors, then signal success.\n\n if (index >= requestors.length) {\n if (timeout_id) {\n clearTimeout(timeout_id);\n }\n requestion = null;\n cancel = null;\n return r(initial);\n }\n\n// If there is another requestor, call it in the next turn, passing the value\n// and a requestion that will take the next step.\n\n requestor = requestors[index];\n setImmediate(function () {\n var once = true;\n cancel = requestor(\n function requestion(success, failure) {\n if (once) {\n once = false;\n cancel = null;\n if (failure !== undefined) {\n return quash(failure);\n }\n initial = success;\n return next(index + 1);\n }\n },\n initial\n );\n });\n }\n }(0));\n return quash;\n };\n }\n };\n}());",
"file": "lib/rq.js",
"file_size": 24815,
"file_write_time": 130286299970263196,
"settings":
{
"buffer_size": 24225,
"line_ending": "Windows"
}
},
{
"file": "app.js",
"settings":
{
"buffer_size": 857,
"line_ending": "Windows"
}
},
{
"file": "lib/readers.js",
"settings":
{
"buffer_size": 1852,
"line_ending": "Windows"
}
},
{
"file": "lib/writer.js",
"settings":
{
"buffer_size": 1637,
"line_ending": "Windows"
}
},
{
"contents": "var _ = require('underscore');\n\nmodule.exports = function(config) {\n\n function toGraphiteMetricsArray(server, metricMap) {\n\n return function transformServerStatus(requestion, serverStatus) {\n var metrics = [];\n\n function sanitizeKey(name) {\n return name\n .replace(/[^\\w]/gi, '_')\n }\n\n function addMetric(flattendKey, value) {\n var templateData = {\n cluster: sanitizeKey(server.cluster),\n host: sanitizeKey(server.shortName || server.host),\n metric: sanitizeKey(flattendKey)\n };\n var key = _.template(config[\"graphite-key-template\"], templateData);\n metrics.push({ key: key, value: value });\n }\n\n function mapAndFlatten(propName, propValue, target, flattendMetricKey)\n {\n if (typeof target == \"object\") {\n Object.getOwnPropertyNames(propValue).forEach(function(val) {\n mapAndFlatten(val, propValue[val], target[val], flattendMetricKey + \"_\" + val);\n });\n }\n else {\n addMetric(flattendMetricKey, target);\n }\n }\n\n Object.getOwnPropertyNames(metricMap).forEach(function(val) {\n mapAndFlatten(val, metricMap[val], serverStatus[val], val);\n });\n\n requestion(metrics);\n }\n }\n\n return {\n toGraphiteMetricsArray: toGraphiteMetricsArray\n };\n};",
"file": "app/writer.js",
"file_size": 1268,
"file_write_time": 130296031136598654,
"settings":
{
"buffer_size": 1221,
"line_ending": "Windows"
}
},
{
"contents": "var MongoClient = require('mongodb').MongoClient;\nvar Db = require('mongodb').Db,\n Server = require('mongodb').Server,\n Admin = require('mongodb').Admin,\n ReadPreference = require('mongodb').ReadPreference;\n\nfunction toMongoDbCallback(requesition, db) {\n return function(err, data) {\n if (!err && db) {\n requesition({db: db, data: data});\n }\n requesition(data, err || undefined);\n };\n};\n\nfunction connectToMongoDb (requesition, server) {\n console.log('Connecting to mongodb: %s', server.host);\n\n db = new Db(\"admin\", new Server(server.host, 27017, {}, {}),\n { auto_reconnect: true, safe: true, strict: true });\n\n db.open(toMongoDbCallback(requesition));\n}\n\nfunction fetchServerStatus (requesition, db) {\n console.log(\"fetching serverStatus\");\n db.command({ \"serverStatus\" : 1}, toMongoDbCallback(requesition));\n}\n\nfunction fetchServerInfo (requesition, db) {\n console.log(\"fetching serverInfo\");\n var admin = db.admin();\n admin.serverInfo(toMongoDbCallback(requesition));\n}\n\nfunction replSetGetStatus (requesition, db) {\n console.log(\"fetching replSetStatus\");\n var admin = db.admin();\n admin.replSetGetStatus(toMongoDbCallback(requesition));\n}\n\nfunction listDatabases (requesition, db) {\n console.log(\"fetching database list\");\n var admin = db.admin();\n admin.listDatabases(toMongoDbCallback(requesition, db));\n}\n\nfunction dbStats (requesition, params) {\n var db = params.db;\n var databases = params.data.databases;\n\n var dbStatsRequestors = databases.map(function(database) {\n return function(callback) {\n console.log(\"getting dbStats for %s\", database.name);\n var otherDb = db.db(database.name);\n otherDb.stats(toMongoDbCallback(callback));\n };\n });\n\n RQ.parallel(dbStatsRequestors)(requesition);\n}\n\n\nmodule.exports = {\n connectToMongoDb: connectToMongoDb,\n fetchServerStatus: fetchServerStatus\n};",
"file": "app/readers.js",
"file_size": 1889,
"file_write_time": 130296023491601911,
"settings":
{
"buffer_size": 1823,
"line_ending": "Windows"
}
}
],
"build_system": "",
"command_palette":
{
"height": 375.0,
"selected_items":
[
[
"Install ",
"Package Control: Install Package"
],
[
"powers",
"SublimeREPL: PowerShell"
],
[
"install ",
"Package Control: Install Package"
],
[
"install",
"Package Control: Install Package"
],
[
"Install",
"Package Control: Install Package"
],
[
"remove ",
"Package Control: Remove Package"
],
[
"Package Control: ",
"Package Control: List Packages"
],
[
"insta",
"Package Control: Install Package"
],
[
"packa",
"Package Control: Install Package"
],
[
"packa ",
"Package Control: Install Package"
],
[
"Pack",
"Package Control: Remove Package"
]
],
"width": 386.0
},
"console":
{
"height": 368.0,
"history":
[
"import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())"
]
},
"distraction_free":
{
"menu_visible": true,
"show_minimap": false,
"show_open_files": false,
"show_tabs": false,
"side_bar_visible": false,
"status_bar_visible": false
},
"file_history":
[
"/D/oss/mongodb-metrics/tests/serverStatus.json",
"/D/oss/mongodb-metrics/tests/writer-specs.js",
"/D/oss/mongodb-metrics/app.js",
"/D/ebay/asimov-tradera/WinAgent.ConfigFiles/config.json",
"/D/oss/mongodb-metrics/app/rq.js",
"/D/oss/mongodb-metrics/app/readers.js",
"/D/oss/mongodb-metrics/app/writer.js",
"/D/oss/mongodb-metrics/config.json",
"/D/oss/mongodb-metrics/node_modules/mongodb/lib/mongodb/db.js",
"/D/oss/mongodb-metrics/.gitignore",
"/D/oss/mongodb-metrics/gruntfile.js",
"/D/ebay/asimov-tradera/WinAgent.ConfigFiles/config.test.json",
"/D/oss/mongodb-metrics/node_modules/mongodb/lib/mongodb/admin.js",
"/D/oss/mongodb-metrics/node_modules/mongodb/lib/mongodb/connection/repl_set/repl_set.js",
"/D/oss/mongodb-metrics/node_modules/mongodb/lib/mongodb/connection/repl_set/options.js",
"/D/oss/mongodb-metrics/node_modules/mongodb/lib/mongodb/commands/db_command.js",
"//dashboards/d$/Inetpub/GiraffeOps/dashboards.js",
"/D/ebay/asimov-tradera/WinAgent.ConfigFiles/config.prod_tradera_site.json",
"/D/ebay/tradera/Deployment/VerificationPackages/TraderaSite/run.js",
"/C/Users/todegaard/AppData/Roaming/Sublime Text 3/Packages/User/node_app_js.sublime-build",
"/D/ebay/tools/Tools/AppLogs2Elastic/Gruntfile.js",
"/C/Users/todegaard/AppData/Roaming/Sublime Text 3/Packages/User/Preferences.sublime-settings",
"/D/oss/asimov-deploy-ui/Gruntfile.js",
"/D/ebay/tradera/Applications/TouchWeb/Gruntfile.js",
"/D/oss/mongodb-metrics/tests/test.js",
"/C/Users/todegaard/AppData/Roaming/Sublime Text 3/Installed Packages/Tomorrow Color Schemes.sublime-package",
"/D/ebay/tradera/Build/EbaySweden-StartBuild.ps1",
"/D/ebay/tradera/Applications/TouchWeb/src/EbaySweden.TouchWeb/static/script/app.js",
"/D/ebay/tradera/Applications/TouchWeb/src/EbaySweden.TouchWeb/static/script/app/ui/view-item/bidding-ui.js",
"/D/ebay/tools/Tools/AppLogs2Elastic/App.config",
"//dashboards/d$/Inetpub/Kibana/config.js",
"/D/ebay/asimov-tradera/WinAgent.ConfigFiles/config.prod_api.json",
"/D/ebay/asimov-tradera/WinAgent.ConfigFiles/config.prod_tradera_site_test.json",
"/C/Users/todegaard/AppData/Roaming/Sublime Text 3/Packages/User/Package Control.sublime-settings"
],
"find":
{
"height": 27.0
},
"find_in_files":
{
"height": 104.0,
"where_history":
[
"D:\\oss\\mongodb-metrics\\node_modules\\mongodb",
"D:\\ebay\\tradera\\Applications\\TouchWeb",
"D:\\ebay\\tradera"
]
},
"find_state":
{
"case_sensitive": false,
"find_history":
[
"app",
"requesition",
"my-mongo-db1",
"MyDb1",
"mongoDbUrl",
"console.lo",
"createAdminDbCommandSlaveOk",
"DbCommand",
"createAdminDbCommand",
"executeDbAdminCommand",
"command",
"executeDbAdminCommand",
"primaryPreferered",
"_executeQueryCommand",
"executeDbA",
"executeDbAdminCommand",
"ReadPreference.PRIMARY_PREFERRED",
"PREFERRED",
"PRIMARY PREFERRED",
"No primary found in set",
"connectWithNoPrimary",
"No primary found in set",
"var",
"_redirectToCartCheckout",
"data:cart:after-checkout-started",
"_startCheckout",
"ui:cart:on-checkout-start",
"on-checkout-start",
"_goToCheckout",
"checkoutAction",
"data-view-cart-button",
"cdn",
"traderaSite",
"(\"#",
"traderaSite",
" ",
"${",
"\n",
"back-to-tradera",
"CreateDeferr",
"Deferr<",
".Deferr",
"IDeferredMessage",
"SendFeedbackRemovalMail",
"SendFeedbackRemovalMail'",
"SendFeedbackRemovalMail",
"Create_DSR",
"Update_DSR_Stats",
"Create_DSR",
"Create_Grade_DSR\nCreate_DSR",
"Create_Grade_DSR\nCreate_Grade_DSR",
"Create_Grade_DSR\nCreate_Grade_DSR\n"
],
"highlight": true,
"in_selection": false,
"preserve_case": false,
"regex": false,
"replace_history":
[
],
"reverse": false,
"show_context": true,
"use_buffer2": true,
"whole_word": false,
"wrap": true
},
"groups":
[
{
"selected": 6,
"sheets":
[
{
"buffer": 0,
"file": "config.json",
"semi_transient": false,
"settings":
{
"buffer_size": 644,
"regions":
{
},
"selection":
[
[
644,
644
]
],
"settings":
{
"syntax": "Packages/JavaScript/JSON.tmLanguage",
"translate_tabs_to_spaces": false
},
"translation.x": 0.0,
"translation.y": 0.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 1,
"file": "//dashboards/d$/Inetpub/GiraffeOps/dashboards.js",
"semi_transient": false,
"settings":
{
"buffer_size": 15823,
"regions":
{
},
"selection":
[
[
14413,
14413
]
],
"settings":
{
"syntax": "Packages/JavaScript/JavaScript.tmLanguage",
"translate_tabs_to_spaces": false
},
"translation.x": 0.0,
"translation.y": 8753.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 2,
"file": "gruntfile.js",
"semi_transient": false,
"settings":
{
"buffer_size": 918,
"regions":
{
},
"selection":
[
[
523,
523
]
],
"settings":
{
"syntax": "Packages/JavaScript/JavaScript.tmLanguage",
"tab_size": 4,
"translate_tabs_to_spaces": true
},
"translation.x": 0.0,
"translation.y": 0.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 3,
"file": "lib/rq.js",
"semi_transient": false,
"settings":
{
"buffer_size": 24225,
"regions":
{
},
"selection":
[
[
761,
761
]
],
"settings":
{
"syntax": "Packages/JavaScript/JavaScript.tmLanguage",
"tab_size": 4,
"translate_tabs_to_spaces": true
},
"translation.x": 0.0,
"translation.y": 0.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 4,
"file": "app.js",
"semi_transient": false,
"settings":
{
"buffer_size": 857,
"regions":
{
},
"selection":
[
[
425,
425
]
],
"settings":
{
"syntax": "Packages/JavaScript/JavaScript.tmLanguage",
"translate_tabs_to_spaces": false
},
"translation.x": 0.0,
"translation.y": 0.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 5,
"file": "lib/readers.js",
"semi_transient": false,
"settings":
{
"buffer_size": 1852,
"regions":
{
},
"selection":
[
[
1119,
1119
]
],
"settings":
{
"syntax": "Packages/JavaScript/JavaScript.tmLanguage",
"translate_tabs_to_spaces": false
},
"translation.x": 0.0,
"translation.y": 114.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 6,
"file": "lib/writer.js",
"semi_transient": false,
"settings":
{
"buffer_size": 1637,
"regions":
{
},
"selection":
[
[
779,
779
]
],
"settings":
{
"syntax": "Packages/JavaScript/JavaScript.tmLanguage",
"translate_tabs_to_spaces": false
},
"translation.x": 0.0,
"translation.y": 193.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 7,
"file": "app/writer.js",
"semi_transient": false,
"settings":
{
"buffer_size": 1221,
"regions":
{
},
"selection":
[
[
511,
511
]
],
"settings":
{
"syntax": "Packages/JavaScript/JavaScript.tmLanguage",
"translate_tabs_to_spaces": false
},
"translation.x": 0.0,
"translation.y": 0.0,
"zoom_level": 1.0
},
"type": "text"
},
{
"buffer": 8,
"file": "app/readers.js",
"semi_transient": false,
"settings":
{
"buffer_size": 1823,
"regions":
{
},
"selection":
[
[
1665,
1665
]
],
"settings":
{
"syntax": "Packages/JavaScript/JavaScript.tmLanguage",
"translate_tabs_to_spaces": false
},
"translation.x": 0.0,
"translation.y": 627.0,
"zoom_level": 1.0
},
"type": "text"
}
]
},
{
"sheets":
[
]
}
],
"incremental_find":
{
"height": 27.0
},
"input":
{
"height": 40.0
},
"layout":
{
"cells":
[
[
0,
0,
1,
1
],
[
1,
0,
2,
1
]
],
"cols":
[
0.0,
0.47379646557,
1.0
],
"rows":
[
0.0,
1.0
]
},
"menu_visible": false,
"output.exec":
{
"height": 271.0
},
"project": "mongodb-metrics.sublime-project",
"replace":
{
"height": 50.0
},
"save_all_on_build": true,
"select_file":
{
"height": 0.0,
"selected_items":
[
[
"read",
"app\\readers.js"
],
[
"app",
"app.js"
],
[
"_main",
"src\\EbaySweden.TouchWeb\\Areas\\Default\\Views\\Shared\\_MainLayout.cshtml"
],
[
"",
"D:\\ebay\\tradera\\Applications\\TouchWeb\\src\\EbaySweden.TouchWeb\\TouchWeb.csproj"
],
[
"start-",
"src\\EbaySweden.TouchWeb\\static\\style\\components\\start-page.scss"
],
[
"bidding",
"src\\EbaySweden.TouchWeb\\static\\script\\app\\ui\\view-item\\bidding-ui.js"
],
[
"app.",
"src\\EbaySweden.TouchWeb\\static\\script\\app.js"
]
],
"width": 0.0
},
"select_project":
{
"height": 0.0,
"selected_items":
[
],
"width": 0.0
},
"select_symbol":
{
"height": 0.0,
"selected_items":
[
],
"width": 0.0
},
"settings":
{
},
"show_minimap": false,
"show_open_files": true,
"show_tabs": true,
"side_bar_visible": true,
"side_bar_width": 279.0,
"status_bar_visible": true,
"template_settings":
{
}
}