summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/tools/wtstats/template/models/stat.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/tools/wtstats/template/models/stat.js')
-rw-r--r--src/third_party/wiredtiger/tools/wtstats/template/models/stat.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/tools/wtstats/template/models/stat.js b/src/third_party/wiredtiger/tools/wtstats/template/models/stat.js
new file mode 100644
index 00000000000..6dc4d07652c
--- /dev/null
+++ b/src/third_party/wiredtiger/tools/wtstats/template/models/stat.js
@@ -0,0 +1,34 @@
+var AmpersandState = require('ampersand-state'),
+ colors = require('./colors').getInstance(),
+ debug = require('debug')('model:stat');
+
+var Stat = module.exports = AmpersandState.extend({
+ props: {
+ name: {
+ type: 'string',
+ default: ''
+ },
+ group: {
+ type: 'string',
+ default: ''
+ },
+ selected: {
+ type: 'boolean',
+ default: false
+ },
+ data: {
+ type: 'object'
+ },
+ app: {
+ type: 'object'
+ }
+ },
+ derived: {
+ color: {
+ cache: true,
+ fn: function () {
+ return colors(this.cid);
+ }
+ }
+ }
+});