Skip to content

Instantly share code, notes, and snippets.

@sophistifunk
Created July 18, 2018 20:56
Show Gist options
  • Save sophistifunk/2d9b7289fca89ab19a81819a88386eb0 to your computer and use it in GitHub Desktop.
Save sophistifunk/2d9b7289fca89ab19a81819a88386eb0 to your computer and use it in GitHub Desktop.
Example showing structure:
[
{
"name": "Alpha",
"children": [
{
"name": "Homer",
"children": [],
"state": "not_built",
"completePercent": 50,
"id": 1,
"title": "Homer",
"type": "PARALLEL"
},
{
"name": "Marge",
"children": [],
"state": "not_built",
"completePercent": 50,
"id": 2,
"title": "Marge",
"type": "PARALLEL"
}
],
"state": "not_built",
"completePercent": 50,
"id": 3,
"title": "Alpha",
"type": "STAGE"
},
{
"name": "Blue",
"children": [],
"state": "not_built",
"completePercent": 50,
"id": 4,
"title": "Blue",
"type": "STAGE"
},
{
"name": "Bravo",
"children": [
{
"name": "Single 1",
"children": [],
"state": "not_built",
"completePercent": 50,
"id": 5,
"title": "Single 1",
"type": "PARALLEL"
},
{
"name": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
"children": [],
"state": "not_built",
"completePercent": 50,
"id": 6,
"title": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
"type": "PARALLEL",
"nextSibling": {
"name": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
"children": [],
"state": "not_built",
"completePercent": 50,
"id": 7,
"title": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
"type": "PARALLEL",
"nextSibling": {
"name": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
"children": [],
"state": "not_built",
"completePercent": 50,
"id": 8,
"title": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
"type": "PARALLEL"
}
}
},
{
"name": "Multi 1 of 4",
"children": [],
"state": "not_built",
"completePercent": 50,
"id": 9,
"title": "Multi 1 of 4",
"type": "PARALLEL",
"nextSibling": {
"name": "Multi 2 of 4",
"children": [],
"state": "not_built",
"completePercent": 50,
"id": 10,
"title": "Multi 2 of 4",
"type": "PARALLEL",
"nextSibling": {
"name": "Multi 3 of 4",
"children": [],
"state": "not_built",
"completePercent": 50,
"id": 11,
"title": "Multi 3 of 4",
"type": "PARALLEL",
"nextSibling": {
"name": "Multi 4 of 4",
"children": [],
"state": "not_built",
"completePercent": 50,
"id": 12,
"title": "Multi 4 of 4",
"type": "PARALLEL"
}
}
}
}
],
"state": "not_built",
"completePercent": 50,
"id": 13,
"title": "Bravo",
"type": "STAGE"
}
]
-----------------------------
Example showing the status icons:
[
{
"name": "Success",
"children": [],
"state": "success",
"completePercent": 50,
"id": 14,
"title": "Success",
"type": "STAGE"
},
{
"name": "Failure",
"children": [],
"state": "failure",
"completePercent": 50,
"id": 15,
"title": "Failure",
"type": "STAGE"
},
{
"name": "Running",
"children": [],
"state": "running",
"completePercent": 21,
"id": 16,
"title": "Running",
"type": "STAGE"
},
{
"name": "Slow",
"children": [],
"state": "running",
"completePercent": 150,
"id": 17,
"title": "Slow",
"type": "STAGE"
},
{
"name": "Queued",
"children": [],
"state": "queued",
"completePercent": 50,
"id": 18,
"title": "Queued",
"type": "STAGE"
},
{
"name": "Unstable",
"children": [],
"state": "unstable",
"completePercent": 50,
"id": 19,
"title": "Unstable",
"type": "STAGE"
},
{
"name": "Aborted",
"children": [],
"state": "aborted",
"completePercent": 50,
"id": 20,
"title": "Aborted",
"type": "STAGE"
},
{
"name": "Not Built",
"children": [],
"state": "not_built",
"completePercent": 50,
"id": 21,
"title": "Not Built",
"type": "STAGE"
},
{
"name": "Bad data",
"children": [],
"state": "this is not my office",
"completePercent": 50,
"id": 22,
"title": "Bad data",
"type": "STAGE"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment