You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updated electron backend, cleaning up codebase and adding comments for next iteration team. Added cloudbased.ts to modularize backend logic for AWS instances. Co-authored-by: Jon Cruz
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,10 @@ Chronos is a comprehensive developer tool that monitors the health and web traff
23
23
24
24
## What's New?
25
25
26
+
v10
27
+
- User's account information and services can now be stored in MongoDB. To start connecting to user's database, please add in the URI in UserModel.ts.
28
+
29
+
26
30
- Option to choose between cloud hosted services and local services, now giving Chronos the ability to monitor instances and clusters on AWS' EC2, ECS, and EKS platforms.
27
31
- An updated AWS Graphs Container to dynamically render plots for EC2 or ECS data fetched with Electron using event listeners connecting to AWS CloudWatch w/ the aws-sdk package, as well as utilizing Prometheus data scraping and Grafana integration to fetch and render EKS data.
28
32
- A step-by-step instruction on setting up a new, functional EC2 instance, ECS cluster, and EKS cluster, ready to be monitored and tested by the app.
* @function tryParseJson - a function that will parse the JSON data into an object. If there is any error during parsing (a.k.a there is a circular inside the JSON data), console log the error
32
-
* @param jsonString - JSON data that is received from backend
33
-
* @return an object with all information from backend
34
-
*/
35
-
functiontryParseJSON(jsonString: string){
36
-
try{
37
-
consto=JSON.parse(jsonString);
38
-
39
-
if(o&&typeofo==='object'){
40
-
returno;
41
-
}
42
-
}catch(e){
43
-
console.log({error: e});
44
-
}
45
-
returnfalse;
46
-
}
47
29
48
30
/**
49
31
* @function fetchServicesNames - a function that will take an application name and update the state of `serviceData` based on backend response
50
32
* 1. Take in an application name
51
-
*
52
33
* 2. Send a `servicesRequest` to backend
53
-
*
54
34
* 3. Upon `servicesResponse`, parse the received JSON data and assign it to `servicesData`
55
-
*
56
35
* 4. Remove the listener for `servicesResponse`
57
36
* @param application - application name
58
37
*/
59
38
// v10: Invoked by connectToDB, passing in app (card title)
// * @function tryParseJson - a function that will parse the JSON data into an object. If there is any error during parsing (a.k.a there is a circular inside the JSON data), console log the error
119
+
// * @param jsonString - JSON data that is received from backend
120
+
// * @return an object with all information from backend
// Mongoose connection wrapped in function that takes the index of the selected database as the parameter. This index is used to target the correct database for querying.
0 commit comments