<commit_before># Cloudify Custom Events

## Description

Provides a REST API to handle lifecycle evens for Cloudify 2.x.

It uses the management space to store the events.

## Deployment

1. Retrieve the zip archive from the assembly module then unzip the context into the upload folder of your prefered cloud driver (i.e. gigaspaces-cloudify-2.7.0-ga/clouds/openstack-havana/upload)

2. Then edit the bootstrap-management.sh script to add this:
```
	if [ "$GSA_MODE" = "lus" ]; then
		${WORKING_HOME_DIRECTORY}/events/bin/gsDeployEventsWar.sh
	fi
```
    Just after:
```
	./cloudify.sh $START_COMMAND $START_COMMAND_ARGS
```
3. Once deployed, a http GET request on `http://management_ip:8081/events/test` should returns a  `is running` message.<commit_msg>markdown formatting for gitblit<commit_after># Cloudify Custom Events

## Description

Provides a REST API to handle lifecycle evens for Cloudify 2.x.

It uses the management space to store the events.

## Deployment

1. Retrieve the zip archive from the assembly module then unzip the context into the upload folder of your prefered cloud driver (i.e. gigaspaces-cloudify-2.7.0-ga/clouds/openstack-havana/upload)

2. Then edit the bootstrap-management.sh script to add this:

```
	if [ "$GSA_MODE" = "lus" ]; then
		${WORKING_HOME_DIRECTORY}/events/bin/gsDeployEventsWar.sh
	fi
```

    Just after:
    
```
	./cloudify.sh $START_COMMAND $START_COMMAND_ARGS
```

3. Once deployed, a http GET request on `http://management_ip:8081/events/test` should returns a  `is running` message.
{'fraction_non_alphanumeric': 0.0987012987012987, 'fraction_numerical': 0.014285714285714285, 'mean_word_length': 4.277397260273973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4381455', 'n_tokens_mistral': 506, 'n_tokens_neox': 486, 'n_words': 172}