Skip to content

Commit

Permalink
Update ServerService.py
Browse files Browse the repository at this point in the history
2 Features added
   i) Persistent feeder deletion added to ServerService.py.
   ii) CubeSaveData added to CubeService.py to serialize a specific cube data
  • Loading branch information
Mr-SabyasachiBose authored and MariusWirtz committed Oct 8, 2022
1 parent 6d6b249 commit 5c7a7eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions TM1py/Services/ServerService.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,13 @@ def save_data(self, **kwargs) -> Response:
process_service = ProcessService(self._rest)
return process_service.execute_ti_code(ti, **kwargs)

@require_admin
def delete_persistent_feeders(self, **kwargs) -> Response:
from TM1py.Services import ProcessService
ti = "DeleteAllPersistentFeeders;"
process_service = ProcessService(self._rest)
return process_service.execute_ti_code(ti, **kwargs)

@require_admin
def start_performance_monitor(self):
config = {
Expand Down

0 comments on commit 5c7a7eb

Please sign in to comment.