MetricSetService.addScriptMetricSet Method
        
 Add a new metric set.
 
         
        Parameters
        
            - dashboardId
            
 
            - 
                
Type: String
The dashboard ID to add the script metric set to. 
            - metricSetUsages
            
 
            - 
                
Type: Array
ElementType: MetricSetUsage
The metricset usages that the generated script metric set will consist of. 
            - script
            
 
            - 
                
Type: String
The script. 
        
        Return Value
        
Type: jQuery.Promise
        
Value: dundas.entities.MetricSet
        
The MetricSet object.