Skip to content

Instantly share code, notes, and snippets.

@Sequoia
Forked from lhorie/mermaid.md
Last active June 10, 2022 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sequoia/f16c066be28c1cc2ca582fd8f4f32b06 to your computer and use it in GitHub Desktop.
Save Sequoia/f16c066be28c1cc2ca582fd8f4f32b06 to your computer and use it in GitHub Desktop.
flow chart example
flowchart TB

start{Response is OK\n& complete?}
start-->|Yes|ok1[no log needed]
start-->|No|isclienterror{problem with input\ni.e. client error?}

isclienterror-->|Yes|warnclienterror[log warning]
isclienterror-->|No|blocksfunctionality{does this break\nuser experience?}
warnclienterror-.->m3Metric[Consider adding an M3 metric\nwith an associated alert]


blocksfunctionality-->|Yes|error[log error]
blocksfunctionality-->|No|warn[log warning]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment