This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed
Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change 720720 }
721721 }
722722 },
723+ "/api/v1/workspaces/{workspace_name}/alerts-summary" : {
724+ "get" : {
725+ "tags" : [
726+ " CodeGate API" ,
727+ " Workspaces"
728+ ],
729+ "summary" : " Get Workspace Alerts Summary" ,
730+ "description" : " Get alert summary for a workspace." ,
731+ "operationId" : " v1_get_workspace_alerts_summary" ,
732+ "parameters" : [
733+ {
734+ "name" : " workspace_name" ,
735+ "in" : " path" ,
736+ "required" : true ,
737+ "schema" : {
738+ "type" : " string" ,
739+ "title" : " Workspace Name"
740+ }
741+ }
742+ ],
743+ "responses" : {
744+ "200" : {
745+ "description" : " Successful Response" ,
746+ "content" : {
747+ "application/json" : {
748+ "schema" : {
749+ "$ref" : " #/components/schemas/AlertSummary"
750+ }
751+ }
752+ }
753+ },
754+ "422" : {
755+ "description" : " Validation Error" ,
756+ "content" : {
757+ "application/json" : {
758+ "schema" : {
759+ "$ref" : " #/components/schemas/HTTPValidationError"
760+ }
761+ }
762+ }
763+ }
764+ }
765+ }
766+ },
723767 "/api/v1/workspaces/{workspace_name}/messages" : {
724768 "get" : {
725769 "tags" : [
13521396 ],
13531397 "title" : " AlertSeverity"
13541398 },
1399+ "AlertSummary" : {
1400+ "properties" : {
1401+ "malicious_packages" : {
1402+ "type" : " integer" ,
1403+ "title" : " Malicious Packages"
1404+ },
1405+ "pii" : {
1406+ "type" : " integer" ,
1407+ "title" : " Pii"
1408+ },
1409+ "secrets" : {
1410+ "type" : " integer" ,
1411+ "title" : " Secrets"
1412+ }
1413+ },
1414+ "type" : " object" ,
1415+ "required" : [
1416+ " malicious_packages" ,
1417+ " pii" ,
1418+ " secrets"
1419+ ],
1420+ "title" : " AlertSummary" ,
1421+ "description" : " Represents a set of summary alerts"
1422+ },
13551423 "ChatMessage" : {
13561424 "properties" : {
13571425 "message" : {
You can’t perform that action at this time.
0 commit comments