Browse Source

HUE-5304 [indexer] Add listing of calls

Romain Rigaux 8 years ago
parent
commit
e3d2c34f39
1 changed files with 5 additions and 0 deletions
  1. 5 0
      desktop/libs/indexer/src/indexer/templates/indexes.mako

+ 5 - 0
desktop/libs/indexer/src/indexer/templates/indexes.mako

@@ -327,6 +327,7 @@ ${ commonheader(_("Index Browser"), "search", user, request, "60px") | n,unicode
       }).fail(function (xhr, textStatus, errorThrown) {
       }).fail(function (xhr, textStatus, errorThrown) {
         $(document).trigger("error", xhr.responseText);
         $(document).trigger("error", xhr.responseText);
       });
       });
+      hueAnalytics.log('indexes', 'create_alias');
     }
     }
 
 
     self.edit = function(alias) {
     self.edit = function(alias) {
@@ -368,6 +369,7 @@ ${ commonheader(_("Index Browser"), "search", user, request, "60px") | n,unicode
       }).fail(function (xhr, textStatus, errorThrown) {
       }).fail(function (xhr, textStatus, errorThrown) {
         $(document).trigger("error", xhr.responseText);
         $(document).trigger("error", xhr.responseText);
       });
       });
+      hueAnalytics.log('indexes', 'sample_index');
     };
     };
   };
   };
 
 
@@ -427,6 +429,7 @@ ${ commonheader(_("Index Browser"), "search", user, request, "60px") | n,unicode
       }).fail(function (xhr, textStatus, errorThrown) {
       }).fail(function (xhr, textStatus, errorThrown) {
         $(document).trigger("error", xhr.responseText);
         $(document).trigger("error", xhr.responseText);
       });
       });
+      hueAnalytics.log('indexes', 'list_indexes');
     };
     };
 
 
     self.fetchIndex = function(name) {
     self.fetchIndex = function(name) {
@@ -443,6 +446,7 @@ ${ commonheader(_("Index Browser"), "search", user, request, "60px") | n,unicode
       }).fail(function (xhr, textStatus, errorThrown) {
       }).fail(function (xhr, textStatus, errorThrown) {
         $(document).trigger("error", xhr.responseText);
         $(document).trigger("error", xhr.responseText);
       });
       });
+      hueAnalytics.log('indexes', 'list_index');
     };
     };
 
 
     self.deleteIndexes = function() {
     self.deleteIndexes = function() {
@@ -458,6 +462,7 @@ ${ commonheader(_("Index Browser"), "search", user, request, "60px") | n,unicode
       }).fail(function (xhr, textStatus, errorThrown) {
       }).fail(function (xhr, textStatus, errorThrown) {
         $(document).trigger("error", xhr.responseText);
         $(document).trigger("error", xhr.responseText);
       });
       });
+      hueAnalytics.log('indexes', 'delete_indexes');
     };
     };
   };
   };