diff --git a/backend/src/appenlight/static/js/appenlight.js b/backend/src/appenlight/static/js/appenlight.js index 2886332..8c0fb35 100644 --- a/backend/src/appenlight/static/js/appenlight.js +++ b/backend/src/appenlight/static/js/appenlight.js @@ -4184,7 +4184,7 @@ function kickstartAE(initialUserData) { "\n" + "
\n" + "
\n" +
-    "curl -H \"Content-Type: application/json\" -k {{AeConfig.urls.baseUrl}}api/logs?protocol_version=0.5\\&api_key={{$ctrl.resource.api_key}} -d '\n" +
+    "curl -H \"Content-Type: application/json\" -k {{$ctrl.AeConfig.urls.baseUrl}}api/logs?protocol_version=0.5\\&api_key={{$ctrl.resource.api_key}} -d '\n" +
     "    [\n" +
     "      {\n" +
     "      \"log_level\": \"WARNING\",\n" +
@@ -4219,7 +4219,7 @@ function kickstartAE(initialUserData) {
     "\n" +
     "                    
\n" + "
\n" +
-    "curl -H \"Content-Type: application/json\" -k {{AeConfig.urls.baseUrl}}api/reports?protocol_version=0.5\\&api_key={{$ctrl.resource.api_key}} -d '\n" +
+    "curl -H \"Content-Type: application/json\" -k {{$ctrl.AeConfig.urls.baseUrl}}api/reports?protocol_version=0.5\\&api_key={{$ctrl.resource.api_key}} -d '\n" +
     "    [{\n" +
     "    \"client\": \"your-client-name-python\",\n" +
     "    \"language\": \"python\",\n" +
@@ -4293,7 +4293,7 @@ function kickstartAE(initialUserData) {
     "\n" +
     "                
\n" + "
\n" +
-    "curl -H \"Content-Type: application/json\" -k {{AeConfig.urls.baseUrl}}api/general_metrics?protocol_version=0.5\\&api_key={{$ctrl.resource.api_key}} -d '\n" +
+    "curl -H \"Content-Type: application/json\" -k {{$ctrl.AeConfig.urls.baseUrl}}api/general_metrics?protocol_version=0.5\\&api_key={{$ctrl.resource.api_key}} -d '\n" +
     "        [{\n" +
     "        \"namespace\": \"some.monitor\",\n" +
     "        \"timestamp\": \"{{$ctrl.momentJs.utc().milliseconds(0).toISOString()}}\",\n" +
@@ -4312,7 +4312,7 @@ function kickstartAE(initialUserData) {
     "\n" +
     "                    
\n" + "
\n" +
-    "curl -H \"Content-Type: application/json\" -k {{AeConfig.urls.baseUrl}}api/request_stats?protocol_version=0.5\\&api_key={{$ctrl.resource.api_key}} -d '\n" +
+    "curl -H \"Content-Type: application/json\" -k {{$ctrl.AeConfig.urls.baseUrl}}api/request_stats?protocol_version=0.5\\&api_key={{$ctrl.resource.api_key}} -d '\n" +
     "        [{\"server\": \"some.server.hostname\",\n" +
     "          \"timestamp\": \"{{$ctrl.momentJs.utc().milliseconds(0).toISOString()}}\",\n" +
     "          \"metrics\": [[\"dir/module:func\",\n" +
@@ -8165,12 +8165,13 @@ angular.module('appenlight.components.applicationsUpdateView', [])
         controller: applicationsUpdateViewController
     });
 
-applicationsUpdateViewController.$inject = ['$state', 'applicationsNoIdResource', 'applicationsResource', 'applicationsPropertyResource', 'stateHolder'];
+applicationsUpdateViewController.$inject = ['$state', 'applicationsNoIdResource', 'applicationsResource', 'applicationsPropertyResource', 'stateHolder', 'AeConfig'];
 
-function applicationsUpdateViewController($state, applicationsNoIdResource, applicationsResource, applicationsPropertyResource, stateHolder) {
+function applicationsUpdateViewController($state, applicationsNoIdResource, applicationsResource, applicationsPropertyResource, stateHolder, AeConfig) {
     'use strict';
     
     var vm = this;
+    vm.AeConfig = AeConfig;
     vm.$state = $state;
     vm.loading = {application: false};
 
diff --git a/frontend/src/components/views/applications-update-view/applications-update-view.html b/frontend/src/components/views/applications-update-view/applications-update-view.html
index 09c84fc..7963af8 100644
--- a/frontend/src/components/views/applications-update-view/applications-update-view.html
+++ b/frontend/src/components/views/applications-update-view/applications-update-view.html
@@ -180,7 +180,7 @@
 
                     
-curl -H "Content-Type: application/json" -k {{AeConfig.urls.baseUrl}}api/logs?protocol_version=0.5\&api_key={{$ctrl.resource.api_key}} -d '
+curl -H "Content-Type: application/json" -k {{$ctrl.AeConfig.urls.baseUrl}}api/logs?protocol_version=0.5\&api_key={{$ctrl.resource.api_key}} -d '
     [
       {
       "log_level": "WARNING",
@@ -215,7 +215,7 @@ curl -H "Content-Type: application/json" -k {{AeConfig.urls.baseUrl}}api/logs?pr
 
                     
-curl -H "Content-Type: application/json" -k {{AeConfig.urls.baseUrl}}api/reports?protocol_version=0.5\&api_key={{$ctrl.resource.api_key}} -d '
+curl -H "Content-Type: application/json" -k {{$ctrl.AeConfig.urls.baseUrl}}api/reports?protocol_version=0.5\&api_key={{$ctrl.resource.api_key}} -d '
     [{
     "client": "your-client-name-python",
     "language": "python",
@@ -289,7 +289,7 @@ curl -H "Content-Type: application/json" -k {{AeConfig.urls.baseUrl}}api/reports
 
                 
-curl -H "Content-Type: application/json" -k {{AeConfig.urls.baseUrl}}api/general_metrics?protocol_version=0.5\&api_key={{$ctrl.resource.api_key}} -d '
+curl -H "Content-Type: application/json" -k {{$ctrl.AeConfig.urls.baseUrl}}api/general_metrics?protocol_version=0.5\&api_key={{$ctrl.resource.api_key}} -d '
         [{
         "namespace": "some.monitor",
         "timestamp": "{{$ctrl.momentJs.utc().milliseconds(0).toISOString()}}",
@@ -308,7 +308,7 @@ curl -H "Content-Type: application/json" -k {{AeConfig.urls.baseUrl}}api/general
 
                     
-curl -H "Content-Type: application/json" -k {{AeConfig.urls.baseUrl}}api/request_stats?protocol_version=0.5\&api_key={{$ctrl.resource.api_key}} -d '
+curl -H "Content-Type: application/json" -k {{$ctrl.AeConfig.urls.baseUrl}}api/request_stats?protocol_version=0.5\&api_key={{$ctrl.resource.api_key}} -d '
         [{"server": "some.server.hostname",
           "timestamp": "{{$ctrl.momentJs.utc().milliseconds(0).toISOString()}}",
           "metrics": [["dir/module:func",
diff --git a/frontend/src/components/views/applications-update-view/applications-update-view.js b/frontend/src/components/views/applications-update-view/applications-update-view.js
index fa99ae2..34cd174 100644
--- a/frontend/src/components/views/applications-update-view/applications-update-view.js
+++ b/frontend/src/components/views/applications-update-view/applications-update-view.js
@@ -23,12 +23,13 @@ angular.module('appenlight.components.applicationsUpdateView', [])
         controller: applicationsUpdateViewController
     });
 
-applicationsUpdateViewController.$inject = ['$state', 'applicationsNoIdResource', 'applicationsResource', 'applicationsPropertyResource', 'stateHolder'];
+applicationsUpdateViewController.$inject = ['$state', 'applicationsNoIdResource', 'applicationsResource', 'applicationsPropertyResource', 'stateHolder', 'AeConfig'];
 
-function applicationsUpdateViewController($state, applicationsNoIdResource, applicationsResource, applicationsPropertyResource, stateHolder) {
+function applicationsUpdateViewController($state, applicationsNoIdResource, applicationsResource, applicationsPropertyResource, stateHolder, AeConfig) {
     'use strict';
     console.debug('applicationsUpdateView');
     var vm = this;
+    vm.AeConfig = AeConfig;
     vm.$state = $state;
     vm.loading = {application: false};