Skip to content

ProjectGraph

View as Markdown

The project canvas for one environment.

Field Type Description
environment_id * string
nodes * array of GraphNode
edges * array of GraphEdge
canvas CanvasLayout

* always present

{
"environment_id": "string",
"nodes": [
{
"id": "string",
"type": "service",
"name": "string",
"status": "string",
"position": {
"x": 0.5,
"y": 0.5
},
"data": {}
}
],
"edges": [
{
"id": "string",
"from": "string",
"to": "string",
"kind": "reference",
"observed": false,
"label": "string"
}
],
"canvas": {
"layout": "manual",
"direction": "LR",
"nodes": {
"services.web": {
"x": 0,
"y": 0
}
},
"viewport": {
"x": 0,
"y": 0,
"zoom": 1
}
}
}