<commit_before>
Platform Infra Health Bot is a sample bot that demonstrates the framework to build a bot using Cisco Spark webhooks to fetch disk usage information. This is a proof of concept that I build on top of Spark Demo Bot blog code [https://developer.ciscospark.com/blog/blog-details-8110.html] and disk_usage python script [https://github.com/giampaolo/psutil/blob/master/scripts/disk_usage.py]. Planning to add features such as CPU usage, memory utilization, process management, etc. incrementally.

1. sendSparkGET Method is used for retrieving message text when the webhook is triggered with a message.
2. sendSparkPOST Method is used to post a message to the spark room to confirm that a command was received and processed.
3. Spark Bot identification details and bearer token is captured in the code.
4. The example Webhook allows to POST/GET message to and from the spark room in which the bot is mentioned to the server using HTTP requests with a JSON payload. 

<b>Learn more about Spark Webhooks on Cisco DevNet Learning Labs</b> 
Here https://learninglabs.cisco.com/lab/collab-sparkwebhook/step/1

<b>Want to know how to configure and run this script?</b>
Please refer my blog here https://dzone.com/articles/building-bots-using-webhooks



<commit_msg>Minors enhancements<commit_after># Platform Infra Health Bot 

a sample bot that demonstrates the framework to build a bot using Cisco Spark webhooks to fetch disk usage information. 

1. sendSparkGET Method is used for retrieving message text when the webhook is triggered with a message.
2. sendSparkPOST Method is used to post a message to the spark room to confirm that a command was received and processed.
3. Spark Bot identification details and bearer token is captured in the code.
4. The example Webhook allows to POST/GET message to and from the spark room in which the bot is mentioned to the server using HTTP requests with a JSON payload. 


# How to run

Detailed instructions can be found in this DZone article: [Building Bots using Webhooks](https://dzone.com/articles/building-bots-using-webhooks).


# Roadmap

This is a proof of concept that I build on top of [Spark Demo Bot blog code] (https://developer.ciscospark.com/blog/blog-details-8110.html) and [disk_usage python script](https://github.com/giampaolo/psutil/blob/master/scripts/disk_usage.py). 

Planning to add features such as CPU usage, memory utilization, process management, etc. incrementally.

*You can learn more about Spark Webhooks by taking this [Cisco DevNet Learning Lab](https://learninglabs.cisco.com/lab/collab-sparkwebhook/step/1)*






{'fraction_non_alphanumeric': 0.059907834101382486, 'fraction_numerical': 0.0069124423963133645, 'mean_word_length': 4.438413361169102, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 8, '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': '1234241', 'n_tokens_mistral': 723, 'n_tokens_neox': 682, 'n_words': 348}