mirror of
https://github.com/nasa/openmct.git
synced 2025-05-02 16:53:24 +00:00
[Indicators] Begin adding Couch indicator
Begin adding indicator to display connection status for CouchDB. WTD-608.
This commit is contained in:
parent
48bcb662c6
commit
8cfcd2cd15
@ -18,6 +18,21 @@
|
|||||||
{
|
{
|
||||||
"key": "COUCHDB_PATH",
|
"key": "COUCHDB_PATH",
|
||||||
"value": "/couch/openmct"
|
"value": "/couch/openmct"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "COUCHDB_INDICATOR_INTERVAL",
|
||||||
|
"value": 15000
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"indicators": [
|
||||||
|
{
|
||||||
|
"implementation": "CouchIndicator.js",
|
||||||
|
"depends": [
|
||||||
|
"$http",
|
||||||
|
"$interval",
|
||||||
|
"COUCHDB_PATH",
|
||||||
|
"COUCHDB_INDICATOR_INTERVAL"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
25
platform/persistence/src/CouchIndicator.js
Normal file
25
platform/persistence/src/CouchIndicator.js
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*global define*/
|
||||||
|
|
||||||
|
define(
|
||||||
|
[],
|
||||||
|
function () {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
function CouchIndicator($http, $interval, PATH, INTERVAL) {
|
||||||
|
function updateIndicator() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$interval(updateIndicator, INTERVAL);
|
||||||
|
|
||||||
|
return {
|
||||||
|
getGlyph: function () {
|
||||||
|
return "D";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return CouchIndicator;
|
||||||
|
}
|
||||||
|
);
|
Loading…
x
Reference in New Issue
Block a user