File tree 1 file changed +68
-0
lines changed
1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change 720
720
}
721
721
}
722
722
},
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
+ },
723
767
"/api/v1/workspaces/{workspace_name}/messages" : {
724
768
"get" : {
725
769
"tags" : [
1352
1396
],
1353
1397
"title" : " AlertSeverity"
1354
1398
},
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
+ },
1355
1423
"ChatMessage" : {
1356
1424
"properties" : {
1357
1425
"message" : {
You can’t perform that action at this time.
0 commit comments