toblich / nosy-cat

Final college project: Anomaly & root-cause detection on distributed systems
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

[Graph Service] Add basic graph service #29

Closed toblich closed 5 years ago

toblich commented 5 years ago

Adds a basic in-memory graph service that stores the Components, which depend on which, and the current status of every one of them.

It supports a POST to /graph with the following body to insert Components and Dependencies:

[
  { 
    "caller": ?string,
    "callee": ?string
  }
]

Where both caller and callee are a Component (each), and the caller depends on the callee.

Currently, it is also possible to do a GET /graph to see a json representation of the current state of the graph, just for debugging purposes.