Commit 177bece
committed
Add automatic status page with metrics dashboard
Introduces a built-in status page to RustAPI, providing real-time metrics for all endpoints including request counts, success rates, average latency, and last access time. Adds `status_page()` and `status_page_with_config()` methods to `RustApi` for easy enablement and customization. Includes a new middleware layer for tracking metrics, a self-contained HTML dashboard, tests, an example, and documentation in the cookbook.1 parent 9852324 commit 177bece
File tree
11 files changed
+630
-19
lines changed- crates
- rustapi-core
- src
- tests
- rustapi-rs/examples
- docs/cookbook/src
- recipes
- tests/integration
11 files changed
+630
-19
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| 102 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
869 | 871 | | |
870 | 872 | | |
871 | 873 | | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
872 | 922 | | |
873 | 923 | | |
874 | 924 | | |
| |||
880 | 930 | | |
881 | 931 | | |
882 | 932 | | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
883 | 936 | | |
884 | 937 | | |
885 | 938 | | |
| |||
899 | 952 | | |
900 | 953 | | |
901 | 954 | | |
902 | | - | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
903 | 958 | | |
904 | | - | |
905 | 959 | | |
906 | 960 | | |
907 | 961 | | |
| |||
944 | 998 | | |
945 | 999 | | |
946 | 1000 | | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
947 | 1004 | | |
948 | 1005 | | |
949 | 1006 | | |
| |||
980 | 1037 | | |
981 | 1038 | | |
982 | 1039 | | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
983 | 1043 | | |
984 | 1044 | | |
985 | 1045 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
0 commit comments