<commit_before>SendGrid Monitoring
===================
Sendgrid allow users to send emails without having to maintain email servers.

This plugin will query the '/v3/stats' with the start_date param as today's date and get the details.

Requirements
------------
SendGrid account and a valid api key has to generated in the account

SendGrid plugin installation
=============

Download sendgrid plugin from https://github.com/site24x7/plugins/blob/master/sendgrid/sendgrid.py

Place the plugin folder 'sendgrid/sendgrid.py' under agent plugins directory (/opt/site24x7/monagent/plugins/)

Commands to execute the above steps:

	cd /opt/site24x7/monagent/plugins/
	mkdir sendgrid
	cd sendgrid
	wget https://raw.githubusercontent.com/site24x7/plugins/master/sendgrid/sendgrid.py
	
Configuration
=============
The generated api key has to passed as input to this plugin

>API_KEY = <a valid api key>


SendGrid plugin attributes
--------------------------
	{
	"blocks": 0,
    "bounce_drops": 0,
    "bounces": 0,
    "clicks": 0,
    "deferred": 0,
    "delivered": 2,
    "invalid_emails": 0,
    "opens": 0,
    "processed": 0,
    "requests": 2,
    "spam_report_drops": 0,
    "spam_reports": 0,
    "unique_clicks": 0,
    "unique_opens": 0,
    "units": {},
    "unsubscribe_drops": 0,
    "unsubscribes": 0<commit_msg>Linux Server Monitoring | Plugin : sendgrid<commit_after>SendGrid Monitoring
===================
Sendgrid allow users to send emails without having to maintain email servers.

This plugin will query the '/v3/stats' with the start_date param as today's date and get the details.

Requirements
------------
SendGrid account and a valid api key has to generated in the account

SendGrid plugin installation
=============

Download sendgrid plugin from https://github.com/site24x7/plugins/blob/master/sendgrid/sendgrid.py

Place the plugin folder 'sendgrid/sendgrid.py' under agent plugins directory (/opt/site24x7/monagent/plugins/)

Commands to execute the above steps:

	cd /opt/site24x7/monagent/plugins/
	mkdir sendgrid
	cd sendgrid
	wget https://raw.githubusercontent.com/site24x7/plugins/master/sendgrid/sendgrid.py
	
Configuration
=============
The generated api key has to passed as input to this plugin

>API_KEY = < valid api key>


SendGrid plugin attributes
--------------------------
	{
	"blocks": 0,
    "bounce_drops": 0,
    "bounces": 0,
    "clicks": 0,
    "deferred": 0,
    "delivered": 2,
    "invalid_emails": 0,
    "opens": 0,
    "processed": 0,
    "requests": 2,
    "spam_report_drops": 0,
    "spam_reports": 0,
    "unique_clicks": 0,
    "unique_opens": 0,
    "units": {},
    "unsubscribe_drops": 0,
    "unsubscribes": 0
{'fraction_non_alphanumeric': 0.1547663551401869, 'fraction_numerical': 0.021682242990654205, 'mean_word_length': 3.4974789915966387, 'pattern_counts': {'":': 34, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '612610', 'n_tokens_mistral': 886, 'n_tokens_neox': 816, 'n_words': 264}