Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
72:scripting_dataset [2018/07/24 18:24] – [Metric Dataset Script Global Variables] bkkr72:scripting_dataset [2018/07/24 18:37] – [Metric Dataset Script Global Variables] bkkr
Line 4: Line 4:
  
 **Description**: Set of predefined global variables to be used in Stages data set script or in a collector script. **Description**: Set of predefined global variables to be used in Stages data set script or in a collector script.
- 
 === Methods === === Methods ===
  
 **Pkit** **Pkit**
  
-Return: pkit +   Return: pkit 
- +  Description: Starting handle to get process information. 
-Description: Starting handle to get process information. +      getProjectsByName(str) 
- +        str is the name of a project 
-getProjectsByName(str) +        * returns an array of Project elements 
- +      * getProjectByPath (str) 
-str is the name of a project+        * str is the path of a project, parent are separated by | e.g. Methodpark | Development | Projects | Project A 
 +        * returns the project element 
 +      * getRootProject() 
 +        * returns the root project element 
 +      * getCurrentProject() 
 +        * returns the project element where the report is located
  
-returns an array of Project elements+**Dataset**
  
-getProjectByPath (str)+  * Return: void 
 +  * Description: Handle to the dataset result set
  
-str is the path of a project, parent are separated by | e.g. Methodpark | Development | Projects | Project A+**CurrentMetric**
  
-returns the project element+  * Return: ProcessElementElement (Metric) 
 +  * Description: Returns the actual metric
  
-getRootProject()+**CurrentCollector**
  
-returns the root project element+  * Return: MetricCollectorElement 
 +  * Description: 
 +      * Collector 
 +        * Returns the actual Collector 
 +      * Stages Data set 
 +        * Not defined
  
-getCurrentProject()+CurrentUser
  
-returns the project element where the report is located+  * Return: UserElement 
 +  * Description: Returns the report datasource user