Name

sn_app_insights.MetricsTableNameSelector

Description

No description available

Script

var MetricsTableNameSelector = Class.create();
MetricsTableNameSelector.prototype = {
  initialize: function() {},

  process: function() {
  	//only query scriptable tables within the "Application Insights" scope
      var gr = new GlideRecord('sys_db_object');
      gr.addQuery('scriptable_table', true);
  	gr.addQuery('sys_scope', '4f9e763b619ba22d1902903c5a5e66be');
      gr.query();

      var tables = [];
      while (gr.next()) 
          tables.push(gr.getValue('name'));
  	
      return tables;
  },

  type: 'MetricsTableNameSelector'
};

Sys ID

5c9a8309537d30107ea5ddeeff7b12ce

Offical Documentation

Official Docs: