This repository was archived by the owner on Aug 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 - Multi Arch Docker builds through docker buildx
3434 - High Availability using single master and unlimited worker nodes!
3535
36- <details>
37- <summary>Your container graph</summary>
38- [Interactive Graph](http://localhost:9876/graph)
39-
40- [Raw image](http://localhost:9876/graph/image)
41-
42- ---
43-
44- 
45- </details>
46-
4736 # 🔗 DockStatAPI v2 Documentation
4837
4938 _⚠️ = Deprecation warning_
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ async function generateGraphJSON(
1111 try {
1212 logger . info ( "generateGraphJSON >>> Starting generation" ) ;
1313
14- // Define the new JSON structure
1514 const graphData = {
1615 nodes : [ ] as cytoscape . ElementDefinition [ ] ,
1716 edges : [ ] as cytoscape . ElementDefinition [ ] ,
@@ -66,7 +65,6 @@ async function generateGraphJSON(
6665 }
6766 }
6867
69- // Write the new structured JSON to file
7068 atomicWrite ( CACHE_DIR_JSON , JSON . stringify ( graphData , null , 2 ) ) ;
7169 logger . info ( "generateGraphJSON <<< JSON file generated successfully" ) ;
7270 return true ;
Original file line number Diff line number Diff line change @@ -4,31 +4,6 @@ import path from "path";
44import { rateLimitedReadFile } from "../../utils/rateLimitFS" ;
55const router = Router ( ) ;
66
7- router . get ( "/" , async ( req : Request , res : Response ) => {
8- const ResponseHandler = createResponseHandler ( res ) ;
9- try {
10- const graphPath = path . join (
11- __dirname ,
12- "/../../.." + "/src/data/graph.html" ,
13- ) ;
14- return res . contentType ( "html" ) . status ( 200 ) . sendFile ( graphPath ) ;
15- } catch ( error : unknown ) {
16- const errorMsg = error instanceof Error ? error . message : String ( error ) ;
17- return ResponseHandler . critical ( errorMsg ) ;
18- }
19- } ) ;
20-
21- router . get ( "/image" , async ( req : Request , res : Response ) => {
22- const ResponseHandler = createResponseHandler ( res ) ;
23- try {
24- const graphPath = path . join ( __dirname , "/../../.." + "/src/data/graph.png" ) ;
25- return res . contentType ( "image/png" ) . status ( 200 ) . sendFile ( graphPath ) ;
26- } catch ( error : unknown ) {
27- const errorMsg = error instanceof Error ? error . message : String ( error ) ;
28- return ResponseHandler . critical ( errorMsg ) ;
29- }
30- } ) ;
31-
327router . get ( "/json" , async ( req : Request , res : Response ) => {
338 const ResponseHandler = createResponseHandler ( res ) ;
349 try {
You can’t perform that action at this time.
0 commit comments