-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d167d55
commit fa6336d
Showing
21 changed files
with
416 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
version: '3' | ||
vars: | ||
BUILD_DIR: fedi_gatus | ||
BUILD_DIR: config_gen | ||
tasks: | ||
default: | ||
- task: test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
Module fedi_gatus.config_gen | ||
============================ | ||
|
||
Functions | ||
--------- | ||
|
||
|
||
`generate_endpoints(endpoint_list: [<class 'dict'>])` | ||
: | ||
|
||
|
||
`generate_full_config()` | ||
: | ||
|
||
|
||
`generate_ui()` | ||
: | ||
|
||
Classes | ||
------- | ||
|
||
`Endpoint()` | ||
: | ||
|
||
### Class variables | ||
|
||
`conditions` | ||
: | ||
|
||
`interval` | ||
: int([x]) -> integer | ||
int(x, base=10) -> integer | ||
Convert a number or string to an integer, or return 0 if no arguments | ||
are given. If x is a number, return x.__int__(). For floating point | ||
numbers, this truncates towards zero. | ||
If x is not a number or if base is given, then x must be a string, | ||
bytes, or bytearray instance representing an integer literal in the | ||
given base. The literal can be preceded by '+' or '-' and be surrounded | ||
by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. | ||
Base 0 means to interpret the base from the string as an integer literal. | ||
>>> int('0b100', base=0) | ||
4 | ||
|
||
`name` | ||
: str(object='') -> str | ||
str(bytes_or_buffer[, encoding[, errors]]) -> str | ||
Create a new string object from the given object. If encoding or | ||
errors is specified, then the object must expose a data buffer | ||
that will be decoded using the given encoding and error handler. | ||
Otherwise, returns the result of object.__str__() (if defined) | ||
or repr(object). | ||
encoding defaults to sys.getdefaultencoding(). | ||
errors defaults to 'strict'. | ||
|
||
`url` | ||
: str(object='') -> str | ||
str(bytes_or_buffer[, encoding[, errors]]) -> str | ||
Create a new string object from the given object. If encoding or | ||
errors is specified, then the object must expose a data buffer | ||
that will be decoded using the given encoding and error handler. | ||
Otherwise, returns the result of object.__str__() (if defined) | ||
or repr(object). | ||
encoding defaults to sys.getdefaultencoding(). | ||
errors defaults to 'strict'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Module fedi_gatus.data | ||
====================== | ||
|
||
Functions | ||
--------- | ||
|
||
|
||
`generate_top_instances()` | ||
: | ||
|
||
|
||
`get_raw_data()` | ||
: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
Module fedi_gatus.db | ||
==================== | ||
|
||
Functions | ||
--------- | ||
|
||
|
||
`setup_db_connection()` | ||
: | ||
|
||
Classes | ||
------- | ||
|
||
`Data(*args, **kwargs)` | ||
: | ||
|
||
### Ancestors (in MRO) | ||
|
||
* fedi_gatus.db.DataModel | ||
* fedi_gatus.db.ModelBase | ||
* peewee.Model | ||
* peewee._metaclass_helper_ | ||
* peewee.Node | ||
|
||
### Class variables | ||
|
||
`id` | ||
: | ||
|
||
`timestamp` | ||
: | ||
|
||
### Methods | ||
|
||
`get(self, num_minutes_to_get: int) ‑> list` | ||
: Takes time range of past mins, and returns list of db rows w/ temp data | ||
|
||
`insert(self) ‑> None` | ||
: | ||
|
||
`DataModel(*args, **kwargs)` | ||
: | ||
|
||
### Ancestors (in MRO) | ||
|
||
* fedi_gatus.db.ModelBase | ||
* peewee.Model | ||
* peewee._metaclass_helper_ | ||
* peewee.Node | ||
|
||
### Descendants | ||
|
||
* fedi_gatus.db.Data | ||
|
||
### Class variables | ||
|
||
`id` | ||
: | ||
|
||
`timestamp` | ||
: | ||
|
||
`ModelBase(*args, **kwargs)` | ||
: | ||
|
||
### Ancestors (in MRO) | ||
|
||
* peewee.Model | ||
* peewee._metaclass_helper_ | ||
* peewee.Node | ||
|
||
### Descendants | ||
|
||
* fedi_gatus.db.DataModel | ||
|
||
### Class variables | ||
|
||
`DoesNotExist` | ||
: Common base class for all non-exit exceptions. | ||
|
||
`id` | ||
: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Module fedi_gatus | ||
================= | ||
|
||
Sub-modules | ||
----------- | ||
* fedi_gatus.config_gen | ||
* fedi_gatus.data | ||
* fedi_gatus.db |
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
import peewee as p | ||
|
||
DB_NAME = "data.db" | ||
DB_NAME = "data.shared" | ||
|
||
|
||
def setup_db_connection(): | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.