https://github.com/whyeasy/zally-cleaner
A Go app to run as job to clean up old results from Zally Server.
https://github.com/whyeasy/zally-cleaner
Last synced: 3 months ago
JSON representation
A Go app to run as job to clean up old results from Zally Server.
- Host: GitHub
- URL: https://github.com/whyeasy/zally-cleaner
- Owner: Whyeasy
- License: apache-2.0
- Created: 2020-11-10T12:17:28.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-17T15:40:39.000Z (over 4 years ago)
- Last Synced: 2025-02-03T23:58:35.417Z (4 months ago)
- Language: Go
- Size: 18.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


# zally-cleaner
A Go app to run as a job to clean up old results from Zally Server and if it's backed with a Postgres Database.
## Requirements
Provide the Postgres host; `--postgresHost` or as env variable `POSTGRES_HOST`.
Provide the Postgres database name: `--postgresDatabase` or as env variable `POSTGRES_DB`.
Provide the Postgres user: `--postgresUser` or as env variable `POSTGRES_USER`.
Provide the Postgres user password: `--postgresPassword` or as env variable `POSTGRES_PASSWORD`.
### Optional
Change the port to use to connect to Postgres; `--postgresPort ` or as env variable `POSTGRES_PORT`. The default value is `"5432"`. Provide value as a string.
Change the SSL connection mode to Postgres; `--postgresSSL` or as env variable `POSTGRES_SSL`. The default value is `require`.
Change the retention period of the records to keep. `--zallyRetention ` or as env variable `ZALLY_RETENTION`. The default value is `"7"`. Provide value as a string and all entries older than the value will be deleted!
Change if you don't use the Zally violations metrics output. `--zallyMetrics ` or as env variable `ZALLY_METRICS`. The value is `"true"`. Provide value as a string.