<commit_before># HealthchecksBundle

[![Dependency Status](https://www.versioneye.com/user/projects/5829a1634d093e0048e497b1/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/5829a1634d093e0048e497b1)
[![VersionEye](https://img.shields.io/versioneye/d/prgTW/healthchecks-bundle.svg)](https://github.com/prgTW/healthchecks-bundle)
[![Packagist](https://img.shields.io/packagist/l/prgtw/healthchecks-bundle.svg)](https://github.com/prgTW/healthchecks-bundle)
[![Packagist](https://img.shields.io/packagist/v/prgtw/healthchecks-bundle.svg)](https://packagist.org/packages/prgtw/healthchecks-bundle)

Bundle enables integration with [healthchecks.io](https://healthchecks.io).

## TODO:
- [ ] implement concurrent requests

## Installation

1. Require the `prgtw/healthchecks-bundle` package in your `composer.json`
   and update your dependencies.
	
	```bash
	composer require prgtw/healthchecks-bundle
	```

2. Add the `HealthchecksBundle` to your application's kernel:

	```php
	public function registerBundles()
	{
		$bundles = [
			// ...
			new prgTW\HealthchecksBundle(),
			// ...
		];
		// ...
	}
	````

## Configuration

Example configuration:
```yaml
healthchecks:
    api:
        clients:
            example: "api-key-here"
    timezone: "Europe/Warsaw"
    checks:
    	simple:
			client: example
			name: "Simple hourly check"
			timeout: 3600
			tags: [simple, all]
        cron:
            client: example
            name: "Cron-based check"
            schedule: "*/30 * * * *"
            tags: [cron, all]

```<commit_msg>readme updated<commit_after># HealthchecksBundle

[![VersionEye](https://img.shields.io/versioneye/d/prgTW/healthchecks-bundle.svg)](https://github.com/prgTW/healthchecks-bundle)
[![Packagist](https://img.shields.io/packagist/l/prgtw/healthchecks-bundle.svg)](https://github.com/prgTW/healthchecks-bundle)
[![Packagist](https://img.shields.io/packagist/v/prgtw/healthchecks-bundle.svg)](https://packagist.org/packages/prgtw/healthchecks-bundle)

Bundle enables integration with [healthchecks.io](https://healthchecks.io).

## TODO:
- [ ] implement concurrent requests

## Installation

1. Require the `prgtw/healthchecks-bundle` package in your `composer.json`
   and update your dependencies.
	
	```bash
	composer require prgtw/healthchecks-bundle
	```

2. Add the `HealthchecksBundle` to your application's kernel:

	```php
	public function registerBundles()
	{
		$bundles = [
			// ...
			new prgTW\HealthchecksBundle(),
			// ...
		];
		// ...
	}
	````

## Configuration

Example configuration:
```yaml
healthchecks:
    api:
        clients:
            example: "api-key-here"
    timezone: "Europe/Warsaw" #default timezone to use for checks
    checks:
    	simple:
			client: example
			name: "Simple hourly check"
			timeout: 3600
			tags: [simple, all]
        cron:
            client: example
            name: "Cron-based check"
            schedule: "*/30 * * * *"
            timezone: UTC
            tags: [cron, all]

```
{'fraction_non_alphanumeric': 0.1518987341772152, 'fraction_numerical': 0.01798800799467022, 'mean_word_length': 3.271692745376956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, 'lorem ipsum': 0, 'www.': 2, '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': '1607077', 'n_tokens_mistral': 1133, 'n_tokens_neox': 989, 'n_words': 173}