<commit_before># iflux-metrics-action-target
An action target that provides a simple analytics service (aggregates)<commit_msg>Updated doc<commit_after># iflux-metrics-action-target
An action target that provides a simple analytics service (aggregates)

## Development setup

Create a `.env` file in the root directory of the project and put the following content:

```bash
METRICS_ACTION_TYPE=http://localhost:3000/schemas/actionTypes/updateMetric

#####################################################################################################
# ONLY USED IN MODE WHERE IFLUX IS LOCALLY DEPLOYED AND MONGODB IS USED WITH DOCKER
#####################################################################################################
# MongoDB
MONGODB_HOST=<Boot2Docker IP>
MONGODB_PORT=27017
```

### Mandatory

| Name                       | Description                               |
| -------------------------- | ----------------------------------------- |
| METRICS_ACTION_TYPE        | Define the metrics action type. Must be unique. | 

### Optional

If you are using `Docker` you may have to configure this `MongoDB` info. Otherwise, it is supposed to
have a local installation of `MongoDB` automatically configured to `localhost:27017`

| Name                       | Description                               |
| -------------------------- | ----------------------------------------- |
| MONGODB_HOST               | Should be the Docker host IP (boot2docker IP, Vagrant VM IP, ...) |
| MONGODB_PORT               | Default port is 27017. |
{'fraction_non_alphanumeric': 0.2750642673521851, 'fraction_numerical': 0.013496143958868894, 'mean_word_length': 2.392156862745098, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5461665', 'n_tokens_mistral': 388, 'n_tokens_neox': 347, 'n_words': 123}