{"id":29193902,"url":"https://github.com/enindu/threshold","last_synced_at":"2026-04-27T01:31:39.944Z","repository":{"id":298565272,"uuid":"1000413366","full_name":"enindu/threshold","owner":"enindu","description":"Threshold is a simple application based on systemd that automatically brings down a network interface after a specified amount of data has passed through it","archived":false,"fork":false,"pushed_at":"2025-06-12T15:53:04.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-02T03:37:31.298Z","etag":null,"topics":["automation","cli","command-line","go","golang","linux","network-usage","network-utility","networking","systemd","systemd-service"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enindu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-11T18:36:53.000Z","updated_at":"2025-06-12T15:52:02.000Z","dependencies_parsed_at":"2025-06-11T20:13:52.977Z","dependency_job_id":"4e3d3d58-10a6-40f8-a8ed-b0507860b229","html_url":"https://github.com/enindu/threshold","commit_stats":null,"previous_names":["enindu/threshold"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/enindu/threshold","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enindu%2Fthreshold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enindu%2Fthreshold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enindu%2Fthreshold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enindu%2Fthreshold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enindu","download_url":"https://codeload.github.com/enindu/threshold/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enindu%2Fthreshold/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32319559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","cli","command-line","go","golang","linux","network-usage","network-utility","networking","systemd","systemd-service"],"created_at":"2025-07-02T03:30:54.556Z","updated_at":"2026-04-27T01:31:39.936Z","avatar_url":"https://github.com/enindu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Threshold\n\nThreshold is a simple command line tool to monitor network usage and disable network interface automatically when specified threshold is exeeded.\n\nThreshold is based on [systemd](https://github.com/systemd/systemd), reads `/proc/net/dev` file to monitor network usage, and uses [netlink](https://github.com/vishvananda/netlink) package to manage network interfaces.\n\n## Configuration\n\nThis application requires root privileges. You’ll need to install Threshold as root user and configure environment accordingly. Assuming you are logged in as root, add the following lines to the `/root/.bash_profile` file:\n\n```bash\nexport PATH=\"$PATH:$HOME/go/bin\"\nexport GOPATH=\"$HOME/go\"\n```\n\nAfter updating `/root/.bash_profile`, you can apply changes by running:\n\n```\nsource /root/.bash_profile\n```\n\n## Install\n\nYou can install Threshold using the `go install` command:\n\n```\ngo install github.com/enindu/threshold@latest\n```\n\n## Usage\n\nYou can run Threshold using following syntax.\n\n```\nthreshold \u003ccommand\u003e:\u003csubcommand\u003e [arguments]\nthreshold [flags]\n```\n\nDisplay version message:\n\n```\nthreshold -v # Or \"threshold --version\"\n```\n\nDisplay help message:\n\n```\nthreshold -h # Or \"threshold --help\"\n```\n\n## License\n\nThis software is licensed under the GNU General Public License v3.0. You can view full license [here](https://github.com/enindu/threshold/blob/master/COPYING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenindu%2Fthreshold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenindu%2Fthreshold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenindu%2Fthreshold/lists"}