Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
72:custom_reports_getting_started_creating_data_collector [2019/02/27 17:24] – [Create a Data Collector] ext-bkkr | 72:custom_reports_getting_started_creating_data_collector [2024/02/15 00:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Creating Stages Data Collector ====== | ====== Creating Stages Data Collector ====== | ||
- | ==== Add a Collection Interval | + | ==== Create |
- | - Click on the Data Collector to get the context | + | - Log into Stages as a user different to the superuser (administrator). |
- | - Enter the cron expression. | + | - The user needs at least (RMC) permissions of the domain Reports and Data Collectors. |
- | - Click Save to store the interval. | + | - //Note: Otherwise you cannot |
+ | - 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 name for this Data Collector and click on the **Script** tab. | ||
+ | - Click the **More** button | ||
+ | - 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 | ||
+ | | ||
+ | } else { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | Click on **Save** | ||
+ | |||
+ | Click on the **Preview** tab to see a preview on the results. | ||
+ | |||
+ | Click on the **Script **tab and click **Save** | ||
==== Add a Collection Interval ==== | ==== Add a Collection Interval ==== | ||
- | - Click on the Data Collector to get the context menu and select **Add collection** interval. | + | - Click on the Data Collector to get the context menu and select **Add collection** |
- Enter the cron expression. | - Enter the cron expression. | ||
- Click Save to store the interval. | - Click Save to store the interval. |