<commit_before>Backeye
========
[![Build Status](https://travis-ci.org/songrgg/backeye.png?branch=master)](https://travis-ci.org/songrgg/backeye)
[![Go Report Card](https://goreportcard.com/badge/github.com/songrgg/backeye?refresh=1)](https://goreportcard.com/report/github.com/songrgg/backeye)

Another API accuracy monitor tool.

Try to fetch & check HTTP API & RPC cronly.

### Sample API monitor definition
1. Add single watch to one task

```json
{
    "name": "Post API",
    "desc": "post API",
    "cron": "*/2 * * * *",
    "watches": [
        {
            "name": "post list",
            "desc": "post list",
            "interval": 0,
            "path": "https://api-prod.wallstreetcn.com/apiv1/content/articles",
            "method": "GET",
            "headers": {
                "User-Agent": "backeye"<commit_msg>add coverage badge<commit_after>Backeye
========
[![Build Status](https://travis-ci.org/songrgg/backeye.png?branch=master)](https://travis-ci.org/songrgg/backeye)
[![Go Report Card](https://goreportcard.com/badge/github.com/songrgg/backeye?refresh=1)](https://goreportcard.com/report/github.com/songrgg/backeye)
[![Coverage Status](https://coveralls.io/repos/github/songrgg/backeye/badge.svg?branch=feature%2Fmultiple-watches)](https://coveralls.io/github/songrgg/backeye?branch=feature%2Fmultiple-watches)

Another API accuracy monitor tool.

Try to fetch & check HTTP API & RPC cronly.

### Sample API monitor definition
1. Add single watch to one task

```json
{
    "name": "Post API",
    "desc": "post API",
    "cron": "*/2 * * * *",
    "watches": [
        {
            "name": "post list",
            "desc": "post list",
            "interval": 0,
            "path": "https://api-prod.wallstreetcn.com/apiv1/content/articles",
            "method": "GET",
            "headers": {
                "User-Agent": "backeye"
{'fraction_non_alphanumeric': 0.18308351177730192, 'fraction_numerical': 0.006423982869379015, 'mean_word_length': 2.976595744680851, 'pattern_counts': {'":': 22, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, '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': '999726', 'n_tokens_mistral': 683, 'n_tokens_neox': 652, 'n_words': 113}