1
0
mirror of https://github.com/matrix-org/pinecone.git synced 2026-10-29 00:59:38 +03:00
Files
pinecone/cmd/pineconesim/sequences/api_reference.json
devonh 3237a98f74 Sim - add node pinging with convergence and stretch data (#44)
* Stub in node ping toggle ui

* Sim - stub in api commands for ping toggling

* Sim - hookup basic pinging

* Sim - sync clients to server ping state

* Sim - better sync ui ping state to server

* Sim - flush out websocket events for pinging

* Sim - add snek and tree convergence data

* Sim - report stretch values

* Sim - add printout for total network stretch
2022-04-27 14:17:14 +00:00

95 lines
2.4 KiB
JSON

{
"EventSequence": [
{
"Command": "Debug",
"Data": {}
},
{
"Command": "Play",
"Data": {}
},
{
"Command": "Pause",
"Data": {}
},
{
"Command": "Delay",
"Data": {
"Length": 100
}
},
{
"Command": "AddNode",
"Data": {
"Name": "Alice",
"NodeType": "Default"
}
},
{
"Command": "RemoveNode",
"Data": {
"Name": "Alice"
}
},
{
"Command": "AddPeer",
"Data": {
"Node": "Alice",
"Peer": "Bob"
}
},
{
"Command": "RemovePeer",
"Data": {
"Node": "Alice",
"Peer": "Bob"
}
},
{
"Command": "ConfigureAdversaryDefaults",
"Data": {
"Node": "Alice",
"DropRates": {
"Overall": "0",
"Keepalive": "0",
"TreeAnnouncement": "0",
"TreeRouted": "0",
"VirtualSnakeBootstrap": "0",
"VirtualSnakeBootstrapACK": "0",
"VirtualSnakeSetup": "0",
"VirtualSnakeSetupACK": "0",
"VirtualSnakeTeardown": "0",
"VirtualSnakeRouted": "0"
}
}
},
{
"Command": "ConfigureAdversaryPeer",
"Data": {
"Node": "Alice",
"Peer": "Bob",
"DropRates": {
"Overall": "0",
"Keepalive": "0",
"TreeAnnouncement": "0",
"TreeRouted": "0",
"VirtualSnakeBootstrap": "0",
"VirtualSnakeBootstrapACK": "0",
"VirtualSnakeSetup": "0",
"VirtualSnakeSetupACK": "0",
"VirtualSnakeTeardown": "0",
"VirtualSnakeRouted": "0"
}
}
},
{
"Command": "StartPings",
"Data": {}
},
{
"Command": "StopPings",
"Data": {}
}
]
}