|
13 | 13 | "name": "MIT", |
14 | 14 | "url": "https://github.com/vxn-dev/swis-api/blob/master/LICENSE" |
15 | 15 | }, |
16 | | - "version": "5.17.5" |
| 16 | + "version": "5.17.8" |
17 | 17 | }, |
18 | 18 | "host": "swis-api-run-prod:8050", |
19 | 19 | "basePath": "/", |
|
762 | 762 | "name": "reason", |
763 | 763 | "in": "query" |
764 | 764 | }, |
| 765 | + { |
| 766 | + "type": "number", |
| 767 | + "description": "SLA time duration in hours since the start of such incident, (0 = disabled).", |
| 768 | + "name": "sla_time", |
| 769 | + "in": "query" |
| 770 | + }, |
765 | 771 | { |
766 | 772 | "type": "string", |
767 | 773 | "description": "ID of the referencing socket(s).\nSocketID []string `json:\"socket_id\"`", |
|
872 | 878 | "name": "reason", |
873 | 879 | "in": "query" |
874 | 880 | }, |
| 881 | + { |
| 882 | + "type": "number", |
| 883 | + "description": "SLA time duration in hours since the start of such incident, (0 = disabled).", |
| 884 | + "name": "sla_time", |
| 885 | + "in": "query" |
| 886 | + }, |
875 | 887 | { |
876 | 888 | "type": "string", |
877 | 889 | "description": "ID of the referencing socket(s).\nSocketID []string `json:\"socket_id\"`", |
|
1090 | 1102 | "name": "response_time", |
1091 | 1103 | "in": "query" |
1092 | 1104 | }, |
| 1105 | + { |
| 1106 | + "type": "number", |
| 1107 | + "description": "SLA time duration in hours since the start of such incident, (0 = disabled).", |
| 1108 | + "name": "sla_time", |
| 1109 | + "in": "query" |
| 1110 | + }, |
1093 | 1111 | { |
1094 | 1112 | "type": "string", |
1095 | 1113 | "description": "More verbose name/description of the socket.", |
|
1184 | 1202 | "name": "reason", |
1185 | 1203 | "in": "query" |
1186 | 1204 | }, |
| 1205 | + { |
| 1206 | + "type": "number", |
| 1207 | + "description": "SLA time duration in hours since the start of such incident, (0 = disabled).", |
| 1208 | + "name": "sla_time", |
| 1209 | + "in": "query" |
| 1210 | + }, |
1187 | 1211 | { |
1188 | 1212 | "type": "string", |
1189 | 1213 | "description": "ID of the referencing socket(s).\nSocketID []string `json:\"socket_id\"`", |
|
1289 | 1313 | "name": "reason", |
1290 | 1314 | "in": "query" |
1291 | 1315 | }, |
| 1316 | + { |
| 1317 | + "type": "number", |
| 1318 | + "description": "SLA time duration in hours since the start of such incident, (0 = disabled).", |
| 1319 | + "name": "sla_time", |
| 1320 | + "in": "query" |
| 1321 | + }, |
1292 | 1322 | { |
1293 | 1323 | "type": "string", |
1294 | 1324 | "description": "ID of the referencing socket(s).\nSocketID []string `json:\"socket_id\"`", |
|
1726 | 1756 | } |
1727 | 1757 | } |
1728 | 1758 | }, |
| 1759 | + "/dish/streamer/stats": { |
| 1760 | + "get": { |
| 1761 | + "description": "get SSE streamer statistics", |
| 1762 | + "produces": [ |
| 1763 | + "application/json" |
| 1764 | + ], |
| 1765 | + "tags": [ |
| 1766 | + "dish" |
| 1767 | + ], |
| 1768 | + "summary": "Get SSE streamer statistics", |
| 1769 | + "responses": { |
| 1770 | + "200": { |
| 1771 | + "description": "OK", |
| 1772 | + "schema": { |
| 1773 | + "$ref": "#/definitions/pkg_dish.StreamerStats" |
| 1774 | + } |
| 1775 | + }, |
| 1776 | + "404": { |
| 1777 | + "description": "Not Found", |
| 1778 | + "schema": { |
| 1779 | + "$ref": "#/definitions/pkg_dish.StreamerStats" |
| 1780 | + } |
| 1781 | + }, |
| 1782 | + "500": { |
| 1783 | + "description": "Internal Server Error", |
| 1784 | + "schema": { |
| 1785 | + "$ref": "#/definitions/pkg_dish.StreamerStats" |
| 1786 | + } |
| 1787 | + } |
| 1788 | + } |
| 1789 | + } |
| 1790 | + }, |
1729 | 1791 | "/finance": { |
1730 | 1792 | "get": { |
1731 | 1793 | "description": "get whole finance package content", |
|
3987 | 4049 | "timestamp": { |
3988 | 4050 | "description": "UNIX timestamp of the last provided backup.", |
3989 | 4051 | "type": "integer" |
| 4052 | + }, |
| 4053 | + "ttl": { |
| 4054 | + "description": "TimeToLive aka the tolerable age of last backup in hours.", |
| 4055 | + "type": "number" |
3990 | 4056 | } |
3991 | 4057 | } |
3992 | 4058 | }, |
|
4107 | 4173 | "description": "Reason of the incident that happened.", |
4108 | 4174 | "type": "string" |
4109 | 4175 | }, |
| 4176 | + "sla_time": { |
| 4177 | + "description": "SLA time duration in hours since the start of such incident, (0 = disabled).", |
| 4178 | + "type": "number" |
| 4179 | + }, |
4110 | 4180 | "socket_id": { |
4111 | 4181 | "description": "ID of the referencing socket(s).\nSocketID []string `json:\"socket_id\"`", |
4112 | 4182 | "type": "string" |
|
4223 | 4293 | "description": "ResponseTime is the time for the request to be processed.", |
4224 | 4294 | "type": "number" |
4225 | 4295 | }, |
| 4296 | + "sla_time": { |
| 4297 | + "description": "SLA time duration in hours since the start of such incident, (0 = disabled).", |
| 4298 | + "type": "number" |
| 4299 | + }, |
4226 | 4300 | "socket_description": { |
4227 | 4301 | "description": "More verbose name/description of the socket.", |
4228 | 4302 | "type": "string" |
|
4237 | 4311 | } |
4238 | 4312 | } |
4239 | 4313 | }, |
| 4314 | + "pkg_dish.StreamerStats": { |
| 4315 | + "type": "object", |
| 4316 | + "properties": { |
| 4317 | + "client_count": { |
| 4318 | + "description": "Total number of the SSE stream clients/listeners.", |
| 4319 | + "type": "integer" |
| 4320 | + } |
| 4321 | + } |
| 4322 | + }, |
4240 | 4323 | "pkg_finance.Account": { |
4241 | 4324 | "type": "object", |
4242 | 4325 | "required": [ |
|
0 commit comments