diff --git a/analytics-service/c8y_agent.py b/analytics-service/c8y_agent.py index 6e99662..fead484 100644 --- a/analytics-service/c8y_agent.py +++ b/analytics-service/c8y_agent.py @@ -27,8 +27,10 @@ def upload_extension(self, extension_name, ext_file, request_headers): def restart_cep(self,request_headers): result = {} try: - self._logger.info(f"Restarted CEP Format 1") - result = self.c8yapp.get_tenant_instance(headers=request_headers).put(resource="/service/cep/restart", json="") + self._logger.info(f"Restarted CEP!") + # self.c8yapp.get_tenant_instance(headers=request_headers).put(resource="/service/cep/restart", json="") + # self.c8yapp.bootstrap_instance.put(resource="/service/cep/restart", json="") + self.c8yapp.bootstrap_instance.put(resource="/service/cep/restart", json={}) except Exception as e: self._logger.error(f"Ignoring exceptiom!", exc_info=True) # try: @@ -40,4 +42,4 @@ def restart_cep(self,request_headers): # resource="/service/cep/restart", json=json.dumps({}) # ) - self._logger.info(f"Restarted CEP {json.dumps(result) } as {id}") + self._logger.info(f"Restarted CEP!") diff --git a/analytics-ui/src/shared/analytics.service.ts b/analytics-ui/src/shared/analytics.service.ts index 7754f97..34c6740 100644 --- a/analytics-ui/src/shared/analytics.service.ts +++ b/analytics-ui/src/shared/analytics.service.ts @@ -135,6 +135,7 @@ export class AnalyticsService { async resetCEP_Block_Cache() { this._blocksDeployed = undefined; + //this._ } async getLoadedCEP_Blocks(): Promise {