Fixes in README
This commit is contained in:
parent
aacfa5052b
commit
8a00167560
2 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
|
@ -96,4 +96,23 @@ There other options how I/O where you can define a file log for check errors if
|
|||
|
||||
All's done!, you can init your service with **nssm start MonitService** and let's go.
|
||||
|
||||
# Developing plugins.
|
||||
|
||||
You can add simple python scripts how plugins for add new collections to your data.
|
||||
|
||||
The python scripts need have the next structure:
|
||||
|
||||
```python
|
||||
def stat(obj_stats):
|
||||
|
||||
obj_stats['test_data']={'pos': 0}
|
||||
|
||||
return obj_stats
|
||||
```
|
||||
|
||||
You define a function with name *stat* and arguments *obj_stats*
|
||||
|
||||
*obj_stats* is a python object. You can add new data or manipulate original collected data for your own proposites.
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
0
pastafaristats/utils/__init__.py
Normal file
0
pastafaristats/utils/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue