Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
72:custom_reports_getting_started_creating_data_collector [2019/02/15 19:17] – ext-bkkr | 72:custom_reports_getting_started_creating_data_collector [2019/02/27 17:24] – [Create a Data Collector] ext-bkkr | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Creating Stages Data Collector ====== | ====== Creating Stages Data Collector ====== | ||
- | ==== Create | + | ==== Add a Collection Interval ==== |
+ | |||
+ | - Click on the Data Collector | ||
+ | - Enter the cron expression. | ||
+ | - Click Save to store the interval. | ||
+ | |||
+ | ==== ==== | ||
- | - Log into Stages as a user different to the // | ||
- | - The User needs at least RMC permissions of the domain //Reports //and //Data Collectors// | ||
- | - //Note: Otherwise you cannot get the Data collector running, because the Data collector is running in the context of the user who saved the collector the last time. For security reasons the superuser context is disabled.// | ||
- | - Select your metric in the Processes Application in Stages where you want to add a Data collector. | ||
- | - Select the Data Collectors tab, click on the **+** sign to add a new Data collector. | ||
- | - Enter a <font inherit/ | ||
- | - Click the **More** button to enter the first column name " | ||
- | - Enter a data collector script | ||
- | - | ||
- | < | ||
- | var artifacts = | ||
- | pkit.getCurrentProject().getEntities(" | ||
- | [0].getEntities(" | ||
- | for (i = 0; i < | ||
- | var artifacts_instances = | ||
- | | ||
- | for (j = 0; j < | ||
- | var artifacts_revisions = | ||
- | | ||
- | if (artifacts_revisions.length == 0) { | ||
- | | ||
- | } else { | ||
- | | ||
- | | ||
- | } | ||
- | | ||
- | | ||
- | | ||
- | } | ||
- | } | ||
- | </ | ||
- | - Click on the **Save** | ||
- | - Click on the **Preview** tab to see a preview on the results. | ||
- | - Click on the **Script **tab and click **Save** to store the Data collector. | ||
==== Add a Collection Interval ==== | ==== Add a Collection Interval ==== |