File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -646,12 +646,6 @@ const stats = await sdk.server.getMessageStats();
646646
647647// Get server logs
648648const logs = await sdk .server .getServerLogs (100 );
649-
650- // Get alerts
651- const alerts = await sdk .server .getAlerts ();
652-
653- // Mark alerts as read
654- await sdk .server .markAlertAsRead ([" alert-id-1" , " alert-id-2" ]);
655649```
656650
657651## Error Handling
Original file line number Diff line number Diff line change @@ -20,16 +20,6 @@ export class ServerModule {
2020 return response . data . data ;
2121 }
2222
23- async getAlerts ( ) : Promise < any [ ] > {
24- const response = await this . http . get ( "/api/v1/server/alert" ) ;
25- return response . data . data ;
26- }
27-
28- async markAlertAsRead ( ids : string [ ] ) : Promise < any > {
29- const response = await this . http . post ( "/api/v1/server/alert/read" , { ids } ) ;
30- return response . data . data ;
31- }
32-
3323 async getMediaStatistics ( options ?: { only ?: string [ ] } ) : Promise < any > {
3424 const params : Record < string , any > = { } ;
3525 if ( options ?. only ) params . only = options . only . join ( "," ) ;
You can’t perform that action at this time.
0 commit comments